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
Open sidebar
emacs
emacs
Commits
d1a3873f
Commit
d1a3873f
authored
Nov 22, 2007
by
Juanma Barranquero
Browse files
(custom-mode): Define with `define-derived-mode'.
Set `show-trailing-whitespace' to nil.
parent
6af1696d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/cus-edit.el
lisp/cus-edit.el
+3
-6
No files found.
lisp/ChangeLog
View file @
d1a3873f
2007-11-22 Juanma Barranquero <lekktu@gmail.com>
* cus-edit.el (custom-mode): Define with `define-derived-mode'.
Set `show-trailing-whitespace' to nil.
* dired.el (make-symbolic-link):
* dired-aux.el (mailcap-parse-mailcaps, mailcap-parse-mimetypes)
(mailcap-extension-to-mime, mailcap-mime-info, make-symbolic-link):
...
...
lisp/cus-edit.el
View file @
d1a3873f
...
...
@@ -4504,7 +4504,7 @@ If several parents are listed, go to the first of them."
(if (eq (widget-get (widget-get widget :parent) :custom-state) 'modified)
(message "To install your edits, invoke [State] and choose the Set operation")))
(def
un
custom-mode
()
(def
ine-derived-mode
custom-mode
nil "Custom"
"Major mode for editing customization buffers.
The following commands are available:
...
...
@@ -4526,9 +4526,6 @@ Erase customizations; set options
Entry to this mode calls the value of `custom-mode-hook'
if that value is non-nil."
(kill-all-local-variables)
(setq major-mode 'custom-mode
mode-name "Custom")
(use-local-map custom-mode-map)
(easy-menu-add Custom-mode-menu)
(set (make-local-variable 'tool-bar-map) custom-tool-bar-map)
...
...
@@ -4538,6 +4535,7 @@ if that value is non-nil."
(setq widget-documentation-face 'custom-documentation)
(make-local-variable 'widget-button-face)
(setq widget-button-face custom-button)
(setq show-trailing-whitespace nil)
;; We need this because of the "More" button on docstrings.
;; Otherwise clicking on "More" can push point offscreen, which
...
...
@@ -4555,8 +4553,7 @@ if that value is non-nil."
(set (make-local-variable 'widget-push-button-suffix) "")
(set (make-local-variable 'widget-link-prefix) "")
(set (make-local-variable 'widget-link-suffix) ""))
(add-hook 'widget-edit-functions 'custom-state-buffer-message nil t)
(run-mode-hooks 'custom-mode-hook))
(add-hook 'widget-edit-functions 'custom-state-buffer-message nil t))
(put 'custom-mode 'mode-class 'special)
...
...
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