summaryrefslogtreecommitdiff
path: root/lisp/cus-theme.el
Commit message (Collapse)AuthorAgeFilesLines
...
* Tweak handling of custom-enabled-themes and custom-safe-themes.Chong Yidong2012-01-051-5/+10
| | | | | | | * lisp/cus-theme.el (custom-theme-merge-theme): Ignore custom-enabled-themes and custom-safe-themes. * lisp/custom.el (enable-theme): Don't set custom-safe-themes.
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Make custom-theme-choose-mode inherit from special-mode.Chong Yidong2011-08-281-2/+3
| | | | | | | * lisp/cus-theme.el (custom-theme-choose-mode): Inherit from special-mode. (custom-theme-choose-mode-map): Add special-mode to parent. Fixes: debbugs:9124
* Avoid calling customize-save-variable during startup (Bug#8720).Chong Yidong2011-06-291-2/+2
| | | | | | | | | | | | | * 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.
* Print theme summaries in *Custom Themes* buffer.Chong Yidong2011-06-141-22/+51
| | | | | | | | | | | | | | | * lisp/cus-theme.el (describe-theme-1): Use custom-theme-p. (custom-theme-summary): New function. (customize-themes): Use it. * etc/themes/light-blue-theme.el: * etc/themes/misterioso-theme.el: * etc/themes/tango-dark-theme.el: * etc/themes/tango-theme.el: * etc/themes/tsdh-dark-theme.el: * etc/themes/tsdh-light-theme.el: * etc/themes/wheatgrass-theme.el: * etc/themes/wombat-theme.el: Tweak summaries for better listability.
* lisp/*.el: Lexical-binding cleanup.Juanma Barranquero2011-04-191-10/+14
|
* Several fixes to cus-theme.el.Chong Yidong2011-03-211-2/+8
| | | | | | | * lisp/cus-theme.el: Add missing provide statement. (customize-create-theme): Extract theme value correctly. (custom-theme-visit-theme): Autoload. (customize-create-theme): Prompt before inserting default faces.
* Drop use of unsafep for checking Custom themes; bugfixes.Chong Yidong2011-02-011-7/+8
| | | | | | | | | | * 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
| |
* | * cus-theme.el (customize-themes): Use switch-to-buffer.Chong Yidong2011-01-121-1/+1
| | | | | | | | | | * menu-bar.el (menu-bar-custom-menu): Tweak Mule and Customize menus. Add menu item for customize-themes.
* | Fix a misleading widget message in the last checkin.Chong Yidong2010-10-161-1/+1
| |
* | Allow Custom settings to be migrated into a custom theme.Chong Yidong2010-10-161-62/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-16/+5
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | Bugfixes for `customize-create-theme'.Chong Yidong2010-10-151-221/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cus-theme.el (customize-create-theme): Delete overlays after erasing. If given a THEME arg, display only the faces of that arg instead of custom-theme--listed-faces. (custom-theme-variable-menu, custom-theme-variable-action) (custom-variable-reset-theme, custom-theme-delete-variable): Deleted. (custom-theme-add-variable, custom-theme-add-face): Apply value from the theme settings, instead of the current value. (custom-theme-add-var-1, custom-theme-add-face-1): New functions. (custom-theme-visit-theme): Allow calling outside theme buffers. (custom-theme-merge-theme): Don't enable the theme when merging. (custom-theme-write-variables, custom-theme-write-faces): Use the :shown-value properties to save buffer values, not global ones. (customize-themes): Display a warning about user customizations. * cus-edit.el (custom-variable-value-create) (custom-face-value-create): Obey new special properties :shown-value and :inhibit-magic.
* | Add some default custom themes.Chong Yidong2010-10-121-11/+27
| | | | | | | | | | | | | | | | | | | | | | * 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-35/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | Interface improvements to cus-theme.el.Chong Yidong2010-10-091-105/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cus-edit.el (custom-face-widget-to-spec) (custom-face-get-current-spec, custom-face-state): New functions. (custom-face-set, custom-face-mark-to-save) (custom-face-value-create, custom-face-state-set): Use them. * cus-theme.el (custom-theme--listed-faces): New var. (customize-create-theme): Use *Custom Theme* as the buffer name. Set revert-buffer-function. Optional arg BUFFER. Insert all faces listed in custom-theme--listed-faces. (custom-theme-revert): New function. (custom-theme-add-variable, custom-theme-add-face): Insert at the bottom of the list. (custom-theme-write): Prompt for theme name if empty. (custom-theme-write-variables): Use dolist. (custom-theme-write-faces): Handle hidden (collapsed) widgets.
* | Add "Package:" file headers to denote built-in packages.Chong Yidong2010-08-291-0/+1
|/
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* 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
|
* Fix up comment convention on the arch-tag lines.Stefan Monnier2008-04-101-1/+1
|
* Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
|
* Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
|
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* * cus-theme.el (customize-create-theme)Romain Francoise2006-08-131-3/+3
| | | | | | | | (custom-theme-visit-theme): End `y-or-n-p' prompt with a space. * filesets.el (filesets-add-buffer): Ditto. * pcvs.el (cvs-change-cvsroot): Ditto.
* * cus-theme.el (custom-new-theme-mode-map): Remove mouse-1Chong Yidong2006-02-151-1/+0
| | | | binding.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+2
|
* Minor fix.Chong Yidong2006-01-131-16/+16
|
* (custom-theme-add-variable): Don't add `custom-enabled-themes'.Chong Yidong2006-01-131-0/+2
|
* * cus-theme.el (custom-theme-add-variable, custom-theme-add-face):Chong Yidong2006-01-131-24/+30
| | | | Don't add widget if setting undefined.
* * cus-theme.el: Rewrite the Custom New Theme Mode interface.Chong Yidong2006-01-021-76/+277
| | | | | | | | | | | (custom-new-theme-mode-map, custom-theme-insert-variable-marker) (custom-theme-insert-face-marker, custom-theme-variable-menu) (custom-theme-face-menu): New variables. (custom-theme-add-variable, custom-theme-variable-action) (custom-variable-reset-theme, custom-theme-delete-variable) (custom-face-reset-theme, custom-theme-face-action) (custom-theme-delete-face, custom-theme-merge-theme) (custom-theme-add-face, custom-theme-visit-theme): New functions.
* * cus-edit.el (custom-button-mouse): New variable.Chong Yidong2005-12-311-2/+1
| | | | | | | (custom-button-mouse): New face. (custom-raised-buttons, custom-mode): Use it. * cus-theme.el (custom-new-theme-mode): Use custom-button-mouse.
* Remove obsolete commentChong Yidong2005-12-311-3/+0
|
* * cus-theme.el (custom-new-theme-mode-map): New variable.Chong Yidong2005-12-311-1/+15
|
* *** empty log message ***Chong Yidong2005-12-311-3/+0
|
* * cus-theme.el (custom-new-theme-mode): Use cus-edit faces.Chong Yidong2005-12-311-1/+14
|
* Custom Theme bugfixes.Chong Yidong2005-09-051-2/+3
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-061-1/+1
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* Update copyright years.Luc Teirlinck2005-07-031-1/+1
|
* (custom-new-theme-mode): New function.Luc Teirlinck2005-07-021-6/+30
| | | | | | | | | | (custom-theme-name, custom-theme-variables, custom-theme-faces) (custom-theme-description): Add compiler defvars. (customize-create-theme): Add doc to the "*New Custom Theme*" buffer. Use `custom-new-theme-mode'. (custom-theme-write): Put the created buffer in emacs-lisp-mode and save it to the `custom-theme-directory'. Make this the default directory of the buffer.
* (custom-theme-write-variables): Quote variablesDavid Kastrup2005-04-171-1/+1
| | | | where necessary.
* Add arch taglinesMiles Bader2003-09-011-0/+1
|
* (customize-create-theme): Call `customize-create-theme' inJohn Paul Wallington2003-07-051-1/+1
| | | | Reset widget's notify function. Blush.
* (customize-create-theme): Rename fromJohn Paul Wallington2003-03-241-1/+1
| | | | `custom-theme-create'.