Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
497afe07
Commit
497afe07
authored
Apr 01, 2008
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(abbrev-mode): Use define-minor-mode.
parent
ad0d18af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/abbrev.el
lisp/abbrev.el
+2
-7
No files found.
lisp/ChangeLog
View file @
497afe07
2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
* abbrev.el (abbrev-mode): Use define-minor-mode.
* mouse.el (mouse-major-mode-menu-prefix): Remove. Remove uses.
(mouse-menu-non-singleton): Rename from mouse-major-mode-menu-1.
Use map-keymap.
...
...
lisp/abbrev.el
View file @
497afe07
...
...
@@ -49,16 +49,11 @@ define global abbrevs instead."
:group
'abbrev-mode
:group
'convenience
)
(
def
un
abbrev-mode
(
&optional
arg
)
(
def
ine-minor-mode
abbrev-mode
"Toggle Abbrev mode in the current buffer.
With optional argument ARG, turn abbrev mode on if ARG is
positive, otherwise turn it off. In Abbrev mode, inserting an
abbreviation causes it to expand and be replaced by its expansion."
(
interactive
"P"
)
(
setq
abbrev-mode
(
if
(
null
arg
)
(
not
abbrev-mode
)
(
>
(
prefix-numeric-value
arg
)
0
)))
(
force-mode-line-update
))
abbreviation causes it to expand and be replaced by its expansion."
)
(
defcustom
abbrev-mode
nil
"Enable or disable Abbrev mode.
...
...
Write
Preview
Markdown
is supported
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