From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: dired's marks helped me execute all the files on my system Date: 28 Mar 2002 21:26:57 +0800 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: Reply-To: jidanni@yahoo.com.tw NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1017333813 12204 127.0.0.1 (28 Mar 2002 16:43:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 28 Mar 2002 16:43:33 +0000 (UTC) Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16qczt-0003Aj-00 for ; Thu, 28 Mar 2002 17:43:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16qczq-00081b-00; Thu, 28 Mar 2002 11:43:30 -0500 Original-Received: from mailbox1.ucsd.edu ([132.239.1.53]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16qcxU-0007oy-00 for ; Thu, 28 Mar 2002 11:41:04 -0500 Original-Received: from mail.fu-berlin.de (mail.fu-berlin.de [160.45.11.165]) by mailbox1.ucsd.edu (8.12.1/8.12.1) with ESMTP id g2SGf1a2019864 for ; Thu, 28 Mar 2002 08:41:02 -0800 (PST) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Thu, 28 Mar 2002 17:41:01 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Thu, 28 Mar 2002 17:41:01 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 61-227-44-82.hinet-ip.hinet.NET!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 76 X-Orig-NNTP-Posting-Host: 61-227-44-82.hinet-ip.hinet.net (61.227.44.82) X-Orig-X-Trace: fu-berlin.de 1017333661 25756004 61.227.44.82 (16 [99749]) X-Orig-Path: localhost.localdomain!nobody User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:273 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:273 Oh, just wanted to let you know my latest "! on dired marked files" fiasco, as it was so entertaining. No fault of emacs. Just the monthly or so pilot error. Normally I have ! in dired set to do validate, e.g., I put the cursor on opensrs.html, hit ! RET, and the file gets HTML validated. Here's what the prompt looks like. ! on opensrs.html: [validate --emacs] Oddly, I have just cut and pasted this from the minibuffer into gnus, and notice C-e and C-a act funny still in it even after I have pasted it into gnus. Anyway, today I had marked 74 files in dired, so my routine of putting the cursor on an .html file and hitting ! RET caused me to _execute_ all 74 files [yes, I didn't notice that the prompt was different, my fault. Anyway, doesn't _executing_ lots of files remind you of that other leading brand operating system "oh blast, it has executed the mail attachment"] Anyways, things were really jumping here with me executing 74 files. Before you knew it I had already computed Jupiter's moons. Julian day: 2452362.500000 08:00:00 local on 03/29/2002 == 00:00:00 UT on 03/29/2002 08e i g c 09 e i c 10 e i c 11 e c g Made My personal dweebstar star rise/set profile, printed Thu 03 28 20:18:00 CST 2002 (c)2001 GNU/GPL Found an error comp/at_xmessage.txt: line 3: syntax error near unexpected token `;' Computed the romanization of all place names in northern Taiwan Computed the grid location of electric pole markers [my hobby] Computed Antipodes: geo/antipodes/gmt.txt -5 40 6 for New Zelanders to visit their antipodes in Spain geo/antipodes/gmt.txt -157 21 7 Hawaii -- Botswana geo/antipodes/gmt.txt 120 25 50 shows all of South American antipodes in Asia comp/phonecombo.txt: 1: parameter null or not set otherwise would have found what words your phone number can spell. etc. Anyways, how exciting. Yes, pilot error. Good thing I have no file that does bad things when executed, as the way things are going, I am certain that certainly sooner or later every executable file on my system will be executed sooner or later, the way things are going. [yes, today I only executed 74, despite my eye-catching Subject] Yes, "1!" instead of "!" avoids the undesired behavior. Say, wouldn't it be safer to have the 1! behavior be the default of ! instead of the 74! or whatever behavior, which should require extra typing effort on the part of the user, instead of the other way around. Is there some new default we can put in place to put the burden of typing extra on those who want extra, instead of the other way around? That way the ! would now have consistent behavior -- acting on one file unless specially qualified, say with *. Oh, I see "*!" is already used by something else. Ok, how about "%!"? I mean most of the time ! operates on one file, until the days when you mark --- then forget you marked -- some files. Then all the sudden it acts on 74 files. -- http://jidanni.org/ Taiwan(04)25854780