GNU bug report logs -
#14173
comint file completion bug
Previous Next
Reported by: bug-gnu-emacs <at> nowhen.com
Date: Wed, 10 Apr 2013 16:54:01 UTC
Severity: normal
Tags: fixed
Fixed in version 24.3
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14173 in the body.
You can then email your comments to 14173 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14173
; Package
emacs
.
(Wed, 10 Apr 2013 16:54:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
bug-gnu-emacs <at> nowhen.com
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 10 Apr 2013 16:54:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Function comint-quote-filename does not correctly quote "]" characters when
they appear in variable comint-file-name-quote-list. The function naively
formats each character in the list into a string representation of a character
set by surrounded them with "[" and "]".
When the list consists of characters like " " and "|", that works fine, and
yields character sets like "[ |]". But if the list is:
(91 93 124 38 60 62 40 41 59 32 36 42 33 34 39 96 35 92)
the resulting character set "[[]|&<>(); $*!\"'`#\\]" is wrong, as it does
not place "]" first, the only location where it is permitted. (That
restriction is not actually specified in,
http://emacswiki.org/emacs/RegularExpression, which defines character sets
rather poorly, but perhaps that wiki is not your responsibility.) I
suspect adding "-" to comint-file-name-quote-list except as the first or
last character would yield a similar problem.
I fixed the problem for myself by putting 93 as the first list element.
A more general solution would involve massaging the list in function
comint-file-name-quote-list to put "]" first and "-" last, when present.
I could write that code if you wish.
Sincerely,
Jacob Butcher
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14173
; Package
emacs
.
(Sat, 25 Mar 2017 05:23:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 14173 <at> debbugs.gnu.org (full text, mbox):
tags 14173 fixed
close 14173 24.3
quit
Jacob Butcher <bug-gnu-emacs <at> nowhen.com> writes:
> Function comint-quote-filename does not correctly quote "]" characters when
> they appear in variable comint-file-name-quote-list. The function naively
> formats each character in the list into a string representation of a character
> set by surrounded them with "[" and "]".
> When the list consists of characters like " " and "|", that works fine, and
> yields character sets like "[ |]". But if the list is:
>
> (91 93 124 38 60 62 40 41 59 32 36 42 33 34 39 96 35 92)
>
> the resulting character set "[[]|&<>(); $*!\"'`#\\]" is wrong, as it does
> not place "]" first, the only location where it is permitted.
This was fixed by [1: b4ff4f1fcb].
1: 2012-04-25 14:53:57 -0400 b4ff4f1fcb552dab77d4312f9adb9f290782fa98
Use completion-table-with-quoting for comint and pcomplete.
* lisp/comint.el [...]
(comint-quote-filename): Use regexp-opt-charset.
Added tag(s) fixed.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Sat, 25 Mar 2017 05:23:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 24.3, send any further explanations to
14173 <at> debbugs.gnu.org and bug-gnu-emacs <at> nowhen.com
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Sat, 25 Mar 2017 05:23:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 22 Apr 2017 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 116 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.