Commit 560f620d authored by Christer Ekholm's avatar Christer Ekholm

Added compatibility-macro for read-only-mode.

to silence warnings "`toggle-read-only' is an obsolete function" in
emacs-24
parent 091cb4a4
2014-06-22 Christer Ekholm <che@chrekh.se>
* compatibility.el: Added compatibility-macro for read-only-mode.
* commands2.el (kom-apropos): Use lyskom-read-only-mode.
2014-06-21 Christer Ekholm <che@chrekh.se>
* vars.el: Removed unused variable 'output'.
* vars.el: Removed unused variable 'output'.
* commands2.el (kom-apropos): Use save-selected-window instead of
save-window-excursion, to make the buffer *LysKOM-Apropos*
......
......@@ -3612,7 +3612,7 @@ get full documentation.
")
(lyskom-traverse el result
(lyskom-apropos-insert el))
(toggle-read-only 1))
(lyskom-read-only-mode 1))
(message "Searching for %s...formatting...done" re)
(goto-char (point-min))
(display-buffer buffer)))
......
......@@ -734,6 +734,11 @@ Emacsen."
;; on the good ol' interactive-p.
`(interactive-p))))
(lyskom-macro-alias read-only-mode (&optional arg)
"Compatibility for older emacs that don't have read-only-mode.
Calls toggle-read-only."
`(toggle-read-only ,arg))
;;; ================================================================
;;; ================================================================
;;; ================================================================
......
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