Function: set-case-syntax-delims

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

Signature

(set-case-syntax-delims L R TABLE)

Documentation

Make characters L and R a matching pair of non-case-converting delimiters.

This sets the entries for L and R 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 indicate left and right delimiters.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/case-table.el.gz
(defun set-case-syntax-delims (l r table)
  "Make characters L and R a matching pair of non-case-converting delimiters.
This sets the entries for L and R 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
indicate left and right delimiters."
  (aset table l l)
  (aset table r r)
  (let ((up (case-table-get-table table 'up)))
    (aset up l l)
    (aset up r r))
  ;; 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 l (concat "(" (char-to-string r) "  ")
		       (standard-syntax-table))
  (modify-syntax-entry r (concat ")" (char-to-string l) "  ")
		       (standard-syntax-table)))