summaryrefslogtreecommitdiff
path: root/lisp/custom.el
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| |
* | (custom-theme-recalc-face): Simply call `face-spec-recalc'.Richard M. Stallman2007-12-301-3/+1
| |
* | (custom-note-var-changed): Remove the `interactive'Juri Linkov2007-11-101-3/+3
| | | | | | | | spec from this new non-interactive function.
* | (custom-note-var-changed): New function.Richard M. Stallman2007-10-261-0/+9
| |
* | (custom-declare-variable): Add :risky and :safe keywords.Glenn Morris2007-10-251-0/+6
| | | | | | | | (defcustom): Doc fix.
* | Merge from emacs--rel--22Miles Bader2007-08-131-5/+5
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-851
| * Replace `iff' in doc-strings and comments.Glenn Morris2007-08-081-5/+5
| |
* | Merge from emacs--rel--22Miles Bader2007-07-261-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--rel--22 (patch 70-73) - Update from CVS 2007-07-25 Glenn Morris <rgm@gnu.org> * Relicense all FSF files to GPLv3 or later. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
| * Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
| |
| * Johan Bockg� <bojohan at dd.chalmers.se>:Glenn Morris2007-04-251-3/+3
| | | | | | | | (defface): Doc fix.
* | (custom-theme-directory): Use user-emacs-directory.Chong Yidong2007-06-131-4/+1
| |
* | Johan Bockg� <bojohan at dd.chalmers.se>:Glenn Morris2007-04-251-3/+3
|/ | | | (defface): Doc fix.
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (custom-add-frequent-value): Alias for custom-add-option.Chong Yidong2006-12-241-0/+1
|
* (defcustom): Doc fix.Glenn Morris2006-09-301-2/+2
|
* (custom-theme-set-variables): Autoload packages before sorting the variables.Stefan Monnier2006-08-311-4/+12
|
* (custom-autoload): Add `noset' argument.Stefan Monnier2006-07-171-14/+17
| | | | | (custom-push-theme): Don't autoload the variable, let callers do it. (custom-theme-set-variables): Autoload the variable if necessary.
* * custom.el (custom-push-theme): Load the variable before checkingChong Yidong2006-05-131-5/+9
| | | | its `standard-value'.