From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: Re: M-! in dired-mode Date: Sat, 1 Dec 2007 18:17:54 +0200 Message-ID: <200712011817.54372.pogonyshev@gmx.net> References: <200712010115.18034.pogonyshev@gmx.net> <87ve7jl29v.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196522288 29109 80.91.229.12 (1 Dec 2007 15:18:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2007 15:18:08 +0000 (UTC) Cc: Juri Linkov To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 01 16:18:17 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 1IyU6g-0001aP-Ve for ged-emacs-devel@m.gmane.org; Sat, 01 Dec 2007 16:18:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyU6Q-0004Jz-N1 for ged-emacs-devel@m.gmane.org; Sat, 01 Dec 2007 10:17:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IyU6N-0004IZ-H6 for emacs-devel@gnu.org; Sat, 01 Dec 2007 10:17:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IyU6L-0004Hy-SN for emacs-devel@gnu.org; Sat, 01 Dec 2007 10:17:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyU6L-0004Hv-PR for emacs-devel@gnu.org; Sat, 01 Dec 2007 10:17:53 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IyU6K-00056l-5b for emacs-devel@gnu.org; Sat, 01 Dec 2007 10:17:52 -0500 Original-Received: (qmail invoked by alias); 01 Dec 2007 15:17:50 -0000 Original-Received: from unknown (EHLO [10.19.3.202]) [212.98.162.3] by mail.gmx.net (mp011) with SMTP; 01 Dec 2007 16:17:50 +0100 X-Authenticated: #16844820 X-Provags-ID: V01U2FsdGVkX1+wT4UGFTywB6Hf6LlSgZ8X6D+aD6Kw/agLl2dtBR ZfvbhhAGo7XNIM User-Agent: KMail/1.7.2 In-Reply-To: <87ve7jl29v.fsf@jurta.org> Content-Disposition: inline X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:84423 Archived-At: Juri Linkov wrote: > > M-! runs `shell-command' in `dired-mode'. However, I cannot figure > > when it runs on file under point and when without a file at all, it > > seems to be completely random. I mean, the buffer prompt does > > unambigously say whether it will be run on a file or not, but that > > prompt itself varies for no apparent reason and I couldn't find > > anything in help... > > > > Can anyone enlighten me (or just point to correct info node)? > > `M-!' doesn't operate on dired files, but ! operates on files under > point with the prompt displaying their names. So there is a clear > distinction: `!' works only in dired on its files, and `M-!' is a global > command. My latest week-old unconfirmed patches provide a default value > for the command `M-!': when it is called in a file buffer then the > default value contains the current buffer's file name. But it could be > improved also in a way that if `M-!' is called in a dired buffer, then > its default value could be a file under point in dired. Ah, that's explain it. At work I have a keyboard with bad left Alt key, so it seems randomness just plays when I try to press M-! and it comes through as just ! (withot Meta). Somehow I never considered this possibility. Sorry for false alarm :-/ Paul