summaryrefslogtreecommitdiff
path: root/lisp/custom.el
Commit message (Collapse)AuthorAgeFilesLines
* Allow overriding of theme confirmation via custom-safe-themes.Chong Yidong2011-10-011-9/+15
| | | | | | | See http://lists.gnu.org/archive/html/emacs-devel/2011-09/msg00121.html * lisp/custom.el (custom-safe-themes, load-theme): Treat value of t for custom-safe-themes as special.
* * lisp/mail/sendmail.el (send-mail-function): No longer delay customAndreas Schwab2011-07-081-2/+4
| | | | | initialization. * lisp/custom.el (custom-initialize-delay): Doc fix.
* Fix typos.Juanma Barranquero2011-07-051-1/+1
|
* Fix how custom themes handle faces, so the multi-tty/multi-frame case works.Chong Yidong2011-07-031-21/+36
| | | | | | | | | | | | | | * lisp/custom.el (custom-push-theme): Don't record faces in `changed' theme; this doesn't work correctly for per-frame face settings. (disable-theme): Use face-set-after-frame-default to reset faces. (custom--frame-color-default): New function. * lisp/frame.el (frame-background-mode, frame-set-background-mode): Moved from faces.el. (frame-default-terminal-background): New function. * src/xfaces.c (Finternal_merge_in_global_face): Modify the foreground and background color parameters if they have been changed.
* Clarify that SETFUNCTION is only used in the Customize user interfaceLars Magne Ingebrigtsen2011-07-031-1/+2
| | | | (bug#6089).
* Avoid calling customize-save-variable during startup (Bug#8720).Chong Yidong2011-06-291-11/+21
| | | | | | | | | | | | | * lisp/cus-edit.el (customize-push-and-save): New function. * lisp/files.el (hack-local-variables-confirm): Use it. * lisp/custom.el (load-theme): New arg NO-CONFIRM. Use customize-push-and-save (Bug#8720). (custom-enabled-themes): Doc fix. * lisp/cus-theme.el (customize-create-theme) (custom-theme-merge-theme): Callers to load-theme changed.
* * lisp/custom.el (defcustom): Obey lexical-binding.Stefan Monnier2011-04-251-5/+13
|
* lisp/*.el: Lexical-binding cleanup.Juanma Barranquero2011-04-191-1/+1
|
* Fix theme and X-resource interactions for the cursor face.Chong Yidong2011-04-041-0/+14
| | | | | | | * lisp/startup.el (command-line): Save the cursor's theme-face directly, instead of using face-override-spec. * lisp/custom.el (load-theme): Minor optimization in assigning faces.
* Merge from trunkStefan Monnier2011-03-311-66/+62
|\
| * Special handling of the `custom-enabled-themes' custom variable.Chong Yidong2011-03-211-62/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/custom.el (custom--inhibit-theme-enable): Make it affect only custom-theme-set-variables and custom-theme-set-faces. (provide-theme): Ignore custom--inhibit-theme-enable. (load-theme): Enable the theme explicitly if NO-ENABLE is non-nil. (custom-enabling-themes): Delete variable. (enable-theme): Accept only loaded themes as arguments. Ignore the special custom-enabled-themes variable. (custom-enabled-themes): Forbid themes from setting this. Eliminate use of custom-enabling-themes. (custom-push-theme): Quote "changed" custom var entry.
| * * lisp/custom.el (custom-push-theme): Quote "changed" custom var entry.Chong Yidong2011-03-211-4/+4
| |
* | Merge from trunkStefan Monnier2011-03-211-9/+9
|\ \ | |/
| * lisp/custom.el: Trivial fixes.Juanma Barranquero2011-03-171-8/+8
| | | | | | | | | | | | | | | | * custom.el (custom-known-themes): Reflow docstring. (custom-theme-load-path): Fix typo in docstring. (load-theme): Fix typo in error message. (custom-available-themes, custom-variable-theme-value): Use `let', not `let*'.
| * * lisp/custom.el (custom-available-themes): Return themes in alphabetical order.Chong Yidong2011-03-071-1/+1
| |
* | * doc/lispref/variables.texi (Scope): Mention the availability of lexbind.Stefan Monnier2011-03-011-18/+21
|/ | | | | | | | | | | | | | | | | | | | | | | | | | (Lexical Binding): New node. * doc/lispref/eval.texi (Eval): Add `eval's new `lexical' arg. * lisp/emacs-lisp/cconv.el (cconv-liftwhen): Increase threshold. (cconv-closure-convert-rec): Convert interactive spec in empty lexenv. (cconv-analyse-use): Improve unused vars warnings. (cconv-analyse-form): Analyze interactive spec in empty lexenv. * lisp/emacs-lisp/bytecomp.el (byte-compile-lambda): Always byte-compile the interactive spec in lexical-binding mode. (byte-compile-refresh-preloaded): Don't reload byte-compiler files. * lisp/custom.el (custom-initialize-default): Use defvar. (custom-declare-variable): Set the special-variable-p flag. * lisp/help-fns.el (help-make-usage): Drop leading underscores. * lisp/dired.el (dired-revert, dired-make-relative): Mark unused args. (dired-unmark-all-files): Remove unused var `query'. (dired-overwrite-confirmed): Declare. (dired-restore-desktop-buffer): Don't use dynamically scoped arg names. * lisp/mpc.el: Mark unused args. (mpc--faster-toggle): Remove unused var `songnb'. * lisp/server.el (server-kill-buffer-running): Move before first use. * lisp/minibuffer.el: Mark unused args. * src/callint.c (quotify_arg): Simplify the logic. (Fcall_interactively): Use lexical binding when evaluating the interactive spec of a lexically bound function.
* Drop use of unsafep for checking Custom themes; bugfixes.Chong Yidong2011-02-011-40/+29
| | | | | | | | | | * lisp/custom.el (load-theme): Define return value. Drop use of unsafep; call custom-theme-load-confirm for non-known-safe themes. (custom-theme-load-confirm): Scroll in the correct window. (custom-enabled-themes): Add custom-safe-themes to :set-after. * lisp/cus-theme.el (custom-theme-checkbox-toggle): Don't activate the checkbox if load-theme fails.
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-2/+1
|
* Nuke arch-tags.Glenn Morris2011-01-151-1/+0
|
* Merge from emacs-23Stefan Monnier2011-01-141-1/+1
|\
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
* | Record "safe themes" as sha1 hashes, as suggested by Stefan Monnier.Chong Yidong2011-01-081-68/+70
| | | | | | | | | | | | | | * lisp/custom.el (custom-safe-themes): Rename from custom-safe-theme-files. Add :risky tag. (load-theme, custom-theme-load-confirm): Save sha1 hashes to custom-safe-themes, not filenames. Suggested by Stefan Monnier.
* | Load themes using `load', querying if theme file not known safe.Chong Yidong2011-01-081-32/+79
| | | | | | | | | | | | | | * custom.el (custom-safe-theme-files): New defcustom. (custom-theme-load-confirm): New function. (load-theme): Load theme using `load', confirming with custom-theme-load-confirm if necessary.
* | Revert 2010-10-18 change; use safe-functions instead.Chong Yidong2010-10-191-2/+7
| | | | | | | | | | | | | | | | | | | | * cus-face.el (custom-theme-set-faces): Revert 2010-10-18 change. Don't mark as safe. * custom.el (custom-theme-set-variables): Likewise. (load-theme): Add custom-theme-set-faces and custom-theme-set-variables to safe-functions while loading. (custom-enabled-themes): Mark as risky.
* | Use unsafep to check for theme safety.Chong Yidong2010-10-181-20/+17
| | | | | | | | | | | | | | * cus-face.el (custom-theme-set-faces): Mark as a safe function. * custom.el (custom-theme-set-variables): Mark as a safe function. (load-theme): Check forms using unsafep.
* | Allow Custom settings to be migrated into a custom theme.Chong Yidong2010-10-161-14/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cus-theme.el (custom-theme--migrate-settings): New var. (customize-create-theme): Allow editing the `user' theme. (custom-theme-add-variable, custom-theme-add-var-1) (custom-theme-add-face, custom-theme-add-face-1): Add a checkbox to the front of each variable or face widget. (custom-theme-write): Save theme settings in the correct order. Optionally, remove saved settings from user customizations. (custom-theme-write-variables, custom-theme-write-faces): Saved only the checked widgets. (customize-themes): Add a link for migrating custom settings. * custom.el (custom-declare-theme, provide-theme): Use custom-theme-name-valid-p. (custom-theme-name-valid-p): Remove checks that are now unnecessary since themes no longer obey load-path. * cus-edit.el (custom-variable-value-create): For the simple style, hide documentation string when hidden.
* | Allow hiding of modified custom widgets.Chong Yidong2010-10-161-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cus-edit.el (custom-variable, custom-face): Combine the :inhibit-magic and :display-style properties into a single :custom-style property. (custom-toggle-hide-variable, custom-toggle-hide-face): New functions. If hiding an edited value, save it to :shown-value. (custom-variable-value-create, custom-face-value-create): Use them. (custom-magic-reset): Allow magic property to be unset. * cus-theme.el (custom-theme-add-var-1) (custom-theme-add-face-1): Use the :custom-style property. * custom.el: (custom-theme-load-path): Doc fix.
* | Move built-in theme directory to etc/.Chong Yidong2010-10-161-23/+47
| | | | | | | | | | | | | | | | | | | | | | | | * custom.el: Custom themes no longer use load-path. (custom-theme-load-path): New option. Change built-in theme directory to etc/. (custom-enabled-themes): Add custom-theme-load-path dependency. (custom-theme--load-path): New function. (load-theme, custom-available-themes): Use it. * cus-theme.el (describe-theme-1): Use custom-theme--load-path. (customize-themes): Link to custom-theme-load-path variable.
* | Define a cursor defface; minor face optimizations.Chong Yidong2010-10-131-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * faces.el (face-spec-reset-face): Reset all attributes in one single call to set-face-attribute. (face-spec-match-p): Make it a defsubst. (frame-set-background-mode): New arg KEEP-FACE-SPECS. (x-create-frame-with-faces, tty-create-frame-with-faces) (tty-set-up-initial-frame-faces): Don't recompute face specs in frame-set-background-mode, since they are recomputed immediately afterwards in face-set-after-frame-default. (face-set-after-frame-default): Minor optimization. (cursor): Provide non-trivial defface spec. * custom.el (custom-theme-recalc-face): Simplify.
* | Add some default custom themes.Chong Yidong2010-10-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | * cus-theme.el (custom-theme--listed-faces): Add cursor face. (describe-theme-1): Extract doc from unloaded themes. * custom.el (custom-theme-name-valid-p): Don't list color-themes. * themes/tango-theme.el: * themes/tango-dark-theme.el: * themes/wheatgrass-theme.el: New files.
* | New interface for choosing Custom themes.Chong Yidong2010-10-111-57/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/cus-edit.el (custom--initialize-widget-variables): New function. (Custom-mode): Use it. * lisp/cus-face.el (custom-theme-set-faces): Remove dead code. Obey custom--inhibit-theme-enable. * lisp/cus-theme.el (describe-theme, customize-themes) (custom-theme-save): New commands. (custom-new-theme-mode-map): Bind C-x C-s. (custom-new-theme-mode): Use custom--initialize-widget-variables. (customize-create-theme): New optional arg THEME. (custom-theme-revert): Use it. (custom-theme-visit-theme): Remove dead code. (custom-theme-merge-theme): Use custom-available-themes. (custom-theme-write): Make interactive. (custom-theme-write): Use custom-theme-name-valid-p. (describe-theme-1, custom-theme-choose-revert) (custom-theme-checkbox-toggle, custom-theme-selections-toggle): New funs. (custom-theme-allow-multiple-selections): New option. (custom-theme-choose-mode): New major mode. * lisp/custom.el (custom-theme-set-variables): Remove dead code. Obey custom--inhibit-theme-enable. (custom--inhibit-theme-enable): New var. (provide-theme): Obey it. (load-theme): Replace load with manual read/eval, in order to check for correctness. Use custom-theme-name-valid-p. (custom-theme-name-valid-p): New function. (custom-available-themes): Use it. * lisp/help-mode.el (help-theme-def, help-theme-edit): New buttons.
* | More cleanups and minor fixes for Customize.Chong Yidong2010-10-111-53/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cus-edit.el (custom-face-edit-fix-value): Use custom-fix-face-spec. * custom.el (custom-push-theme): Cleanup (use cond). (disable-theme): Recompute the saved-face property. (custom-theme-recalc-face): Follow face alias before setting prop. * custom.el (custom-fix-face-spec): New function; code moved from custom-face-edit-fix-value. (custom-push-theme): Use it when checking if a face has been changed outside customize. (custom-available-themes): New function. (load-theme): Use it. * image.el (image-checkbox-checked, image-checkbox-unchecked): New variables, containing checkbox images. * startup.el (fancy-startup-tail): * wid-edit.el (checkbox): Use them.
* | Add "Package:" file headers to denote built-in packages.Chong Yidong2010-08-291-0/+1
| |
* | * custom.el (custom-declare-variable): Give clearer error message (bug#6476).Juanma Barranquero2010-07-231-1/+3
| |
* | * custom.el (defcustom): Add edebug spec.Stefan Monnier2010-04-181-1/+1
|/
* * custom.el (custom-initialize-delay): Doc fix.Glenn Morris2010-02-251-4/+11
|
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* (defgroup): Doc fix.Glenn Morris2009-11-141-1/+4
|
* (custom-declare-group): Purecopy load-file-name.Dan Nicolaescu2009-11-111-1/+2
|
* (custom-declare-group): Purecopy standard-value.Dan Nicolaescu2009-11-041-2/+2
| | | | (custom-declare-group): Purecopy custom-prefix.
* (custom-initialize-default, custom-initialize-set): CSE.Stefan Monnier2009-09-151-6/+6
|
* * mail/sendmail.el (send-mail-function):Stefan Monnier2009-09-131-22/+4
| | | | | | | | | | | | | | | | | * tooltip.el (tooltip-mode): * simple.el (transient-mark-mode): * rfn-eshadow.el (file-name-shadow-mode): * frame.el (blink-cursor-mode): * font-core.el (global-font-lock-mode): * files.el (temporary-file-directory) (small-temporary-file-directory, auto-save-file-name-transforms): * epa-hook.el (auto-encryption-mode): * composite.el (global-auto-composition-mode): Use custom-initialize-delay. * startup.el (command-line): Don't explicitly call custom-reevaluate-setting for all the above vars. * custom.el (custom-initialize-safe-set) (custom-initialize-safe-default): Delete.
* * custom.el (custom-delayed-init-variables): New var.Stefan Monnier2009-09-111-0/+11
| | | | | | | | | (custom-initialize-delay): New function. * startup.el (command-line): "Re"evaluate all vars in custom-delayed-init-variables. Don't reevaluate abbrev-file-name explicitly any more. * abbrev.el (abbrev-file-name): Use custom-initialize-delay to avoid creating a ~/.emacs.d at build-time (bug#4347).
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* Merge from emacs--rel--22Miles Bader2008-02-241-1/+1
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1074
| * (custom-theme-set-variables): Sort symbols that areGlenn Morris2008-02-081-1/+4
| | | | | | | | | | dependencies before symbols that depend on them. (custom-enabled-themes): Set after custom-theme-directory.
* | (custom-theme-set-variables): Sort symbols that areGlenn Morris2008-02-081-0/+3
| | | | | | | | | | dependencies before symbols that depend on them. (custom-enabled-themes): Set after custom-theme-directory.
* | Richard M. Stallman <rms at gnu.org>Glenn Morris2008-01-181-1/+3
| | | | | | | | | | (custom-theme-recalc-face): Use face-spec-set rather than face-spec-recalc.
* | Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987