Mercurial > emacs
comparison lisp/dired-aux.el @ 21279:9d5cc9392151
(dired-run-shell-command): Maybe run handler.
author | Dave Love <fx@gnu.org> |
---|---|
date | Tue, 24 Mar 1998 17:08:34 +0000 |
parents | de9c2d924962 |
children | aad24611f04c |
comparison
equal
deleted
inserted
replaced
21278:df07331ebc84 | 21279:9d5cc9392151 |
---|---|
1 ;;; dired-aux.el --- less commonly used parts of dired -*-byte-compile-dynamic: t;-*- | 1 ;;; dired-aux.el --- less commonly used parts of dired -*-byte-compile-dynamic: t;-*- |
2 | 2 |
3 ;; Copyright (C) 1985, 1986, 1992, 1994 Free Software Foundation, Inc. | 3 ;; Copyright (C) 1985, 1986, 1992, 1994, 1998 Free Software Foundation, Inc. |
4 | 4 |
5 ;; Author: Sebastian Kremer <sk@thp.uni-koeln.de>. | 5 ;; Author: Sebastian Kremer <sk@thp.uni-koeln.de>. |
6 ;; Maintainer: FSF | 6 ;; Maintainer: FSF |
7 | 7 |
8 ;; This file is part of GNU Emacs. | 8 ;; This file is part of GNU Emacs. |
382 (setq fns (concat dired-mark-prefix fns dired-mark-postfix))) | 382 (setq fns (concat dired-mark-prefix fns dired-mark-postfix))) |
383 (funcall stuff-it fns))))) | 383 (funcall stuff-it fns))))) |
384 | 384 |
385 ;; This is an extra function so that it can be redefined by ange-ftp. | 385 ;; This is an extra function so that it can be redefined by ange-ftp. |
386 (defun dired-run-shell-command (command) | 386 (defun dired-run-shell-command (command) |
387 (shell-command command) | 387 (let ((handler |
388 (find-file-name-handler (directory-file-name default-directory) | |
389 'shell-command))) | |
390 (if handler (apply handler 'shell-command (list command)) | |
391 (shell-command command))) | |
388 ;; Return nil for sake of nconc in dired-bunch-files. | 392 ;; Return nil for sake of nconc in dired-bunch-files. |
389 nil) | 393 nil) |
390 | 394 |
391 ;; In Emacs 19 this will return program's exit status. | 395 ;; In Emacs 19 this will return program's exit status. |
392 ;; This is a separate function so that ange-ftp can redefine it. | 396 ;; This is a separate function so that ange-ftp can redefine it. |