From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15461: why do I need it Date: Thu, 26 Sep 2013 20:59:34 +0300 Message-ID: <83pprvfoqh.fsf@gnu.org> References: <5242E42A.4050109@poczta.onet.pl> <52446D87.9070501@poczta.onet.pl> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1380218421 13410 80.91.229.3 (26 Sep 2013 18:00:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Sep 2013 18:00:21 +0000 (UTC) Cc: 15461@debbugs.gnu.org To: Jarek Czekalski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 26 20:00:24 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VPFrP-0001Qv-G5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Sep 2013 20:00:19 +0200 Original-Received: from localhost ([::1]:59248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPFrP-0007pc-6c for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Sep 2013 14:00:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPFrH-0007pI-5S for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 14:00:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPFrB-00032v-4r for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 14:00:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPFrB-000311-2V for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 14:00:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VPFrA-0005BN-7U for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 14:00:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Sep 2013 18:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15461 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15461-submit@debbugs.gnu.org id=B15461.138021839419875 (code B ref 15461); Thu, 26 Sep 2013 18:00:03 +0000 Original-Received: (at 15461) by debbugs.gnu.org; 26 Sep 2013 17:59:54 +0000 Original-Received: from localhost ([127.0.0.1]:38447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VPFr0-0005AU-3w for submit@debbugs.gnu.org; Thu, 26 Sep 2013 13:59:54 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:60869) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VPFqx-0005AK-Ea for 15461@debbugs.gnu.org; Thu, 26 Sep 2013 13:59:53 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MTQ00300UXMDW00@a-mtaout22.012.net.il> for 15461@debbugs.gnu.org; Thu, 26 Sep 2013 20:59:45 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MTQ003EDVBKDR20@a-mtaout22.012.net.il>; Thu, 26 Sep 2013 20:59:45 +0300 (IDT) In-reply-to: <52446D87.9070501@poczta.onet.pl> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78756 Archived-At: > Date: Thu, 26 Sep 2013 19:23:19 +0200 > From: Jarek Czekalski > > > So I wonder what are the real-life use cases that motivated you to ask > > for this change. Is that only completion? > > I like to have my environment comfortable. I often work with batch > files, sometimes they have long names. Whether I am in native windows > shell (cmd.exe) or in my previous editor (jedit) I am used to get the > batch file name completed after pressing tab. A requirement of typing > always the full name of a batch file is awkward. > > You ask such a question that I am not sure what answer you expect. I expected nothing more than the answer to the question. Apologies if the question was not clear enough. Let me try to elaborate. If the only use case where you need this is completion of executables, an alternative solution could be to teach such completion to look in the current buffer's default directory, on systems where that is implicit. This could be an easier solution than futzing with the environment. The disadvantage of adding something to the environment is that it affects more than just your use case, and it also affects every sub-process Emacs will run. The broader the effect, the higher the risk of unintended consequences (a.k.a. "bugs that we will introduce while fixing this one"). It sounds like your problem is indeed limited to completion of executable file names, which seems to suggest that a narrower, more specific solution is possible.