Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Peter Liljenberg
lyskom-elisp-client
Commits
560f620d
Commit
560f620d
authored
Jun 22, 2014
by
Christer Ekholm
Browse files
Added compatibility-macro for read-only-mode.
to silence warnings "`toggle-read-only' is an obsolete function" in emacs-24
parent
091cb4a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/ChangeLog
View file @
560f620d
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*
...
...
src/commands2.el
View file @
560f620d
...
...
@@ -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)))
...
...
src/compatibility.el
View file @
560f620d
...
...
@@ -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
))
;;; ================================================================
;;; ================================================================
;;; ================================================================
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment