Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
a566ce8e
Commit
a566ce8e
authored
Jun 08, 2005
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(define-minor-mode): If BODY is empty, give the variable a doc string
that doesn't say don't set it directly.
parent
96a017e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
lisp/emacs-lisp/easy-mmode.el
lisp/emacs-lisp/easy-mmode.el
+10
-5
No files found.
lisp/emacs-lisp/easy-mmode.el
View file @
a566ce8e
...
...
@@ -183,13 +183,18 @@ Use the command `%s' to change this variable." pretty-name mode))
(
let
((
curfile
(
or
(
and
(
boundp
'byte-compile-current-file
)
byte-compile-current-file
)
load-file-name
))
)
`
(
defcustom
,
mode
,
init-value
,
(
format
"Non-nil if %s is enabled.
load-file-name
))
base-doc-string
)
(
setq
base-doc-string
"Non-nil if %s is enabled.
See the command `%s' for a description of this minor-mode.
Setting this variable directly does not take effect;
use either \\[customize] or the function `%s'."
pretty-name
mode
mode
)
use either \\[customize] or the function `%s'."
)
(
if
(
null
body
)
(
setq
base-doc-string
"Non-nil if %s is enabled.
See the command `%s' for a description of this minor-mode."
))
`
(
defcustom
,
mode
,
init-value
,
(
format
base-doc-string
pretty-name
mode
mode
)
:set
'custom-set-minor-mode
:initialize
'custom-initialize-default
,@
group
...
...
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