Commit b9b70260 authored by Christer Ekholm's avatar Christer Ekholm

Use with-current-buffer instead of save-excursion+set-buffer

To silence warning in emacs-24.
parent 6fce19f0
2014-06-19 Christer Ekholm <che@chrekh.se>
* lyskom-rest.el (lyskom-doc-view-text): Use with-current-buffer
instead of save-excursion+set-buffer to silence warnings in
emacs-24. This change is not compatible with emacs older than
version 20.1
* utilities.el: Removed unused function lyskom-buffer-display-message.
2014-06-17 Christer Ekholm <che@chrekh.se>
......
......@@ -2601,8 +2601,7 @@ in lyskom-messages."
(defun lyskom-doc-view-text (text-no)
(let ((buf (lyskom-traverse buf (lyskom-buffers-of-category 'doc-view)
(save-excursion
(set-buffer buf)
(with-current-buffer buf
(when (and (boundp 'lyskom-doc-view-text-no)
(eq lyskom-doc-view-text-no text-no))
(lyskom-traverse-break buf))))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment