Commit 3e7a2d67 authored by Richard M. Stallman's avatar Richard M. Stallman

(completion-separator-self-insert-command)

(completion-separator-self-insert-autofilling):
If `self-insert-command' has been remapped, use the substitute.
parent b66eb11b
......@@ -2231,15 +2231,19 @@ Patched to remove the most recent completion."
(defun completion-separator-self-insert-command (arg)
(interactive "p")
(use-completion-before-separator)
(self-insert-command arg))
(if (command-remapping 'self-insert-command)
(funcall (command-remapping 'self-insert-command) arg)
(use-completion-before-separator)
(self-insert-command arg)))
(defun completion-separator-self-insert-autofilling (arg)
(interactive "p")
(use-completion-before-separator)
(self-insert-command arg)
(and auto-fill-function
(funcall auto-fill-function)))
(if (command-remapping 'self-insert-command)
(funcall (command-remapping 'self-insert-command) arg)
(use-completion-before-separator)
(self-insert-command arg)
(and auto-fill-function
(funcall auto-fill-function))))
;;-----------------------------------------------
;; Wrapping Macro
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment