summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* Define auto-save-mode with define-minor-mode.Stefan Monnier2010-05-051-9/+25
| | | | | | * emacs-lisp/easy-mmode.el (define-minor-mode): Make :variable more flexible. * files.el (auto-save-mode): Use it to define using define-minor-mode.
* Use define-minor-mode in more cases.Stefan Monnier2010-05-042-2/+12
| | | | | | | | | | * term/tvi970.el (tvi970-set-keypad-mode): * simple.el (auto-fill-mode, overwrite-mode, binary-overwrite-mode) (normal-erase-is-backspace-mode): * scroll-bar.el (scroll-bar-mode): Use it and define-minor-mode. (set-scroll-bar-mode-1): (Re)move to its sole caller. (get-scroll-bar-mode): New function. * emacs-lisp/cl-macs.el (eq): Handle a non-variable first arg.
* Use define-minor-mode for less obvious cases.Stefan Monnier2010-05-042-18/+35
| | | | | | | | * emacs-lisp/easy-mmode.el (define-minor-mode): Add :variable keyword. * emacs-lisp/cl-macs.el (terminal-parameter, eq): Add setf method. * international/iso-ascii.el (iso-ascii-mode): * frame.el (auto-raise-mode, auto-lower-mode): * composite.el (global-auto-composition-mode): Use define-minor-mode.
* * emacs-lisp/lisp-mode.el (lisp-mode): Use define-derived-mode.Stefan Monnier2010-04-301-10/+3
| | | | Set find-tag-default-function as a variable rather than a property.
* Make it possible to locally disable a globally enabled mode.Stefan Monnier2010-04-282-1/+3
| | | | | | | | | * simple.el (fundamental-mode): Run fundamental-mode-hook. * emacs-lisp/derived.el (define-derived-mode): Use fundamental-mode rather than kill-all-local-variables so it runs fundamental-mode-hook. * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Use fundamental-mode-hook to run MODE-enable-in-buffers earlier, so that subsequent hooks get a chance to disable it.
* Let the user turn off locally a globalized minor modeStefan Monnier2010-04-271-7/+8
| | | | | | | | * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Avoid re-enabling a minor mode after the user turned the minor mode off if MODE-enable-in-buffers is run twice (typically once from fundamental-mode's after-change-major-mode-hook and a second time from run-mode-hook's own after-change-major-mode-hook).
* * emacs-lisp/lisp.el (lisp-complete-symbol): Fail gracefully.Stefan Monnier2010-04-271-3/+6
|
* Minor authors.el updates.Glenn Morris2010-04-231-5/+73
| | | | | | | | | | | | | | * emacs-lisp/authors.el (authors-obsolete-files-regexps): Ignore VCS-ignore files, and deleted nextstep preferences files. (authors-ignored-files): Ignore deleted cedet test files, and "*.el". (authors-ambiguous-files): New list. (authors-valid-file-names): Add some deleted files. (authors-renamed-files-alist): Add font-setting.el, edt-user.doc. (authors-disambiguate-file-name): New function. (Bug#5501) (authors-canonical-file-name): Doc fix. Don't warn about obsolete files. (authors-canonical-file-name, authors-scan-el): Use authors-disambiguate-file-name.
* Provide byte-compiler warnings when set-default a read-only var.Stefan Monnier2010-04-231-15/+25
| | | | | | | * emacs-lisp/bytecomp.el (byte-compile-set-default): New function. (byte-compile-setq-default): Optimize for the single-var case and don't call byte-compile-form in this case to avoid inf-loop with byte-compile-set-default.
* (lisp-completion-at-point): Try and handle errors.Stefan Monnier2010-04-211-10/+14
|
* Make the log-edit comments use RFC822 format throughout.Stefan Monnier2010-04-201-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * vc.el (vc-checkin, vc-modify-change-comment): Adjust to new vc-start/finish-logentry. (vc-find-conflicted-file): New command. (vc-transfer-file): Adjust to new vc-checkin. (vc-next-action): Improve scoping. * vc-hg.el (vc-hg-log-edit-mode): Remove. (vc-hg-checkin): Remove extra arg. Use log-edit-extract-headers. * vc-git.el (vc-git-log-edit-mode): Remove. (vc-git-checkin): Remove extra arg. Use log-edit-extract-headers. (vc-git-commits-coding-system): Rename from git-commits-coding-system. * vc-dispatcher.el (vc-log-edit): Shorten names for log-edit-show-files. (vc-start-logentry): Remove argument `extra'. (vc-finish-logentry): Remove extra args. * vc-bzr.el (vc-bzr-log-edit-mode): Remove. (vc-bzr-checkin): Remove extra arg. Use log-edit-extract-headers. (vc-bzr-conflicted-files): New function. * log-edit.el (log-edit-extra-flags) (log-edit-before-checkin-process): Remove. (log-edit-summary, log-edit-header, log-edit-unknown-header): New faces. (log-edit-headers-alist): New var. (log-edit-header-contents-regexp): New const. (log-edit-match-to-eoh): New function. (log-edit-font-lock-keywords): Use them. (log-edit): Insert a "Summary:" header as default. (log-edit-mode): Mark font-lock rules as case-insensitive. (log-edit-done): Cleanup headers. (log-view-process-buffer): Remove. (log-edit-extract-headers): New function to replace it.
* (lisp-completion-at-point): Complete around point.Stefan Monnier2010-04-201-8/+16
| | | | | I.e. include text after point in the completion region. Also, return nil when we're not after/in a symbol.
* Fix duplicate entries in cedet's loaddefs.el files.Stefan Monnier2010-04-181-55/+85
| | | | | | | | | | * emacs-lisp/autoload.el (autoload-file-load-name): Be more clever. Should make most file-local generated-autoload-file unnecessary. (print-readably): Silence warnings. (autoload-find-destination): Take load-name as an arg to make sure it's the same as the one that will be in the file. (autoload-generate-file-autoloads): Adjust to above changes. Try to make the dataflow a bit simpler.
* (define-minor-mode): A nil argument to the minor mode turns the mode ON.Stefan Monnier2010-04-121-9/+4
|
* Get rid of several uses of the term 'master' in favor of equivalent verbiageEric S. Raymond2010-04-091-1/+1
| | | | using "repository". No code changes.
* Fix some of the problems in defsubst* (bug#5728).Stefan Monnier2010-04-081-9/+30
| | | | | * emacs-lisp/cl-macs.el (defsubst*): Don't substitute non-trivial args. (cl-defsubst-expand): Do the substitutions simultaneously (bug#5728).
* Revert last change in batch-update-authors.Eli Zaretskii2010-04-031-2/+2
|
* Fix bug in batch-update-authors. Add bidi to AUTHORS.Eli Zaretskii2010-04-031-2/+3
| | | | | emacs-lisp/authors.el (authors-fixed-entries): Add entry for Eli Zaretskii. (batch-update-authors): Fix popping arguments from command line.
* Merge from `emacs-23'.Stefan Monnier2010-03-243-6/+15
|\
| * Fix typos in docstrings.Juanma Barranquero2010-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * image-dired.el (image-dired-display-thumbs): Fix typo in docstring. (image-dired-read-comment): Doc fix. * json.el (json-object-type, json-array-type, json-key-type, json-false) (json-null, json-read-number): * minibuffer.el (completion-in-region-functions): * calendar/cal-tex.el (cal-tex-daily-end, cal-tex-number-weeks) (cal-tex-cursor-week): * emacs-lisp/trace.el (trace-function): * eshell/em-basic.el (eshell/printnl): * eshell/em-dirs.el (eshell-last-dir-ring, eshell-parse-drive-letter) (eshell-read-last-dir-ring, eshell-write-last-dir-ring): * obsolete/levents.el (allocate-event, event-key, event-object) (event-point, event-process, event-timestamp, event-to-character) (event-window, event-x, event-x-pixel, event-y, event-y-pixel): * textmodes/reftex-vars.el (reftex-index-macros-builtin) (reftex-section-levels, reftex-auto-recenter-toc, reftex-toc-mode-hook) (reftex-cite-punctuation, reftex-search-unrecursed-path-first) (reftex-highlight-selection): Fix typos in docstrings.
| * Close bug#4427.Glenn Morris2010-03-112-5/+14
| | | | | | | | | | * emacs-lisp/cl-macs.el (defsubst*): Add autoload cookie. (Bug#4427) * emacs-lisp/cl-loaddefs.el: Regenerate.
* | * emacs-lisp/autoload.el (autoload-rubric): Doc fix.Glenn Morris2010-03-171-3/+7
| |
* | Fix keywords.Juri Linkov2010-03-141-1/+3
|/ | | | | | | | | | | | | | | | | * finder.el (finder-compile-keywords): Replace `princ' with `prin1' on a list of symbols interned from keyword strings. * emacs-lisp/lisp-mnt.el (lm-keywords-list): If `keywords' contains a comma, then split keywords using a comma and optional whitespace. Otherwise, split by whitespace. * complete.el: * face-remap.el: * log-view.el: * net/hmac-def.el: * net/hmac-md5.el: * net/netrc.el: * progmodes/mixal-mode.el: Fix keywords.
* Fix more save-excursion warnings.Chong Yidong2010-02-271-2/+1
| | | | | | | | | * textmodes/reftex-toc.el (reftex-toc-promote-prepare): * emacs-lisp/elint.el (elint-add-required-env): * cedet/semantic/db-find.el (semanticdb-find-translate-path-brutish-default): * cedet/ede/make.el (ede-make-check-version): * calendar/icalendar.el (icalendar--add-diary-entry): * calc/calcalg2.el (math-tracing-integral): Use with-current-buffer instead of save-excursion.
* * emacs-lisp/authors.el (authors-renamed-files-alist):Glenn Morris2010-02-171-1/+3
| | | | Add entries for INSTALL.CVS.
* (ad-compile-function): Fix last change.Stefan Monnier2010-02-151-1/+1
|
* (ad-compile-function): Suppress byte-compiler warnings, since it is annoyingStefan Monnier2010-02-151-1/+3
| | | | for the user to see them each time he runs the code.
* Fix typos in docstrings.Juanma Barranquero2010-02-141-6/+6
| | | | | | | | | | | | | * outline.el (outline-head-from-level): * simple.el (with-wrapper-hook): * cedet/ede.el (ede-run-target, project-delete-target) (project-dist-files, ede-name, ede-documentation, ede-parent-project) (ede-adebug-project, ede-adebug-project-parent) (ede-adebug-project-root): * emacs-lisp/elint.el (elint-extra-errors, elint-current-buffer) (elint-defun, elint-buffer-env, elint-top-form-logged) (elint-unbound-variable): * textmodes/reftex-toc.el (reftex-toc-newhead-from-alist):
* (aelement): Fix typo in previous.Glenn Morris2010-01-231-3/+3
|
* * emacs-lisp/advice.el (ad-set-orig-definition): Fix typo (Bug#3541).Chong Yidong2010-01-231-1/+1
|
* * emacs-lisp/assoc.el (aelement): Doc fix.Chong Yidong2010-01-231-1/+2
|
* * emacs-lisp/assoc.el (aput, adelete, amake): Use lexical-let (Bug#5450).Chong Yidong2010-01-231-7/+8
|
* Fix typos in docstrings, error messages, etc.Juanma Barranquero2010-01-183-14/+14
|
* * emacs-lisp/advice.el (ad-add-advice): Doc fix (Bug#5274)Chong Yidong2010-01-161-10/+22
|
* * emacs-lisp/cl-macs.el (defstruct): Doc fix (Bug#5267).Chong Yidong2010-01-162-9/+29
|
* Mario Lang <mlang@delysid.org>: Remove some duplicated words.Mario Lang2010-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * cedet/ede/cpp-root.el (ede-cpp-root-project): * cedet/ede/files.el (ede-expand-filename): * cedet/ede/simple.el (ede-simple-project): * cedet/semantic/complete.el (semantic-complete-read-tag-engine) (semantic-complete-inline-tag-engine): * cedet/semantic/db-el.el (semanticdb-equivalent-mode): * cedet/semantic/db-global.el (semanticdb-equivalent-mode): * cedet/semantic/db-javascript.el (semanticdb-equivalent-mode): * cedet/semantic/db.el (semanticdb-equivalent-mode): * cedet/semantic/decorate/include.el (semantic-decoration-unknown-include-describe): * cedet/semantic/idle.el (semantic-idle-work-for-one-buffer): * emacs-lisp/chart.el (chart-translate-namezone): * textmodes/artist.el (artist-compute-popup-menu-table): Remove duplicated words in doc-strings. * srecode/doc-cpp.srt, srecode/doc-default.srt: * srecode/doc-java.srt: Remove duplicated words. * ede.texi (ede-target): * org.texi (Refiling notes): Remove duplicated words.
* Fix typos in docstrings.Juanma Barranquero2010-01-141-2/+2
|
* Update autoload checksums.Juanma Barranquero2010-01-131-3/+3
|
* Add 2010 to copyright years.Glenn Morris2010-01-1370-70/+70
|
* emacs-lisp/easy-mmode.el (define-globalized-minor-mode): MakeEli Zaretskii2010-01-021-2/+6
| | | | the lines in the generated doc string shorter. (Bug#4668)
* (batch-update-autoloads): Only excludeAndreas Schwab2009-12-171-2/+2
| | | | unconditionally preloaded files.
* (emacs-lisp-mode-map): Standardize the capitalization of some menu entries.Glenn Morris2009-12-111-6/+6
|
* Let loaddefs.el adjust to changes in autoload-excludes (bug#5162).Stefan Monnier2009-12-101-6/+8
| | | | | | | | * emacs-lisp/autoload.el (autoload-generate-file-autoloads): Disregard autoload-excludes. (update-directory-autoloads): Obey autoload-excludes here instead. But don't store its contents in no-autoloads and remove entries that refer to excludes files.
* * minibuffer.el (completion-at-point-functions): New var.Stefan Monnier2009-12-072-17/+22
| | | | | | | | | | | | | | | | | | | (completion-at-point): New command. * indent.el (indent-for-tab-command): Handle the new `complete' behavior. * progmodes/python.el (python-mode-map): Use completion-at-point. (python-completion-at-point): Rename from python-partial-symbol and adjust for use in completion-at-point-functions. (python-mode): Setup completion-at-point for Python completion. * emacs-lisp/lisp.el (lisp-completion-at-point): New function extracted from lisp-complete-symbol. (lisp-complete-symbol): Use it. * emacs-lisp/lisp-mode.el (emacs-lisp-mode): Use define-derived-mode, setup completion-at-point for Elisp completion. (emacs-lisp-mode-map, lisp-interaction-mode-map): Use completion-at-point. * ielm.el (ielm-map): Use completion-at-point. (inferior-emacs-lisp-mode): Setup completion-at-point for Elisp completion. * progmodes/sym-comp.el: Move to... * obsolete/sym-comp.el: Move from progmodes.
* Ulrich Mueller <ulm at gentoo.org>Glenn Morris2009-12-071-1/+2
| | | | | (byte-compile-insert-header): Put the version number comment back on its own line, for easier parsing by external tools.
* (byte-compile-save-excursion): Make message consistent with others (noGlenn Morris2009-12-011-1/+1
| | | | final period).
* (byte-compile-warning-types): New type `suspicious'.Stefan Monnier2009-11-271-6/+7
| | | | | | (byte-compile-warnings): Use byte-compile-warning-types. (byte-compile-save-excursion): Warn about use of set-buffer right after save-excursion.
* * emacs-lisp/checkdoc.el (checkdoc-proper-noun-regexp): BuildKevin Ryde2009-11-241-6/+3
| | | | | value with regexp-opt instead of explicit joining loop. (My Bug#4927.)
* * emacs-lisp/elint.el (elint-add-required-env): Better error messageKevin Ryde2009-11-241-3/+4
| | | | when .el source file not found or other error.
* (list-load-path-shadows): Setup a major modeStefan Monnier2009-11-241-0/+1
| | | | for the displayed buffer (bug#4887).