From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Scholtes Newsgroups: gmane.emacs.devel Subject: ido-show-dot-for-dired Date: Sat, 04 Feb 2012 15:05:09 -0700 Message-ID: <4F2DAB95.2030308@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1328393125 14128 80.91.229.3 (4 Feb 2012 22:05:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Feb 2012 22:05:25 +0000 (UTC) To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 04 23:05:25 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RtnjY-0006M7-Oe for ged-emacs-devel@m.gmane.org; Sat, 04 Feb 2012 23:05:24 +0100 Original-Received: from localhost ([::1]:43184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtnjY-0007JD-4V for ged-emacs-devel@m.gmane.org; Sat, 04 Feb 2012 17:05:24 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtnjV-0007Ix-Om for emacs-devel@gnu.org; Sat, 04 Feb 2012 17:05:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtnjU-0001Hp-Lw for emacs-devel@gnu.org; Sat, 04 Feb 2012 17:05:21 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:56508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtnjU-0001Hi-Er for emacs-devel@gnu.org; Sat, 04 Feb 2012 17:05:20 -0500 Original-Received: by iagz16 with SMTP id z16so8482434iag.0 for ; Sat, 04 Feb 2012 14:05:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=u47at7fO4/MRQf0L1TDSFAOdaBzAW3R8akdicgMdFK8=; b=GgrGr1agXN40vkxuuibZ1EIh7qvKV6BoJpGLdn0C2L3XwT/EqRFmz+U5ZVenUen53D VcIfewoxhJgAIY4fp2MqOJvcAyOANq3gzcT2sHpogKHgqvHqoy9i7LPTqLDYUhd7Nvju /PxAUdWBCIntqUYZuwm6u5haMTwxD4kfWDvck= Original-Received: by 10.42.180.9 with SMTP id bs9mr11667680icb.0.1328393119360; Sat, 04 Feb 2012 14:05:19 -0800 (PST) Original-Received: from [192.168.1.2] (71-212-144-226.hlrn.qwest.net. [71.212.144.226]) by mx.google.com with ESMTPS id 5sm18278773ibe.8.2012.02.04.14.05.17 (version=SSLv3 cipher=OTHER); Sat, 04 Feb 2012 14:05:19 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120129 Thunderbird/10.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148165 Archived-At: Is there a reason why ido-show-dot-for-dired only has an effect in file name lists and not dir name lists? I.e. (setq ido-show-dot-for-dired nil) will not show the dot in file name lists, but it will in dir name lists always, e.g. with C-x d. I think it's annoying to have the dot in the dir list and have to do C-s when I could just hit Enter to get to the only other subdirectory. So, I am proposing to extend ido-show-dot-for-dired to include the directory lists. Setting ido-show-dot-for-dired to nil would disable the . in file and directory lists or enable it in both with non-nil. Unless somebody comes up with a reason why you would want it in one and not the other, this patch would accomplish it: === modified file 'lisp/ido.el' --- lisp/ido.el 2012-02-04 00:59:58 +0000 +++ lisp/ido.el 2012-02-04 21:20:47 +0000 @@ -3643,9 +3643,10 @@ (delete default ido-temp-list)) (setq ido-temp-list (cons default ido-temp-list)))) - (setq ido-temp-list (delete "." ido-temp-list)) - (unless ido-input-stack - (setq ido-temp-list (cons "." ido-temp-list))) + (when ido-show-dot-for-dired + (setq ido-temp-list (delete "." ido-temp-list)) + (unless ido-input-stack + (setq ido-temp-list (cons "." ido-temp-list)))) (run-hooks 'ido-make-dir-list-hook) ido-temp-list)) @@ -4727,6 +4728,8 @@ (ido-directory-too-big (and (not ido-directory-nonreadable) (ido-directory-too-big-p ido-current-directory))) (ido-work-directory-index -1) + (ido-show-dot-for-dired (and ido-show-dot-for-dired + (not default-dirname))) (ido-work-file-index -1)) (setq filename (ido-read-internal 'dir prompt 'ido-file-history default-dirname mustmatch initial)) WDYT? Christoph