diff options
| author | Ralph Schleicher | 2011-05-08 14:34:51 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-05-08 14:34:51 -0400 |
| commit | 2a86a00c4fbd998fedf778c65764f607f7da1855 (patch) | |
| tree | 4784c4d08ef5fac810220fd24a8295b30c4c2a08 | |
| parent | 085f5d7dcae1d423054ea0dd0c87382ee01cc6fa (diff) | |
| download | emacs-2a86a00c4fbd998fedf778c65764f607f7da1855.tar.gz emacs-2a86a00c4fbd998fedf778c65764f607f7da1855.zip | |
Expand file names during browse-url-of-dired-file (Bug#8259).
* lisp/net/browse-url.el (browse-url-of-dired-file): Allow browsing of
special file names `.' and `..'.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/net/browse-url.el | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3d2cb34730d..488bd07a632 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -3,6 +3,9 @@ | |||
| 3 | * progmodes/perl-mode.el (perl-imenu-generic-expression): Only | 3 | * progmodes/perl-mode.el (perl-imenu-generic-expression): Only |
| 4 | match variables declared via `my' or `our' (Bug#8261). | 4 | match variables declared via `my' or `our' (Bug#8261). |
| 5 | 5 | ||
| 6 | * net/browse-url.el (browse-url-of-dired-file): Allow browsing of | ||
| 7 | special file names `.' and `..' (Bug#8259). | ||
| 8 | |||
| 6 | 2011-05-08 Chong Yidong <cyd@stupidchicken.com> | 9 | 2011-05-08 Chong Yidong <cyd@stupidchicken.com> |
| 7 | 10 | ||
| 8 | * progmodes/grep.el (grep-mode-font-lock-keywords): Remove | 11 | * progmodes/grep.el (grep-mode-font-lock-keywords): Remove |
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index 8f91fbb26b1..c1ec3f0ed13 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el | |||
| @@ -769,7 +769,10 @@ narrowed." | |||
| 769 | (defun browse-url-of-dired-file () | 769 | (defun browse-url-of-dired-file () |
| 770 | "In Dired, ask a WWW browser to display the file named on this line." | 770 | "In Dired, ask a WWW browser to display the file named on this line." |
| 771 | (interactive) | 771 | (interactive) |
| 772 | (browse-url-of-file (dired-get-filename))) | 772 | (let ((tem (dired-get-filename t t))) |
| 773 | (if tem | ||
| 774 | (browse-url-of-file (expand-file-name tem)) | ||
| 775 | (error "No file on this line")))) | ||
| 773 | 776 | ||
| 774 | ;;;###autoload | 777 | ;;;###autoload |
| 775 | (defun browse-url-of-region (min max) | 778 | (defun browse-url-of-region (min max) |