From: Stefan Monnier Date: Mon, 13 Apr 2015 14:35:15 +0000 (-0400) Subject: (completion-lisp-mode-hook): Use completion-separator-chars X-Git-Tag: emacs-25.0.90~2451 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/f6bdbdf1f58d8fda61bc901b852d25fdf1a1f9da (completion-lisp-mode-hook): Use completion-separator-chars * lisp/completion.el (completion-lisp-mode-hook): Use completion-separator-chars rather than local key binding. --- diff --git a/lisp/completion.el b/lisp/completion.el index d3f118705b..b53f2d3ac7 100644 --- a/lisp/completion.el +++ b/lisp/completion.el @@ -2228,12 +2228,9 @@ TYPE is the type of the wrapper to be added. Can be :before or :under." (defun completion-lisp-mode-hook () (setq completion-syntax-table completion-lisp-syntax-table) ;; Lisp Mode diffs - (local-set-key "!" 'self-insert-command) - (local-set-key "&" 'self-insert-command) - (local-set-key "%" 'self-insert-command) - (local-set-key "?" 'self-insert-command) - (local-set-key "=" 'self-insert-command) - (local-set-key "^" 'self-insert-command)) + (setq-local completion-separator-chars + (cl-set-difference completion-separator-chars + (append "!&%?=^" nil)))) ;; C mode diffs.