summaryrefslogtreecommitdiff
path: root/lisp/custom.el
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2015Paul Eggert2015-01-011-1/+1
| | | | Run admin/update-copyright.
* Recommend not modifying :set's value arg in defcustom (bug#16755).Juanma Barranquero2014-03-191-3/+4
| | | | | | * doc/lispref/customize.texi (Variable Definitions): * lisp/custom.el (defcustom): Recommend avoiding destructive modification of the value argument of :set.
* Replace "Maintainer: FSF" with the emacs-devel mailing addressGlenn Morris2014-02-091-1/+1
|
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+2
|
* Don't make faces when loading Custom themes.Chong Yidong2013-12-211-4/+7
| | | | | | | | | | | * custom.el (custom-theme-recalc-face): Do nothing if the face is undefined. Thus, theme settings for undefined faces do not take effect until the faces are defined with defface, the same as with theme variables. * faces.el (face-spec-set): Use face-spec-recalc in all cases. (face-spec-reset-face): Don't assign extra properties in temacs. (face-spec-recalc): Apply X resources too.
* Doc fixes for face functions.Chong Yidong2013-12-211-2/+2
| | | | | | | | * faces.el (face-spec-set): * cus-face.el (custom-theme-set-faces, custom-set-faces): * custom.el (defface): Doc fixes. Fixes: debbugs:16203
* * customize.texi (Custom Themes): Document custom-known-themes.Chong Yidong2013-12-181-1/+8
| | | | | | * custom.el (custom-available-themes): Doc fix. Fixes: debbugs:15717
* Fix loading of themes when NO-ENABLE is t.Chong Yidong2013-12-181-14/+15
| | | | | | | | * lisp/custom.el (custom-push-theme): If custom--inhibit-theme-enable is non-nil, do not create a new entry in the symbol's theme-value or theme-face property; update theme-settings only. Fixes: debbugs:14664
* * lisp/subr.el (custom-declare-variable-early): Remove function.Stefan Monnier2013-10-291-5/+0
| | | | | | | | | | | | | (custom-declare-variable-list): Remove var. (error, user-error): Remove `while' loop. (read-quoted-char-radix, read-quoted-char): Move to simple.el. (user-emacs-directory-warning, locate-user-emacs-file): Move to files.el. * lisp/simple.el (read-quoted-char-radix, read-quoted-char): * lisp/files.el (user-emacs-directory-warning, locate-user-emacs-file): Move from subr.el. * lisp/custom.el (custom-declare-variable-list): Don't process custom-declare-variable-list.
* Silence some --without-x compilation warningsGlenn Morris2013-09-171-2/+5
| | | | | | | | | | | | * custom.el (x-get-resource): Declare. * frame.el (x-display-grayscale-p): Declare. * simple.el (font-info): Declare. * window.el (x-display-pixel-height, tool-bar-lines-needed): Declare. (fit-frame-to-buffer): Explicit error if --without-x. (mouse-autoselect-window-select): Silence compiler.
* Make defvar affect the default binding outside of any let.Stefan Monnier2013-08-021-41/+44
| | | | | | | | | | | | | | | | * src/eval.c (default_toplevel_binding): New function. (Fdefvar): Use it. (unbind_to, backtrace_eval_unrewind): Do a bit of CSE simplification. (Fdefault_toplevel_value, Fset_default_toplevel_value): New subrs. (syms_of_eval): Export them. * src/data.c (Fdefault_value): Micro cleanup. * src/term.c (init_tty): Use "false". * lisp/custom.el (custom-initialize-default, custom-initialize-set) (custom-initialize-reset, custom-initialize-changed): Affect the toplevel-default-value (bug#6275, bug#14586). * lisp/emacs-lisp/advice.el (ad-compile-function): Undo previous workaround for bug#6275. * test/automated/core-elisp-tests.el: New file.
* lisp/(cus-edit,custom).el: Fix typos; use setq-local, string-match-p, ↵Juanma Barranquero2013-06-201-6/+6
| | | | | | | | | | | | | | | | | | looking-at-p. * lisp/cus-edit.el: (custom-commands): Fix typos. (custom-display): Fix tooltip text. (custom-magic-alist, custom-filter-face-spec, custom-group-members): Fix typos in docstrings. (custom--initialize-widget-variables, Custom-mode): Use `setq-local'. (custom-unlispify-menu-entry, custom-magic-value-create) (custom-add-see-also, custom-group-value-create): Use ?\s. (custom-guess-type, customize-apropos, editable-field) (custom-face-value-create): Use `string-match-p'. (custom-save-variables, custom-save-faces): Use `looking-at-p'. * lisp/custom.el (custom-load-symbol): Use `string-match-p'.
* Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.caPaul Eggert2013-01-021-1/+2
|\
| * Update copyright notices for 2013.Paul Eggert2013-01-011-1/+2
| |
* | Fix dependency sorting in custom-theme-set-variables.Chong Yidong2012-11-241-24/+55
|/ | | | | | | | * lisp/custom.el (custom-theme-set-variables): Use a topological sort for ordering by custom dependencies. (custom--sort-vars, custom--sort-vars-1): New functions. Fixes: debbugs:12952
* * lisp/emacs-lisp/pcase.el (pcase--mark-used): New.Stefan Monnier2012-09-281-1/+2
| | | | | | | | (pcase--u1): Use it. * lisp/custom.el (load-theme): Set buffer-file-name so the load is recorded in load-history with the right file name. Fixes: debbugs:12512
* Doc fixes for defface and friends.Chong Yidong2012-09-181-58/+52
| | | | | | | | | | | | | | | | | | | | * lisp/cus-edit.el (custom-unlispify-remove-prefixes): Add warning. * lisp/custom.el (defface): Doc fix. * doc/lispref/customize.texi (Customization): Define customization more carefully. (Common Keywords): Add xref to Constant Variables. * doc/lispref/display.texi (Faces): Discuss anonymous faces. (Face Attributes): Tweak intro. (Defining Faces): Move after the Face Attributes node. Copyedits. (Displaying Faces): Describe role of inheritance. * doc/lispref/variables.texi (Defining Variables): Link to defcustom's node instead of the higher-level Customization chapter. Fixes: debbugs:11440
* Update docstrings and comments to use "init file" terminology.Chong Yidong2012-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes. * comint.el (comint-prompt-read-only): * custom.el (defcustom): * hi-lock.el (hi-lock-mode): * ibuffer.el (ibuffer-formats): * ielm.el (ielm-prompt-read-only): * novice.el (disable-command): * saveplace.el (toggle-save-place): * speedbar.el (speedbar-supported-extension-expressions): * startup.el (auto-save-list-file-prefix, init-file-user) (after-init-hook, inhibit-startup-echo-area-message): * strokes.el (strokes-help): * time-stamp.el (time-stamp): * calendar/calendar.el (calendar, diary-file): * calendar/diary-lib.el (diary-mail-entries, diary) (diary-list-entries-hook): * calendar/holidays.el (holidays, calendar-holidays): * calendar/lunar.el (lunar-phases): * calendar/solar.el (sunrise-sunset): * emulation/edt.el (edt-load-keys): * emulation/viper.el (viper-mode): * eshell/em-alias.el (eshell-command-aliases-list): * eshell/esh-util.el (eshell-convert-numeric-arguments): * international/ogonek.el (ogonek-information): * net/tramp-cmds.el (tramp-bug): * net/quickurl.el (quickurl-reread-hook-postfix): * play/decipher.el (decipher-font-lock-keywords): * progmodes/cc-styles.el (c-set-style): * progmodes/idlw-shell.el (idlwave-shell-prompt-pattern): * progmodes/inf-lisp.el (inferior-lisp-prompt): * progmodes/octave-mod.el (octave-mode): * progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password): * progmodes/verilog-mode.el (verilog-read-defines): * textmodes/two-column.el (2C-mode): Likewise.
* lisp/custom.el (custom-theme-load-confirm): Remove unneeded assignment.Juanma Barranquero2012-09-101-1/+1
|
* Allow scrolling in y-or-n-p.Chong Yidong2012-09-091-32/+13
| | | | | | | | | | | | | | | | | | | | | | | * lisp/replace.el (query-replace-map): Bind four new symbols for requesting window scrolling. * lisp/subr.el (y-or-n-p): Handle the window-scrolling bindings in query-replace-map. * lisp/custom.el (custom-theme-load-confirm): Use y-or-n-p. * lisp/window.el (scroll-other-window-down): Make the arg optional. * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Don't bind scrolling keys since they are now in query-replace-map. * doc/lispref/minibuf.texi (Yes-or-No Queries): Document recentering and scrolling in y-or-n-p. Remove gratuitous example. * doc/lispref/searching.texi (Search and Replace): Document window scrolling entries in query-replace-map. Fixes: debbugs:8948
* Replace version 24.2 with 24.3 where appropriate (hopefully)Glenn Morris2012-08-151-1/+1
|
* * lisp/custom.el (custom-initialize-delay): Doc fix.Glenn Morris2012-06-271-1/+3
|
* * lisp/emacs-lisp/lisp-mode.el (doc-string-elt): Move those properties toStefan Monnier2012-05-171-0/+1
| | | | | | | | | | | | | | their respective macro declarations. * lisp/skeleton.el (define-skeleton): * lisp/progmodes/compile.el (define-compilation-mode): * lisp/ibuf-macs.el (define-ibuffer-sorter, define-ibuffer-op) (define-ibuffer-filter): * lisp/emacs-lisp/generic.el (define-generic-mode): * lisp/emacs-lisp/easy-mmode.el (define-minor-mode) (define-globalized-minor-mode): * lisp/emacs-lisp/cl-macs.el (defun*, defmacro*, defstruct, deftype): * lisp/emacs-lisp/byte-run.el (defsubst): * lisp/custom.el (deftheme): Add doc-string metadata.
* * lisp/emacs-lisp/bytecomp.elStefan Monnier2012-05-021-1/+1
| | | | | | | | | (byte-compile-file-form-custom-declare-variable): Compile all elements, since cconv.el might have introduced :fun-body, internal-make-closure, and friends for bytecomp to handle. * lisp/custom.el (defcustom): Avoid ((λ ..) ..). Fixes: debbugs:11391
* Merge from emacs-24, up to 2012-04-10T02:06:19Z!larsi@gnus.orgGlenn Morris2012-04-131-8/+13
|\
| * New Lisp manual nodes, Applying Customizations and Custom Themes.Chong Yidong2012-04-121-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/customize.texi (Applying Customizations): (Custom Themes): New nodes. * doc/lispref/display.texi (Defining Faces): Reference custom-set-faces. * doc/lispref/modes.texi (Defining Minor Modes, Defining Minor Modes): * doc/lispref/os.texi (Startup Summary): Copyedits. * doc/emacs/custom.texi (Creating Custom Themes): Add reference to Custom Themes node in Lisp manual. * lisp/custom.el (custom-theme-set-variables): Doc fix.
* | Remove defining user variables via * in docstring.Chong Yidong2012-04-091-4/+6
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/apropos.el (apropos-variable): * lisp/files-x.el (read-file-local-variable): * lisp/simple.el (set-variable): * lisp/woman.el (woman-mini-help): * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Callers changed. * lisp/custom.el (custom-variable-p): Return nil for non-symbol arguments instead of signaling an error. (user-variable-p): Obsolete alias for custom-variable-p. * lisp/erc/erc.el (erc-cmd-SET): Call custom-variable-p instead of user-variable-p. * src/callint.c (Finteractive, Fcall_interactively): * src/minibuf.c (Fread_variable): Callers changed. * src/eval.c (Fuser_variable_p, user_variable_p_eh) (lisp_indirect_variable): Functions deleted. (Fdefvar): Caller changed. * doc/lispref/commands.texi (Interactive Codes): * doc/lispref/help.texi (Accessing Documentation): * doc/lispref/minibuf.texi (High-Level Completion): Callers changed. * doc/lispref/customize.texi (Variable Definitions): Remove user-variable-p.
* Fix interaction of load-theme with cust-theme.el.Chong Yidong2012-03-251-2/+7
| | | | | | | * lisp/custom.el (load-theme): Even if NO-ENABLE arg is t, reenable the theme if it was previously enabled before (Bug#11031). * lisp/cus-theme.el (customize-create-theme, custom-theme-revert): Doc fixes.
* * lisp/custom.el (load-theme): Doc fix.Chong Yidong2012-02-221-3/+4
|
* Doc updates for defvar, defconst, and defcustom.Chong Yidong2012-02-151-1/+5
| | | | | | | * lisp/custom.el (defcustom): Doc fix; note use of defvar. * src/eval.c (Fdefvar, Fdefconst): Doc fix; note that the variable is marked as special. Also, starting docstrings with * is obsolete.
* * lisp/custom.el (defcustom): Another doc fix.Chong Yidong2012-02-061-14/+15
|
* * lisp/custom.el (defcustom): Doc fix.Chong Yidong2012-02-061-2/+6
| | | | Fixes: debbugs:9711
* Updates to Macros and Customization chapters of Lisp manual.Chong Yidong2012-02-051-3/+3
| | | | | | | | | | | | | | | | | * doc/lispref/customize.texi (Common Keywords): Minor clarifications. Document custom-unlispify-remove-prefixes. (Variable Definitions): Backquotes in defcustom seem to work fine now. Various other copyedits. * doc/lispref/macros.texi (Expansion): Minor clarification. (Backquote): Move node to eval.texi. (Defining Macros): Move an example from Backquote node. (Argument Evaluation): No need to mention Pascal. (Indenting Macros): Add xref to Defining Macros. * doc/lispref/eval.texi (Backquote): Move from macros.texi. * lisp/custom.el (defcustom): Doc fix.
* * lisp/custom.el (defcustom): Add doc link to Lisp manual (Bug#10635).Samuel Bronson2012-01-291-0/+1
|
* Tweak custom-variable-p and user-variable-p docs.Chong Yidong2012-01-251-2/+4
| | | | | | * lisp/custom.el (custom-variable-p): Doc fix. * src/eval.c (Fuser_variable_p): Doc fix; mention custom-variable-p.
* * lisp/custom.el (custom-safe-themes): Use SHA-256 for hashing.Chong Yidong2012-01-091-2/+2
| | | | | * doc/emacs/custom.texi (Custom Themes): Switched custom-safe-themes to use SHA-256.
* Tweak handling of custom-enabled-themes and custom-safe-themes.Chong Yidong2012-01-051-3/+5
| | | | | | | * 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
|
* 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
| |