Function: set-case-syntax-pair

set-case-syntax-pair is a byte-compiled function defined in case-table.el.gz.

Signature

(set-case-syntax-pair UC LC TABLE)

Documentation

Make characters UC and LC a pair of inter-case-converting letters.

This sets the entries for characters UC and LC in TABLE, which is a string that will be used as the downcase part of a case table. It also modifies standard-syntax-table to give them the syntax of word constituents.

Source Code

;; Defined in /usr/src/emacs/lisp/case-table.el.gz
(defun set-case-syntax-pair (uc lc table)
  "Make characters UC and LC a pair of inter-case-converting letters.
This sets the entries for characters UC and LC in TABLE, which is a string
that will be used as the downcase part of a case table.
It also modifies `standard-syntax-table' to give them the syntax of
word constituents."
  (aset table uc lc)
  (aset table lc lc)
  (let ((up (case-table-get-table table 'up)))
    (aset up uc uc)
    (aset up lc uc))
  ;; Clear out the extra slots so that they will be
  ;; recomputed from the main (downcase) table and upcase table.
  (set-char-table-extra-slot table 1 nil)
  (set-char-table-extra-slot table 2 nil)
  (modify-syntax-entry lc "w   " (standard-syntax-table))
  (modify-syntax-entry uc "w   " (standard-syntax-table)))