aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/erc
diff options
context:
space:
mode:
authorPaul Eggert2016-02-09 14:23:10 -0800
committerPaul Eggert2016-02-09 14:23:10 -0800
commitb3fc7a3e763fb260cd932dc6aedbe7b4c810a73c (patch)
tree72495a45c9e58f16f6b09448f6956507da6ccf89 /lisp/erc
parentc71e7cc113ed0d5f01aaa2e441a3e3c9fbeb9fa5 (diff)
parent9ffe7ddd5e1ba93f327cfe985e9476571d7a2873 (diff)
downloademacs-b3fc7a3e763fb260cd932dc6aedbe7b4c810a73c.tar.gz
emacs-b3fc7a3e763fb260cd932dc6aedbe7b4c810a73c.zip
Merge from origin/emacs-25
9ffe7dd * lisp/isearch.el (isearch-define-mode-toggle): Improve logic 16140f7 * lisp/menu-bar.el (menu-bar-options-menu): New search submenu 3db6adb * lisp/isearch.el (search-default-mode) 4ea1ea7 * lisp/isearch.el: Rename search-default-regexp-mode to search-default-mode c77ffc8 Use monitor's resolution for positioning tooltips 49e5749 Fix file-notify-test on MS-Windows be1d874 Fix issues found by auditing w32notify code 87ae218 Extend etags Ruby support for accessors aa35257 Update publicsuffix.txt. 6816bff Ensure that Gnus dribble handling allows removing entries 691feae Be consistent when using encoded strings in nnimap data 3ed423b Display the decoded Gnus group name 5428b5b Use completion-ignore-case instead of defining command
Diffstat (limited to 'lisp/erc')
-rw-r--r--lisp/erc/erc.el10
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.
4001See `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'."