diff options
| author | Tassilo Horn | 2014-07-28 11:32:25 +0200 |
|---|---|---|
| committer | Tassilo Horn | 2014-07-28 11:32:25 +0200 |
| commit | 1c6c2e3c70ff2f666a1e3f29b8852d375c8392cd (patch) | |
| tree | dee6784bf6a61145ff9821de4b573f57ae42a355 | |
| parent | 6ea6889ab9fe4fa5069a0b28c1a612059fa3b74f (diff) | |
| download | emacs-1c6c2e3c70ff2f666a1e3f29b8852d375c8392cd.tar.gz emacs-1c6c2e3c70ff2f666a1e3f29b8852d375c8392cd.zip | |
Merge commit 2014-07-28T09:07:56Z!tsdh@gnu.org from trunk.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/doc-view.el | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fe7dec98983..f68ee42680d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-07-28 Stephen Berman <stephen.berman@gmx.net> | ||
| 2 | |||
| 3 | * doc-view.el (doc-view-open-text): Don't require that the | ||
| 4 | document is saved in a file (e.g., email attachment). | ||
| 5 | |||
| 1 | 2014-07-27 Eli Zaretskii <eliz@gnu.org> | 6 | 2014-07-27 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * window.el (window--pixel-to-total): Use FRAME's root window, not | 8 | * window.el (window--pixel-to-total): Use FRAME's root window, not |
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 09d5925b3e2..7d5f1e771d5 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el | |||
| @@ -1402,11 +1402,12 @@ For now these keys are useful: | |||
| 1402 | (interactive) | 1402 | (interactive) |
| 1403 | (if doc-view--current-converter-processes | 1403 | (if doc-view--current-converter-processes |
| 1404 | (message "DocView: please wait till conversion finished.") | 1404 | (message "DocView: please wait till conversion finished.") |
| 1405 | (let ((txt (expand-file-name "doc.txt" (doc-view--current-cache-dir)))) | 1405 | (let ((txt (expand-file-name "doc.txt" (doc-view--current-cache-dir))) |
| 1406 | (bname (or buffer-file-name (buffer-name)))) | ||
| 1406 | (if (file-readable-p txt) | 1407 | (if (file-readable-p txt) |
| 1407 | (let ((name (concat "Text contents of " | 1408 | (let ((name (concat "Text contents of " |
| 1408 | (file-name-nondirectory buffer-file-name))) | 1409 | (file-name-nondirectory bname))) |
| 1409 | (dir (file-name-directory buffer-file-name))) | 1410 | (dir (or (file-name-directory bname) default-directory))) |
| 1410 | (with-current-buffer (find-file txt) | 1411 | (with-current-buffer (find-file txt) |
| 1411 | (rename-buffer name) | 1412 | (rename-buffer name) |
| 1412 | (setq default-directory dir))) | 1413 | (setq default-directory dir))) |