all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.rodgers@ihs.com>
Subject: Re: Scroll down *Schell Command Output* buffer when output arrives
Date: Tue, 04 Mar 2003 15:28:30 -0700	[thread overview]
Message-ID: <3E65288E.1050409@ihs.com> (raw)
In-Reply-To: 3E5A3E28.4010901@student.uu.se

Jens Persson wrote:

> (defun csound-compile-curr-osc-sco ()
>   (interactive)
>   (shell-command (concat "csound -A -d -o test.aif "
>    (file-name-sans-extension (buffer-name)) ".orc "
>    (file-name-sans-extension (buffer-name)) ".sco"))
> )


That won't work if you happen to be visiting 2 files with the same name but
in different directories, which usually results in buffers named e.g. foo.bar
and foo.bar<2>.  I would write that as:

   (let* ((file (file-name-nondirectory buffer-file-name))
	 (sound (file-name-sans-extension file)))
     (shell-command (format "csound -A -d -o test.aif %s.orc %s.sco"
			   sound sound)))

-- 
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;">Kevin Rodgers</a>

      parent reply	other threads:[~2003-03-04 22:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-24 15:45 Scroll down *Schell Command Output* buffer when output arrives Jens Persson
2003-02-24 16:37 ` Benjamin Rutt
2003-02-25 11:59   ` Jens Persson
2003-03-05 16:14     ` Robert Figura
2003-03-04 22:28 ` Kevin Rodgers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E65288E.1050409@ihs.com \
    --to=kevin.rodgers@ihs.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.