diff options
| author | Richard M. Stallman | 2007-09-23 15:27:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2007-09-23 15:27:38 +0000 |
| commit | 3e7a2d671a56e40c390f40333592dc3bd95296f7 (patch) | |
| tree | 0f4d44c969838d764a1706fd826f5a1e9f6c4ef8 /lisp | |
| parent | b66eb11bece1d0922972fb4dcf45b834ee354293 (diff) | |
| download | emacs-3e7a2d671a56e40c390f40333592dc3bd95296f7.tar.gz emacs-3e7a2d671a56e40c390f40333592dc3bd95296f7.zip | |
(completion-separator-self-insert-command)
(completion-separator-self-insert-autofilling):
If `self-insert-command' has been remapped, use the substitute.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/completion.el | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lisp/completion.el b/lisp/completion.el index b8bf5bd93b8..c2e9ac9493f 100644 --- a/lisp/completion.el +++ b/lisp/completion.el | |||
| @@ -2231,15 +2231,19 @@ Patched to remove the most recent completion." | |||
| 2231 | 2231 | ||
| 2232 | (defun completion-separator-self-insert-command (arg) | 2232 | (defun completion-separator-self-insert-command (arg) |
| 2233 | (interactive "p") | 2233 | (interactive "p") |
| 2234 | (use-completion-before-separator) | 2234 | (if (command-remapping 'self-insert-command) |
| 2235 | (self-insert-command arg)) | 2235 | (funcall (command-remapping 'self-insert-command) arg) |
| 2236 | (use-completion-before-separator) | ||
| 2237 | (self-insert-command arg))) | ||
| 2236 | 2238 | ||
| 2237 | (defun completion-separator-self-insert-autofilling (arg) | 2239 | (defun completion-separator-self-insert-autofilling (arg) |
| 2238 | (interactive "p") | 2240 | (interactive "p") |
| 2239 | (use-completion-before-separator) | 2241 | (if (command-remapping 'self-insert-command) |
| 2240 | (self-insert-command arg) | 2242 | (funcall (command-remapping 'self-insert-command) arg) |
| 2241 | (and auto-fill-function | 2243 | (use-completion-before-separator) |
| 2242 | (funcall auto-fill-function))) | 2244 | (self-insert-command arg) |
| 2245 | (and auto-fill-function | ||
| 2246 | (funcall auto-fill-function)))) | ||
| 2243 | 2247 | ||
| 2244 | ;;----------------------------------------------- | 2248 | ;;----------------------------------------------- |
| 2245 | ;; Wrapping Macro | 2249 | ;; Wrapping Macro |