From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: shell links [was: Version 4.19c] Date: Thu, 6 Apr 2006 21:28:19 +0200 Message-ID: <99190467852be4837e9eae9cc2f4f95d@science.uva.nl> References: <44354222.60104@u.washington.edu> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FRa9S-00037J-Bw for emacs-orgmode@gnu.org; Thu, 06 Apr 2006 15:28:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FRa9R-00036v-0g for emacs-orgmode@gnu.org; Thu, 06 Apr 2006 15:28:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FRa9Q-00036s-NN for emacs-orgmode@gnu.org; Thu, 06 Apr 2006 15:28:16 -0400 Received: from [194.134.35.146] (helo=smtp06.wanadoo.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FRaDE-00010b-6t for emacs-orgmode@gnu.org; Thu, 06 Apr 2006 15:32:12 -0400 In-Reply-To: <44354222.60104@u.washington.edu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Scott Otterson Cc: emacs-orgmode@gnu.org > Lot's of nice changes in 4.19. I'm really impressed at how fast > Carsten & Co. are cranking out new code and new fixes. Fixing goes fast if people are out there testing things. Thanks for your report. > > Looks like there are a few problems with shell links in 4.19c, though. > > 1.) If I type C-c C-l, and then at the link: prompt, type > > shell:SPACE > > where SPACE means I hit the spacebar, then I get a [No Match] error > message. If I instead type: > > shell:lsSPACE > > then I get the [No Match] error after the 'ls' This is because SPACE does completion in the minibuffer. Hmm. Ok, I can turn this default off and make SPACE insert itself. This means that only TAB will do completion in the minibuffer at the C-c C-l prompt. Not a problem, I guess. > > 2.) If I manually make a shell link like this > > [[shell:ls *.org][shellcmd]] > > and then type C-c C-o. The minibuffer asks m: > > Execute " " in the shel? (yes or no) > > Even though there's a blank, the ls command works if I say yes The command is there, it is only invisible because it is a copy of the invisible command in the [[ ]] link :-). I am removing this invisibility property now. > > 3.) If I put the cursor in the link and type C-c C-l, then > the minibuffer says: > > Link: shell:ls%20*.org > > If I cancel (C-g), C-c C-o still works. > In the hidden part of a link, space and brackets are escaped. I forgot to unescape for the editing prompt. While I was at it, I have also removed the restrictions on shell commands. Shell: links in [[ ]] brackets can now contain "<", ">", and "|". These restrictions were only needed in <> links, but now no longer. This is nice. Also, maybe you'd like to know that there is a variable to turn off the safety query in shell links: org-confirm-shell-links. I could also change the yes-or-no query to a y-or-n query to make it easier to answer.... We'll see, not now. > Scott Thanks. The above named changes are in http://www.astro.uva.nl/~dominik/Tools/org/org-4.19d.zip - Carsten > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477