]> git.eshelyaron.com Git - emacs.git/commitdiff
(completion-lisp-mode-hook): Use completion-separator-chars
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 13 Apr 2015 14:35:15 +0000 (10:35 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 13 Apr 2015 14:35:15 +0000 (10:35 -0400)
* lisp/completion.el (completion-lisp-mode-hook):
Use completion-separator-chars rather than local key binding.

lisp/completion.el

index d3f118705b755eeddd9c2d600b0799e8567df2b6..b53f2d3ac79ea5da07cedb9bb22bcf8cb7ffaceb 100644 (file)
@@ -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.