GNU bug report logs -
#4286
[PATCH] Emacs CVS: lisp/ido.el -- improve ido-ignore-files
Previous Next
Reported by: Jari Aalto <jari.aalto <at> cante.net>
Date: Sat, 29 Aug 2009 09:00:06 UTC
Severity: wishlist
Tags: notabug, patch, wontfix
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
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 4286 in the body.
You can then email your comments to 4286 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4286
; Package
emacs
.
(Sat, 29 Aug 2009 09:00:06 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jari Aalto <jari.aalto <at> cante.net>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sat, 29 Aug 2009 09:00:06 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
Change against Emacs CVS tree as of 2009-08-29 11:5 UTC
2009-08-29 Jari Aalto <jari.aalto <at> cante.net>
* ido.el (ido-ignore-files): Add RCS, svn, darcs, sh, git, mtn
version control directories.
[0001-lisp-ido.el-ido-ignore-files-add-more-version-contro.patch (text/x-diff, inline)]
From 510e3bbded329dd9ce03f3eb94e8ffc2d6d5b9be Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto <at> cante.net>
Date: Sat, 29 Aug 2009 11:51:32 +0300
Subject: [PATCH] lisp/ido.el: (ido-ignore-files): add more version control directories
Signed-off-by: Jari Aalto <jari.aalto <at> cante.net>
---
lisp/ido.el | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/lisp/ido.el b/lisp/ido.el
index 2336fea..6316bdf 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -391,7 +391,21 @@ example functions that filter buffer names."
:group 'ido)
(defcustom ido-ignore-files
- '("\\`CVS/" "\\`#" "\\`.#" "\\`\\.\\./" "\\`\\./")
+ '(;; Version control system directories (VCS)
+ "\\`CVS/"
+ "\\`RCS/"
+ "\\`\\.svn/"
+ ;; Distributed version control system directories (DVCS)
+ "\\`\\.darcs/"
+ "\\`\\.hg/"
+ "\\`\\.git/"
+ "\\`\\.mtn/"
+ ;; Backup files
+ "\\`#"
+ "\\`.#"
+ ;; Directory components
+ "\\`\\.\\./"
+ "\\`\\./")
"List of regexps or functions matching file names to ignore.
For example, traditional behavior is not to list files whose names begin
with a #, for which the regexp is `\\`#'. See the source file for
--
1.6.3.3
Added tag(s) patch.
Request was from
Jari Aalto <jari.aalto <at> cante.net>
to
control <at> emacsbugs.donarmstrong.com
.
(Sat, 29 Aug 2009 10:30:06 GMT)
Full text and
rfc822 format available.
Changed bug title to '[PATCH] Emacs CVS: lisp/ido.el -- improve ido-ignore-files' from 'CVS: lisp/ido.el -- improve ido-ignore-files'
Request was from
Jari Aalto <jari.aalto <at> cante.net>
to
control <at> emacsbugs.donarmstrong.com
.
(Sat, 29 Aug 2009 10:45:45 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4286
; Package
emacs
.
(Mon, 31 Aug 2009 20:15:08 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juri Linkov <juri <at> jurta.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 31 Aug 2009 20:15:08 GMT)
Full text and
rfc822 format available.
Message #14 received at 4286 <at> emacsbugs.donarmstrong.com (full text, mbox):
> * ido.el (ido-ignore-files): Add RCS, svn, darcs, sh, git, mtn
> version control directories.
Better to initialize its default value from either
`vc-directory-exclusion-list' or `completion-ignored-extensions'.
The former is a subset of the latter.
> diff --git a/lisp/ido.el b/lisp/ido.el
> index 2336fea..6316bdf 100644
> --- a/lisp/ido.el
> +++ b/lisp/ido.el
> @@ -391,7 +391,21 @@ example functions that filter buffer names."
> :group 'ido)
>
> (defcustom ido-ignore-files
> - '("\\`CVS/" "\\`#" "\\`.#" "\\`\\.\\./" "\\`\\./")
> + '(;; Version control system directories (VCS)
> + "\\`CVS/"
> + "\\`RCS/"
> + "\\`\\.svn/"
> + ;; Distributed version control system directories (DVCS)
> + "\\`\\.darcs/"
> + "\\`\\.hg/"
> + "\\`\\.git/"
> + "\\`\\.mtn/"
> + ;; Backup files
> + "\\`#"
> + "\\`.#"
> + ;; Directory components
> + "\\`\\.\\./"
> + "\\`\\./")
> "List of regexps or functions matching file names to ignore.
> For example, traditional behavior is not to list files whose names begin
> with a #, for which the regexp is `\\`#'. See the source file for
--
Juri Linkov
http://www.jurta.org/emacs/
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4286
; Package
emacs
.
(Sat, 05 Dec 2009 20:30:08 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Chong Yidong <cyd <at> stupidchicken.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sat, 05 Dec 2009 20:30:08 GMT)
Full text and
rfc822 format available.
Message #19 received at 4286 <at> emacsbugs.donarmstrong.com (full text, mbox):
> Change against Emacs CVS tree as of 2009-08-29 11:5 UTC
>
> 2009-08-29 Jari Aalto <jari.aalto <at> cante.net>
>
> * ido.el (ido-ignore-files): Add RCS, svn, darcs, sh, git, mtn
> version control directories.
This change makes sense only if we never want to change these
directories. In practice, if you are trying to complete a dotfile, you
are already planning to do something funky, so Emacs probably shouldn't
try to do any second-guessing.
Added tag(s) wontfix.
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> emacsbugs.donarmstrong.com
.
(Sat, 05 Dec 2009 20:35:17 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4286
; Package
emacs
.
(Sun, 06 Dec 2009 10:55:09 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jari Aalto <jari.aalto <at> cante.net>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sun, 06 Dec 2009 10:55:09 GMT)
Full text and
rfc822 format available.
Message #26 received at 4286 <at> emacsbugs.donarmstrong.com (full text, mbox):
Chong Yidong <cyd <at> stupidchicken.com> writes:
>> Change against Emacs CVS tree as of 2009-08-29 11:5 UTC
>>
>> 2009-08-29 Jari Aalto <jari.aalto <at> cante.net>
>>
>> * ido.el (ido-ignore-files): Add RCS, svn, darcs, sh, git, mtn
>> version control directories.
>
> This change makes sense only if we never want to change these
> directories. In practice, if you are trying to complete a dotfile, you
> are already planning to do something funky, so Emacs probably shouldn't
> try to do any second-guessing.
Dot-file is not the same as version controlled control directory.
Jari
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4286
; Package
emacs
.
(Sun, 06 Dec 2009 15:35:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Chong Yidong <cyd <at> stupidchicken.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sun, 06 Dec 2009 15:35:04 GMT)
Full text and
rfc822 format available.
Message #31 received at 4286 <at> emacsbugs.donarmstrong.com (full text, mbox):
Jari Aalto <jari.aalto <at> cante.net> writes:
> Chong Yidong <cyd <at> stupidchicken.com> writes:
>
>>> Change against Emacs CVS tree as of 2009-08-29 11:5 UTC
>>>
>>> 2009-08-29 Jari Aalto <jari.aalto <at> cante.net>
>>>
>>> * ido.el (ido-ignore-files): Add RCS, svn, darcs, sh, git, mtn
>>> version control directories.
>>
>> This change makes sense only if we never want to change these
>> directories. In practice, if you are trying to complete a dotfile, you
>> are already planning to do something funky, so Emacs probably shouldn't
>> try to do any second-guessing.
>
> Dot-file is not the same as version controlled control directory.
By version control directories, you mean .svn, .bzr, etc., right? If I
understand your proposal correctly, it's to prevent ido from offering
these directories if the user tries types "." in the minibuffer. But in
that case, as I said, the intention is clearly to edit a dotfile, so
something funky is already intended. Correct me if I misunderstand.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4286
; Package
emacs
.
(Sun, 06 Dec 2009 19:35:09 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jari Aalto <jari.aalto <at> cante.net>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sun, 06 Dec 2009 19:35:09 GMT)
Full text and
rfc822 format available.
Message #36 received at 4286 <at> emacsbugs.donarmstrong.com (full text, mbox):
Chong Yidong <cyd <at> stupidchicken.com> writes:
>>>> Change against Emacs CVS tree as of 2009-08-29 11:5 UTC
>>>>
>>>> 2009-08-29 Jari Aalto <jari.aalto <at> cante.net>
>>>>
>>>> * ido.el (ido-ignore-files): Add RCS, svn, darcs, sh, git, mtn
>>>> version control directories.
>>>
>>> This change makes sense only if we never want to change these
>>> directories. In practice, if you are trying to complete a dotfile, you
>>> are already planning to do something funky, so Emacs probably shouldn't
>>> try to do any second-guessing.
>> Dot-file is not the same as version controlled control directory.
>
> By version control directories, you mean .svn, .bzr, etc., right? If I
> understand your proposal correctly, it's to prevent ido from offering
> these directories if the user tries types "." in the minibuffer. But
> in that case, as I said, the intention is clearly to edit a dotfile,
> so something funky is already intended. Correct me if I misunderstand.
Correct.
It's very rare for user to try to edit content of Version Control
directories. These are nor considered "dot-files" in a sense, that they
would be user editable by default. The content of Version Control
directories is managed by external programs.
Examples (Emacs CVS and directory lisp/) where Version Control
directories are ignored:
loaddefs.el
bindings.el
find-cmd.el
vc-hooks.el
Jari
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#4286
; Package
emacs
.
(Wed, 11 Apr 2012 13:37:02 GMT)
Full text and
rfc822 format available.
Message #39 received at 4286 <at> debbugs.gnu.org (full text, mbox):
Jari Aalto <jari.aalto <at> cante.net> writes:
> (defcustom ido-ignore-files
> - '("\\`CVS/" "\\`#" "\\`.#" "\\`\\.\\./" "\\`\\./")
> + '(;; Version control system directories (VCS)
> + "\\`CVS/"
> + "\\`RCS/"
> + "\\`\\.svn/"
> + ;; Distributed version control system directories (DVCS)
> + "\\`\\.darcs/"
> + "\\`\\.hg/"
(etc.)
I think this makes perfect sense. It already ignores "CVS" and ".#", so
why not .svn and friends, too?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#4286
; Package
emacs
.
(Wed, 11 Apr 2012 13:45:04 GMT)
Full text and
rfc822 format available.
Message #42 received at 4286 <at> debbugs.gnu.org (full text, mbox):
On 2012-04-11 21:35 +0800, Lars Magne Ingebrigtsen wrote:
> I think this makes perfect sense. It already ignores "CVS" and ".#", so
> why not .svn and friends, too?
,----[ C-h v ido-ignore-extensions RET ]
| ido-ignore-extensions is a variable defined in `ido.el'.
| Its value is t
|
| Documentation:
| Non-nil means ignore files in `completion-ignored-extensions' list.
|
| You can customize this variable.
|
| [back]
`----
Leo
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#4286
; Package
emacs
.
(Wed, 11 Apr 2012 13:47:01 GMT)
Full text and
rfc822 format available.
Message #45 received at 4286 <at> debbugs.gnu.org (full text, mbox):
Leo <sdl.web <at> gmail.com> writes:
> On 2012-04-11 21:35 +0800, Lars Magne Ingebrigtsen wrote:
>> I think this makes perfect sense. It already ignores "CVS" and ".#", so
>> why not .svn and friends, too?
>
> ,----[ C-h v ido-ignore-extensions RET ]
> | ido-ignore-extensions is a variable defined in `ido.el'.
> | Its value is t
> |
> | Documentation:
> | Non-nil means ignore files in `completion-ignored-extensions' list.
That explains why it already ignored .bzr. :-)
I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Added tag(s) notabug.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 11 Apr 2012 13:48:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
4286 <at> debbugs.gnu.org and Jari Aalto <jari.aalto <at> cante.net>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 11 Apr 2012 13:48: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
.
(Thu, 10 May 2012 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 44 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.