diff options
Diffstat (limited to 'lisp/erc')
| -rw-r--r-- | lisp/erc/erc.el | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index d52a83b1029..68460d15c4e 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el | |||
| @@ -1141,7 +1141,7 @@ which the local user typed." | |||
| 1141 | (define-key map "\C-c\C-u" 'erc-kill-input) | 1141 | (define-key map "\C-c\C-u" 'erc-kill-input) |
| 1142 | (define-key map "\C-c\C-x" 'erc-quit-server) | 1142 | (define-key map "\C-c\C-x" 'erc-quit-server) |
| 1143 | (define-key map "\M-\t" 'ispell-complete-word) | 1143 | (define-key map "\M-\t" 'ispell-complete-word) |
| 1144 | (define-key map "\t" 'erc-completion-at-point) | 1144 | (define-key map "\t" 'completion-at-point) |
| 1145 | 1145 | ||
| 1146 | ;; Suppress `font-lock-fontify-block' key binding since it | 1146 | ;; Suppress `font-lock-fontify-block' key binding since it |
| 1147 | ;; destroys face properties. | 1147 | ;; destroys face properties. |
| @@ -1463,6 +1463,7 @@ Defaults to the server buffer." | |||
| 1463 | (concat "\C-l\\|\\(^" (regexp-quote (erc-prompt)) "\\)")) | 1463 | (concat "\C-l\\|\\(^" (regexp-quote (erc-prompt)) "\\)")) |
| 1464 | (set (make-local-variable 'paragraph-start) | 1464 | (set (make-local-variable 'paragraph-start) |
| 1465 | (concat "\\(" (regexp-quote (erc-prompt)) "\\)")) | 1465 | (concat "\\(" (regexp-quote (erc-prompt)) "\\)")) |
| 1466 | (setq-local completion-ignore-case t) | ||
| 1466 | (add-hook 'completion-at-point-functions 'erc-complete-word-at-point nil t)) | 1467 | (add-hook 'completion-at-point-functions 'erc-complete-word-at-point nil t)) |
| 1467 | 1468 | ||
| 1468 | ;; activation | 1469 | ;; activation |
| @@ -3996,13 +3997,6 @@ Prompt for one if called interactively." | |||
| 3996 | (format "MODE %s +k %s" tgt key) | 3997 | (format "MODE %s +k %s" tgt key) |
| 3997 | (format "MODE %s -k" tgt))))) | 3998 | (format "MODE %s -k" tgt))))) |
| 3998 | 3999 | ||
| 3999 | (defun erc-completion-at-point () | ||
| 4000 | "Perform completion on the text around point case-insensitively. | ||
| 4001 | See `completion-at-point'." | ||
| 4002 | (interactive) | ||
| 4003 | (let ((completion-ignore-case t)) | ||
| 4004 | (completion-at-point))) | ||
| 4005 | |||
| 4006 | (defun erc-quit-server (reason) | 4000 | (defun erc-quit-server (reason) |
| 4007 | "Disconnect from current server after prompting for REASON. | 4001 | "Disconnect from current server after prompting for REASON. |
| 4008 | `erc-quit-reason' works with this just like with `erc-cmd-QUIT'." | 4002 | `erc-quit-reason' works with this just like with `erc-cmd-QUIT'." |