GNU bug report logs - #15362
24.1; pcomplete unnecessarily restricts tab-completion entry points

Previous Next

Package: emacs;

Reported by: Vivek Dasmohapatra <vivek <at> etla.org>

Date: Fri, 13 Sep 2013 02:17:02 UTC

Severity: normal

Tags: moreinfo

Found in version 24.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Vivek Dasmohapatra <vivek <at> etla.org>
Cc: 15362 <at> debbugs.gnu.org
Subject: bug#15362: 24.1; pcomplete unnecessarily restricts tab-completion entry points
Date: Fri, 13 Sep 2013 09:32:25 -0400
>   customise the erc group, make sure erc-pcomplete is on (it
>   should be)

Ah, that's the trick.  Any reason why you do that?  The default should
already give you almost the same behavior.

Also does the patch below fix your problem?


        Stefan


=== modified file 'lisp/erc/erc-pcomplete.el'
--- lisp/erc/erc-pcomplete.el	2013-01-02 16:13:04 +0000
+++ lisp/erc/erc-pcomplete.el	2013-09-13 13:30:27 +0000
@@ -82,10 +82,8 @@
   "Complete the nick before point."
   (interactive)
   (when (> (point) (erc-beg-of-input-line))
-    (let ((last-command (if (eq last-command 'erc-complete-word)
-                            'pcomplete
-                          last-command)))
-      (call-interactively 'pcomplete))
+    (setq this-command 'pcomplete)
+    (call-interactively 'pcomplete)
     t))
 
 ;;; Setup function





This bug report was last modified 5 years and 296 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.