Stefan Kangas <stefan@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 19911) by debbugs.gnu.org; 20 Feb 2015 11:48:09 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 20 06:48:09 2015 Received: from localhost ([127.0.0.1]:49201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1YOm41-0006TR-5A for submit <at> debbugs.gnu.org; Fri, 20 Feb 2015 06:48:09 -0500 Received: from mail1.bemta4.messagelabs.com ([85.158.143.249]:61172) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <eda@HIDDEN>) id 1YOm3t-0006Sw-05 for 19911 <at> debbugs.gnu.org; Fri, 20 Feb 2015 06:48:07 -0500 Received: from [85.158.143.35] by server-2.bemta-4.messagelabs.com id C9/FD-02830-0FE17E45; Fri, 20 Feb 2015 11:48:00 +0000 X-Env-Sender: eda@HIDDEN X-Msg-Ref: server-7.tower-21.messagelabs.com!1424432876!12121564!1 X-Originating-IP: [80.169.169.167] X-StarScan-Received: X-StarScan-Version: 6.13.4; banners=waniasset.com,-,- X-VirusChecked: Checked Received: (qmail 18402 invoked from network); 20 Feb 2015 11:47:59 -0000 Received: from unknown (HELO WCL-EXCHCAS02.wcl.local) (80.169.169.167) by server-7.tower-21.messagelabs.com with AES128-SHA encrypted SMTP; 20 Feb 2015 11:47:59 -0000 Received: from WCL-EXCH02.wcl.local ([169.254.1.57]) by WCL-EXCHCAS02.wcl.local ([149.85.127.102]) with mapi id 14.03.0123.003; Fri, 20 Feb 2015 11:47:56 +0000 From: Ed Avis <eda@HIDDEN> To: 'Eli Zaretskii' <eliz@HIDDEN> Subject: RE: bug#19911: 24.4; shell-mode command completion - smarter handling of backup files Thread-Topic: bug#19911: 24.4; shell-mode command completion - smarter handling of backup files Thread-Index: AQHQTQJePpx9MlyrpUaAfgkjI9kb7pz5ayEg Date: Fri, 20 Feb 2015 11:47:55 +0000 Message-ID: <7E039918541B4C4183BFDB8F015C743032DD9184@HIDDEN> References: <7E039918541B4C4183BFDB8F015C743032DD9159@HIDDEN> <83bnkolsfk.fsf@HIDDEN> In-Reply-To: <83bnkolsfk.fsf@HIDDEN> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [149.85.127.178] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 19911 Cc: "19911 <at> debbugs.gnu.org" <19911 <at> debbugs.gnu.org> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.3 (-) >Does customizing shell-completion-fignore to include "~" do what you >want? It appears not to; I now have '(shell-completion-fignore (quote ("~")) in my custom-set-variables, but the behaviour on typing ./script TAB TAB i= s still the same. But really this bug is about the different treatment of filename completio= n and command completion. Whatever the shell-completion-fignore setting, it should apply the same wa= y to both. It appears that filename completion has special handling for backup files,= even if shell-completion-fignore is at its default empty values. The backup files are not completely ignor= ed for tab-completion, but they do not provoke a completions buffer either. They just require you to= hit TAB a second time. That is a sensible compromise as a default behaviour - it just needs to be= applied consistently to command completion too. --=20 Ed Avis <eda@HIDDEN> ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________
bug-gnu-emacs@HIDDEN
:bug#19911
; Package emacs
.
Full text available.Received: (at 19911) by debbugs.gnu.org; 20 Feb 2015 11:42:59 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 20 06:42:59 2015 Received: from localhost ([127.0.0.1]:49197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1YOlz1-0006LH-Et for submit <at> debbugs.gnu.org; Fri, 20 Feb 2015 06:42:59 -0500 Received: from mtaout21.012.net.il ([80.179.55.169]:46921) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <eliz@HIDDEN>) id 1YOlyy-0006L8-FQ for 19911 <at> debbugs.gnu.org; Fri, 20 Feb 2015 06:42:57 -0500 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NK200900IZBAR00@HIDDEN> for 19911 <at> debbugs.gnu.org; Fri, 20 Feb 2015 13:42:55 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NK2009BTJ7IAY00@HIDDEN>; Fri, 20 Feb 2015 13:42:55 +0200 (IST) Date: Fri, 20 Feb 2015 13:43:11 +0200 From: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#19911: 24.4; shell-mode command completion - smarter handling of backup files In-reply-to: <7E039918541B4C4183BFDB8F015C743032DD9159@HIDDEN> X-012-Sender: halo1@HIDDEN To: Ed Avis <eda@HIDDEN> Message-id: <83bnkolsfk.fsf@HIDDEN> References: <7E039918541B4C4183BFDB8F015C743032DD9159@HIDDEN> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 19911 Cc: 19911 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii <eliz@HIDDEN> List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) > From: Ed Avis <eda@HIDDEN> > Date: Fri, 20 Feb 2015 11:35:21 +0000 > > Create a file 'script' and make it executable. Edit it in emacs > so that a backup file 'script~' is also created (and Emacs makes > the backup file executable too). > > Now m-x shell and type > > ls script TAB TAB > > The first TAB appears not to do anything, but the second TAB inserts a > space as a unique completion. This is because tab-completion for > filenames gives lower importance to backup files ending ~, so that they > won't by themselves cause a completions buffer to pop up. That is a > useful enhancement to the usability of tab-completion. > > However, the same useful behaviour isn't applied for command completion, > in other words the first word of the shell command typed. Enter > > ./script TAB TAB > > and you get a 'Complete, but not unique' message and on the second TAB > a completions buffer showing script and script~. > > It would be more useful to treat the backup file consistently with what > happens for ordinary filename completion, so that the first TAB would > appear to do nothing, while the second TAB inserts a space. Does customizing shell-completion-fignore to include "~" do what you want?
bug-gnu-emacs@HIDDEN
:bug#19911
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 20 Feb 2015 11:35:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 20 06:35:38 2015 Received: from localhost ([127.0.0.1]:49192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1YOlrt-0006A5-B8 for submit <at> debbugs.gnu.org; Fri, 20 Feb 2015 06:35:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40079) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <eda@HIDDEN>) id 1YOlro-00069v-PO for submit <at> debbugs.gnu.org; Fri, 20 Feb 2015 06:35:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <eda@HIDDEN>) id 1YOlrm-00081p-IK for submit <at> debbugs.gnu.org; Fri, 20 Feb 2015 06:35:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eda@HIDDEN>) id 1YOlrm-00081f-FM for submit <at> debbugs.gnu.org; Fri, 20 Feb 2015 06:35:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <eda@HIDDEN>) id 1YOlrk-0006Ja-D3 for bug-gnu-emacs@HIDDEN; Fri, 20 Feb 2015 06:35:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <eda@HIDDEN>) id 1YOlrg-0007vt-Vn for bug-gnu-emacs@HIDDEN; Fri, 20 Feb 2015 06:35:28 -0500 Received: from mail1.bemta5.messagelabs.com ([195.245.231.142]:58946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eda@HIDDEN>) id 1YOlrg-0007vH-O1 for bug-gnu-emacs@HIDDEN; Fri, 20 Feb 2015 06:35:24 -0500 Received: from [85.158.139.211] by server-6.bemta-5.messagelabs.com id 6F/73-03165-BFB17E45; Fri, 20 Feb 2015 11:35:23 +0000 X-Env-Sender: eda@HIDDEN X-Msg-Ref: server-16.tower-206.messagelabs.com!1424432122!8103148!1 X-Originating-IP: [213.212.127.155] X-StarScan-Received: X-StarScan-Version: 6.13.4; banners=waniasset.com,-,- X-VirusChecked: Checked Received: (qmail 17807 invoked from network); 20 Feb 2015 11:35:23 -0000 Received: from unknown (HELO WCL-EXCHCAS03.wcl.local) (213.212.127.155) by server-16.tower-206.messagelabs.com with AES128-SHA encrypted SMTP; 20 Feb 2015 11:35:23 -0000 Received: from WCL-EXCH02.wcl.local ([169.254.1.57]) by WCL-EXCHCAS03.wcl.local ([149.85.126.212]) with mapi id 14.03.0123.003; Fri, 20 Feb 2015 11:35:22 +0000 From: Ed Avis <eda@HIDDEN> To: "'bug-gnu-emacs@HIDDEN'" <bug-gnu-emacs@HIDDEN> Subject: 24.4; shell-mode command completion - smarter handling of backup files Thread-Topic: 24.4; shell-mode command completion - smarter handling of backup files Thread-Index: AdBNAUGFmWYGb+xqQ1umVmKpBnqc2Q== Date: Fri, 20 Feb 2015 11:35:21 +0000 Message-ID: <7E039918541B4C4183BFDB8F015C743032DD9159@HIDDEN> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [149.85.127.178] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -4.0 (----) Create a file 'script' and make it executable. Edit it in emacs so that a backup file 'script~' is also created (and Emacs makes the backup file executable too). Now m-x shell and type ls script TAB TAB The first TAB appears not to do anything, but the second TAB inserts a space as a unique completion. This is because tab-completion for filenames gives lower importance to backup files ending ~, so that they won't by themselves cause a completions buffer to pop up. That is a useful enhancement to the usability of tab-completion. However, the same useful behaviour isn't applied for command completion, in other words the first word of the shell command typed. Enter ./script TAB TAB and you get a 'Complete, but not unique' message and on the second TAB a completions buffer showing script and script~. It would be more useful to treat the backup file consistently with what happens for ordinary filename completion, so that the first TAB would appear to do nothing, while the second TAB inserts a space. In GNU Emacs 24.4.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.9) of 2014-11-03 on wcl-linux04.wcl.local Configured using: `configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png= --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dgtk3 --with-gpm=3Dno build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector-strong --param=3Dssp-buffer-size=3D4 -grecord-gcc-switches -m64 -mtune=3Dgeneric' 'LDFLAGS=3D-Wl,-z,relro '' Important settings: value of $LC_COLLATE: C value of $LC_CTYPE: en_GB.UTF-8 value of $LC_MESSAGES: en_GB.UTF-8 value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-a=20 C-@ C-e ESC w C-x b RET C-y DEL / ; RET TAB e x i t=20 SPC 1 ; ESC x p e r l SPC m o SPC RET TAB RET C-x C-s=20 ESC x s h e l l RET c DEL C-x b k w TAB - s TAB RET=20 ESC > . DEL p DEL c h m o d SPC a + x SPC h a r TAB=20 RET ~ / s v DEL DEL C-a C-k d e l t a RET ~ / i n s=20 t TAB d e l TAB b DEL d e TAB - t e s t =3D h a r DEL=20 DEL DEL . / h a r n e s s SPC - c p _ m i n i m a l=20 =3D 1 SPC 0 RET C-x C-f h a r TAB RET C-p C-p C-f C-f=20 C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f=20 C-f C-d m { C-e DEL DEL } ; C-x C-s C-x b RET ESC p=20 RET . / h C-a C-k C-x b RET C-a C-n C-k d i e SPC "=20 w r o n g SPC o p u t p DEL DEL DEL DEL o u t p DEL=20 DEL DEL DEL u t p u t SPC $ r " ; C-x C-s C-x b RET=20 ESC p RET C-x C-c C-c C-c C-c C-g C-c C-c . / h a r=20 TAB 0 RET ESC p DEL SPC 0 RET . / h a TAB TAB TAB C-a=20 C-k ESC x r e p o r t SPC e m SPC b SPC RET Recent messages: Saving file /home/eda/svn_working/repos/harness... Wrote /home/eda/svn_working/repos/harness Saving file /home/eda/svn_working/repos/harness... Wrote /home/eda/svn_working/repos/harness (No files need saving) C-c C-c is undefined C-c C-g is undefined Quit Making completion list... Complete, but not unique Load-path shadows: None found. Features: (shadow sort emacsbug sendmail conf-mode python json css-mode smie mail-extr log-view smerge-mode kmacro mule-util tabify imenu man pcmpl-rpm sql view dired vc-git ffap thingatpt url-parse auth-source eieio eieio-core gnus-util password-cache url-vars help-mode diff-mode vc cus-edit wid-edit cus-start cus-load perl-mode misearch multi-isearch vc-dispatcher vc-svn nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok dabbrev pcmpl-unix xterm time-date log-edit easy-mmode message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log server csharp-mode advice help-fns byte-opt bytecomp byte-compile cconv cc-langs cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs zoom-frm frame-cmds frame-fns cl-macs avoid cl gv cl-loaddefs cl-lib compile shell pcomplete comint ring ansi-color tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 588436 37383) (symbols 48 29341 0) (miscs 40 405 2391) (strings 32 56756 5895) (string-bytes 1 2915522) (vectors 16 21282) (vector-slots 8 540657 44252) (floats 8 234 583) (intervals 56 70434 224) (buffers 960 59) (heap 1024 56831 1822)) ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________
Ed Avis <eda@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#19911
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.