unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* PDF from dired-buffer with win32 Reader in background?
@ 2012-10-12  8:54 twiki7619
  2012-10-12  9:52 ` Tassilo Horn
  2012-10-23  8:12 ` Martin
  0 siblings, 2 replies; 3+ messages in thread
From: twiki7619 @ 2012-10-12  8:54 UTC (permalink / raw)
  To: help-gnu-emacs

To read PDF files from within a Dired buffer
I use ! on the name of the file and the following
settings in my. emacs

...
  (add-hook 'dired-load-hook
  	  (function (lambda ()
  		      (load "dired-x"))))

  (setq dired-guess-shell-alist-user
      (list
       (list "\\.pdf$"    "acrord32.exe")
       (list "\\.PDF$"    "acrord32.exe")
       ))
...

(The path of acrord32.exe is in my environment variable PATH)

Emacs, however, remains locked until I close Adobe Reader!
How do I run acrord32.exe in the background
while maintaining control of Emacs?

THANKS!


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PDF from dired-buffer with win32 Reader in background?
  2012-10-12  8:54 PDF from dired-buffer with win32 Reader in background? twiki7619
@ 2012-10-12  9:52 ` Tassilo Horn
  2012-10-23  8:12 ` Martin
  1 sibling, 0 replies; 3+ messages in thread
From: Tassilo Horn @ 2012-10-12  9:52 UTC (permalink / raw)
  To: help-gnu-emacs

twiki7619@gmail.com writes:

Hi!

> Emacs, however, remains locked until I close Adobe Reader!  How do I
> run acrord32.exe in the background while maintaining control of Emacs?

,----[ C-h f dired-do-shell-command RET ]
| dired-do-shell-command is an interactive autoloaded compiled Lisp function in
| `dired-aux.el'.
| 
| [...]
| 
| If COMMAND ends in `&', `;', or `;&', it is executed in the
| background asynchronously, and the output appears in the buffer
| `*Async Shell Command*'.  When operating on multiple files and COMMAND
| ends in `&', the shell command is executed on each file in parallel.
| However, when COMMAND ends in `;' or `;&' then commands are executed
| in the background on each file sequentially waiting for each command
| to terminate before running the next command.  You can also use
| `dired-do-async-shell-command' that automatically adds `&'.
| 
| [...]
`----

Bye,
Tassilo




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PDF from dired-buffer with win32 Reader in background?
  2012-10-12  8:54 PDF from dired-buffer with win32 Reader in background? twiki7619
  2012-10-12  9:52 ` Tassilo Horn
@ 2012-10-23  8:12 ` Martin
  1 sibling, 0 replies; 3+ messages in thread
From: Martin @ 2012-10-23  8:12 UTC (permalink / raw)
  To: help-gnu-emacs


twiki7619 at gmail.com writes:

> Emacs, however, remains locked until I close Adobe Reader!

I use "dired-w32-browser, which is an interactive autoloaded Lisp
function in `w32-browser.el'".

Martin


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-10-23  8:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12  8:54 PDF from dired-buffer with win32 Reader in background? twiki7619
2012-10-12  9:52 ` Tassilo Horn
2012-10-23  8:12 ` Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).