diff options
| author | Glenn Morris | 2010-10-31 11:26:54 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-10-31 11:26:54 -0700 |
| commit | c8c599548191c0d9f903e20d010b076dcd74170a (patch) | |
| tree | a8c2aadda8d732c6458e8e012226507a028c8fd8 | |
| parent | 35fcc05c0e4f0ee9312c422e10ab14b4d34bb884 (diff) | |
| download | emacs-c8c599548191c0d9f903e20d010b076dcd74170a.tar.gz emacs-c8c599548191c0d9f903e20d010b076dcd74170a.zip | |
Fix bug#7299; default value of tool-bar-mode in without-x builds.
* src/frame.c (syms_of_frame) <tool-bar-mode>:
Default to nil if !HAVE_WINDOW_SYSTEM.
* lisp/cus-start.el: Handle standard values via a keyword.
Only set version property if specified.
(cursor-in-non-selected-windows, menu-bar-mode)
(tool-bar-mode, show-trailing-whitespace):
Do not specify standard values.
(transient-mark-mode, temporary-file-directory): Use :standard.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/cus-start.el | 26 | ||||
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/frame.c | 4 |
4 files changed, 32 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2b878c57e7f..f5ab5f3f312 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2010-10-31 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * cus-start.el: Handle standard values via a keyword. | ||
| 4 | Only set version property if specified. | ||
| 5 | (cursor-in-non-selected-windows, menu-bar-mode) | ||
| 6 | (tool-bar-mode, show-trailing-whitespace): | ||
| 7 | Do not specify standard values. | ||
| 8 | (transient-mark-mode, temporary-file-directory): Use :standard. | ||
| 9 | |||
| 1 | 2010-10-31 Jan Djärv <jan.h.d@swipnet.se> | 10 | 2010-10-31 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 11 | ||
| 3 | * term/x-win.el (x-get-selection-value): New function that gets | 12 | * term/x-win.el (x-get-selection-value): New function that gets |
diff --git a/lisp/cus-start.el b/lisp/cus-start.el index af5338b0bcd..388a314c5c5 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el | |||
| @@ -97,12 +97,13 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of | |||
| 97 | (line-spacing display (choice (const :tag "none" nil) integer) | 97 | (line-spacing display (choice (const :tag "none" nil) integer) |
| 98 | "22.1") | 98 | "22.1") |
| 99 | (cursor-in-non-selected-windows | 99 | (cursor-in-non-selected-windows |
| 100 | cursor boolean nil t :tag "Cursor In Non-selected Windows" | 100 | cursor boolean nil |
| 101 | :tag "Cursor In Non-selected Windows" | ||
| 101 | :set #'(lambda (symbol value) | 102 | :set #'(lambda (symbol value) |
| 102 | (set-default symbol value) | 103 | (set-default symbol value) |
| 103 | (force-mode-line-update t))) | 104 | (force-mode-line-update t))) |
| 104 | (transient-mark-mode editing-basics boolean nil | 105 | (transient-mark-mode editing-basics boolean nil |
| 105 | (not noninteractive) | 106 | :standard (not noninteractive) |
| 106 | :initialize custom-initialize-delay | 107 | :initialize custom-initialize-delay |
| 107 | :set custom-set-minor-mode) | 108 | :set custom-set-minor-mode) |
| 108 | ;; callint.c | 109 | ;; callint.c |
| @@ -179,6 +180,7 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of | |||
| 179 | (temporary-file-directory | 180 | (temporary-file-directory |
| 180 | ;; Darwin section added 24.1, does not seem worth :version bump. | 181 | ;; Darwin section added 24.1, does not seem worth :version bump. |
| 181 | files directory nil | 182 | files directory nil |
| 183 | :standard | ||
| 182 | (file-name-as-directory | 184 | (file-name-as-directory |
| 183 | ;; FIXME ? Should there be Ftemporary_file_directory to do this | 185 | ;; FIXME ? Should there be Ftemporary_file_directory to do this |
| 184 | ;; more robustly (cf set_local_socket in emacsclient.c). | 186 | ;; more robustly (cf set_local_socket in emacsclient.c). |
| @@ -218,11 +220,11 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of | |||
| 218 | (other :tag "hidden by keypress" 1)) | 220 | (other :tag "hidden by keypress" 1)) |
| 219 | "22.1") | 221 | "22.1") |
| 220 | (make-pointer-invisible mouse boolean "23.2") | 222 | (make-pointer-invisible mouse boolean "23.2") |
| 221 | (menu-bar-mode frames boolean nil t | 223 | (menu-bar-mode frames boolean nil |
| 222 | ;; FIXME? | 224 | ;; FIXME? |
| 223 | ; :initialize custom-initialize-default | 225 | ; :initialize custom-initialize-default |
| 224 | :set custom-set-minor-mode) | 226 | :set custom-set-minor-mode) |
| 225 | (tool-bar-mode (frames mouse) boolean nil t | 227 | (tool-bar-mode (frames mouse) boolean nil |
| 226 | ; :initialize custom-initialize-default | 228 | ; :initialize custom-initialize-default |
| 227 | :set custom-set-minor-mode) | 229 | :set custom-set-minor-mode) |
| 228 | ;; fringe.c | 230 | ;; fringe.c |
| @@ -372,7 +374,7 @@ since it could result in memory overflow and make Emacs crash." | |||
| 372 | (other :tag "Always" t)) | 374 | (other :tag "Always" t)) |
| 373 | "23.1") | 375 | "23.1") |
| 374 | ;; xdisp.c | 376 | ;; xdisp.c |
| 375 | (show-trailing-whitespace whitespace-faces boolean nil nil | 377 | (show-trailing-whitespace whitespace-faces boolean nil |
| 376 | :safe booleanp) | 378 | :safe booleanp) |
| 377 | (scroll-step windows integer) | 379 | (scroll-step windows integer) |
| 378 | (scroll-conservatively windows integer) | 380 | (scroll-conservatively windows integer) |
| @@ -448,13 +450,13 @@ since it could result in memory overflow and make Emacs crash." | |||
| 448 | group (nth 1 this) | 450 | group (nth 1 this) |
| 449 | type (nth 2 this) | 451 | type (nth 2 this) |
| 450 | version (nth 3 this) | 452 | version (nth 3 this) |
| 453 | rest (nthcdr 4 this) | ||
| 451 | ;; If we did not specify any standard value expression above, | 454 | ;; If we did not specify any standard value expression above, |
| 452 | ;; use the current value as the standard value. | 455 | ;; use the current value as the standard value. |
| 453 | standard (if (nthcdr 4 this) | 456 | standard (if (setq prop (memq :standard rest)) |
| 454 | (nth 4 this) | 457 | (cadr prop) |
| 455 | (when (default-boundp symbol) | 458 | (if (default-boundp symbol) |
| 456 | (funcall quoter (default-value symbol)))) | 459 | (funcall quoter (default-value symbol)))) |
| 457 | rest (nthcdr 5 this) | ||
| 458 | ;; Don't complain about missing variables which are | 460 | ;; Don't complain about missing variables which are |
| 459 | ;; irrelevant to this platform. | 461 | ;; irrelevant to this platform. |
| 460 | native-p (save-match-data | 462 | native-p (save-match-data |
| @@ -508,12 +510,12 @@ since it could result in memory overflow and make Emacs crash." | |||
| 508 | (custom-add-to-group group symbol 'custom-variable)) | 510 | (custom-add-to-group group symbol 'custom-variable)) |
| 509 | ;; Set the type. | 511 | ;; Set the type. |
| 510 | (put symbol 'custom-type type) | 512 | (put symbol 'custom-type type) |
| 511 | (put symbol 'custom-version version) | 513 | (if version (put symbol 'custom-version version)) |
| 512 | (while rest | 514 | (while rest |
| 513 | (setq prop (car rest) | 515 | (setq prop (car rest) |
| 514 | propval (cadr rest) | 516 | propval (cadr rest) |
| 515 | rest (nthcdr 2 rest)) | 517 | rest (nthcdr 2 rest)) |
| 516 | (cond ((memq prop '(:risky :safe :set))) ; handled above | 518 | (cond ((memq prop '(:standard :risky :safe :set))) ; handled above |
| 517 | ((eq prop :tag) | 519 | ((eq prop :tag) |
| 518 | (put symbol 'custom-tag propval)))))))) | 520 | (put symbol 'custom-tag propval)))))))) |
| 519 | 521 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index 359869027dc..15da02b3e3d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-10-31 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * frame.c (syms_of_frame) <tool-bar-mode>: | ||
| 4 | Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299) | ||
| 5 | |||
| 1 | 2010-10-31 Chong Yidong <cyd@stupidchicken.com> | 6 | 2010-10-31 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * xterm.c (x_connection_closed): Print informative error message | 8 | * xterm.c (x_connection_closed): Print informative error message |
diff --git a/src/frame.c b/src/frame.c index 1f8ff8d562b..ba675be5b5f 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -4576,7 +4576,11 @@ See the command `tool-bar-mode' for a description of this minor mode. | |||
| 4576 | Setting this variable directly does not take effect; | 4576 | Setting this variable directly does not take effect; |
| 4577 | either customize it (see the info node `Easy Customization') | 4577 | either customize it (see the info node `Easy Customization') |
| 4578 | or call the function `tool-bar-mode'. */); | 4578 | or call the function `tool-bar-mode'. */); |
| 4579 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 4579 | Vtool_bar_mode = Qt; | 4580 | Vtool_bar_mode = Qt; |
| 4581 | #else | ||
| 4582 | Vtool_bar_mode = Qnil; | ||
| 4583 | #endif | ||
| 4580 | 4584 | ||
| 4581 | DEFVAR_KBOARD ("default-minibuffer-frame", Vdefault_minibuffer_frame, | 4585 | DEFVAR_KBOARD ("default-minibuffer-frame", Vdefault_minibuffer_frame, |
| 4582 | doc: /* Minibufferless frames use this frame's minibuffer. | 4586 | doc: /* Minibufferless frames use this frame's minibuffer. |