From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Substitute ? in dired without surrounding whitespace (was: Minibuffer default values list) Date: Sat, 17 Nov 2007 18:30:32 -0500 Message-ID: References: <87zlycuhrd.fsf@jurta.org> <87hckbecc0.fsf@jurta.org> <87prygxtot.fsf@jurta.org> <87bq9vhubw.fsf_-_@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1195342277 14948 80.91.229.12 (17 Nov 2007 23:31:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Nov 2007 23:31:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 18 00:31:21 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ItX8C-000885-0s for ged-emacs-devel@m.gmane.org; Sun, 18 Nov 2007 00:31:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ItX7y-0006yQ-QU for ged-emacs-devel@m.gmane.org; Sat, 17 Nov 2007 18:31:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ItX7T-0006g4-5X for emacs-devel@gnu.org; Sat, 17 Nov 2007 18:30:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ItX7R-0006fI-Co for emacs-devel@gnu.org; Sat, 17 Nov 2007 18:30:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ItX7R-0006fB-91 for emacs-devel@gnu.org; Sat, 17 Nov 2007 18:30:33 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ItX7Q-0007aJ-VN for emacs-devel@gnu.org; Sat, 17 Nov 2007 18:30:33 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1ItX7Q-0007iQ-GF; Sat, 17 Nov 2007 18:30:32 -0500 In-reply-to: <87bq9vhubw.fsf_-_@jurta.org> (message from Juri Linkov on Fri, 16 Nov 2007 03:27:59 +0200) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:83482 Archived-At: that gets translated to the dired's file name placeholder as display 'jpeg:?' but dired doesn't substitute it with a file name because ? is not surrounded by whitespace. This dired's limitation applies also to manually typing such a command line, not only by selecting it from a list of mailcap commands. Does there exist a way to tell dired to substitute a file name placeholder without surrounding whitespace? One solution is to set a shell variable. Does this work? for file in * ; do display "jpeg:$file"; done