]> git.eshelyaron.com Git - emacs.git/commitdiff
Make erc completion case-insensitive again
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 4 Feb 2016 06:51:53 +0000 (17:51 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 4 Feb 2016 06:51:53 +0000 (17:51 +1100)
* lisp/erc/erc.el (erc-completion-at-point): Make erc completion
case-insensitive again (bug#11360).

etc/NEWS
lisp/erc/erc.el

index a3d9e84cc6e551593f4086a93b38cfb319629450..d4691b908e8c3af9bccc84d5c8ad8b052700f7ad 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -428,6 +428,10 @@ specified message types for the respective specified targets.
 ---
 *** Reconnection is now asynchronous.
 
+---
+*** Nick completion is now case-insentive again after inadvertently
+being made case-sensitive in Emacs 24.2.
+
 ** Midnight-mode
 
 ---
index 51ab20e330a1bf8e72a96245ca9861e39391b6c8..7b734460a3c51f69521de60f7a366b3f4af7960f 100644 (file)
@@ -1141,7 +1141,7 @@ which the local user typed."
     (define-key map "\C-c\C-u" 'erc-kill-input)
     (define-key map "\C-c\C-x" 'erc-quit-server)
     (define-key map "\M-\t" 'ispell-complete-word)
-    (define-key map "\t" 'completion-at-point)
+    (define-key map "\t" 'erc-completion-at-point)
 
     ;; Suppress `font-lock-fontify-block' key binding since it
     ;; destroys face properties.
@@ -3991,6 +3991,13 @@ Prompt for one if called interactively."
                          (format "MODE %s +k %s" tgt key)
                        (format "MODE %s -k" tgt)))))
 
+(defun erc-completion-at-point ()
+  "Perform complection on the text around point case-insentitively.
+See `completion-at-point'."
+  (interactive)
+  (let ((completion-ignore-case t))
+    (completion-at-point)))
+
 (defun erc-quit-server (reason)
   "Disconnect from current server after prompting for REASON.
 `erc-quit-reason' works with this just like with `erc-cmd-QUIT'."