- To: listaddr1@xxxxxxxxxxx
- Subject: Re: listing the most user friendly apps with emacspeak.
- From: "T. V. Raman" <raman@xxxxxxxxxxx>
- Date: Thu, 26 Oct 2006 06:21:26 -0700
- Delivered-To: emacspeak@xxxxxxxxxxx
- In-Reply-To: <17728.32896.920050.818083@xxxxxxxxxxx>
- List-Help: <mailto:emacspeak-request@xxxxxxxxxxx?subject=help>
- List-Post: <mailto:emacspeak@xxxxxxxxxxx>
- List-Subscribe: <mailto:emacspeak-request@xxxxxxxxxxx?subject=subscribe>
- List-Unsubscribe: <mailto:emacspeak-request@xxxxxxxxxxx?subject=unsubscribe>
- Old-Return-Path: <raman@xxxxxxxxxxx>
- Reply-To: raman@xxxxxxxxxxx
- Resent-Date: Thu, 26 Oct 2006 09:21:28 -0400 (EDT)
- Resent-From: emacspeak@xxxxxxxxxxx
- Resent-Message-ID: <igZfm.A.Hi.YZLQFB@xxxxxxxxxxx>
- Resent-Sender: emacspeak-request@xxxxxxxxxxx
Lucas,
You may be doing a bit more work than necessary in your solution.
When in a dired buffer C-e ; should prompt with the current dir,
and you can use completion to pick the file, or hit enter to play
all files in the directory.
The prompting behavior may well be a recent change --- originally
emacspeak-m-player always used the emacspeak/realaudio directory
as the starting point
>>>>> "Lukas" == Lukas Loehrer <listaddr1@xxxxxxxxxxx> writes:
Lukas> Steve Holmes writes ("Re: listing the most user
Lukas> friendly apps with emacspeak."):
>> I'm still looking for a way to launch files from Dired and
>> still be able to control the launched application.
>> Example: I activate an mp3 file from Dired and say, it
>> launches mplayer. I right now, cannot control mplayer
>> once it is launched. Dired still has focus. Is there any
>> way to get into mplayer and manipulate it and then quit to
>> have control go back to Dired?
Lukas> I do not know a general answer to your problem, but in
Lukas> the case of mplayer, I use something like the
Lukas> following in my .emacs file:
Lukas>
Lukas> (defun ll-dired-do-with-filename (action &rest args)
Lukas> "Apply action to currently selected filename" (let
Lukas> ((filename (dired-get-filename nil t))) (if filename
Lukas> (apply action filename args) (message "No file
Lukas> selected"))))
Lukas>
Lukas> (when (featurep 'emacspeak) (define-key dired-mode-map
Lukas> "\C-cp" (lambda () (interactive)
Lukas> (ll-dired-do-with-filename 'emacspeak-m-player))))
Lukas>
Lukas> With this, you can do "C-c p" when on an mp3 file in
Lukas> dired and the m-player integration of emacspeak will
Lukas> start. Do "C-h m" then to see the available commands.
Lukas> If you are only interested in the audio, make sure you
Lukas> have the "novideo" option set in your mplayer
Lukas> configuration file. This should prevent it from
Lukas> stealing focus when launched under X.
Lukas>
Lukas> Best regards, Lukas
Lukas>
Lukas> -----------------------------------------------------------------------------
Lukas> To unsubscribe from the emacspeak list or change your
Lukas> address on the emacspeak list send mail to
Lukas> "emacspeak-request@xxxxxxxxxxx" with a subject of
Lukas> "unsubscribe" or "help"
--
Best Regards,
--raman
Email: raman@xxxxxxxxxxx
WWW: http://emacspeak.sf.net/raman/
AIM: emacspeak GTalk: tv.raman.tv@xxxxxxxxxxx
PGP: http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman
IRC: irc://irc.freenode.net/#emacs
-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@xxxxxxxxxxx" with a
subject of "unsubscribe" or "help"