summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* * syntax.el (syntax-propertize-function): Fix docstring.Stefan Monnier2013-05-301-6/+7
|
* * lisp/emacs-lisp/eieio.el (eieio-eval-default-p): Move before use.Glenn Morris2013-05-291-4/+4
|
* * lisp/emacs-lisp/trace.el (trace--read-args): Provide a default.Stefan Monnier2013-05-291-1/+11
|
* * lisp/emacs-lisp/lisp-mode.el (lisp-mode-shared-map): Inherit fromStefan Monnier2013-05-291-0/+1
| | | | prog-mode-map.
* * lisp/emacs-lisp/smie.el (smie-highlight-matching-block): Always turnLeo Liu2013-05-291-9/+6
| | | | | | | | | off the highlight first. * lisp/progmodes/octave.el (octave-indent-comment): Tweak regexps. (octave-help): Small simplification. * test/indent/octave.m: Tweak.
* * lisp/emacs-lisp/bytecomp.el (byte-compile-warnings): Doc fix.Glenn Morris2013-05-271-2/+3
|
* Always defvar a mode's hook and provide a docstring.Stefan Monnier2013-05-272-4/+9
| | | | | | * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): * lisp/emacs-lisp/derived.el (define-derived-mode): Always defvar the mode hook and provide a docstring.
* * lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Don't burp at EOB.Stefan Monnier2013-05-241-1/+1
| | | | Fixes: debbugs:14446
* * lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Don't useStefan Monnier2013-05-241-1/+5
| | | | | | error-completion on the first 2 args of condition-case. Fixes: debbugs:14446
* * lisp/emacs-lisp/smie.el (smie-auto-fill): Rework to be more robust.Stefan Monnier2013-05-241-55/+58
| | | | | | | | | | | (smie-setup): Use add-function to set it. * lisp/progmodes/octave.el (octave-smie-rules): Return nil rather than 0 after a semi-colon; it works better for smie-auto-fill. (octave--indent-new-comment-line): New function. (octave-indent-new-comment-line): Use it (indirectly). (octave-mode): Don't disable smie-auto-fill. Use add-function to modify comment-line-break-function.
* * emacs-lisp/chart.el (chart-sort): Replace obsolete `object-name'.Glenn Morris2013-05-231-1/+1
|
* * lisp/emacs-lisp/smie.el (smie-indent-forward-token)Stefan Monnier2013-05-231-2/+12
| | | | | | (smie-indent-backward-token): Handle string tokens. Fixes: debbugs:14381
* Silence checkdoc.el compilationGlenn Morris2013-05-221-20/+15
| | | | | | | * lisp/emacs-lisp/checkdoc.el: No need to load ispell when compiling. (ispell-process, ispell-buffer-local-words, lm-summary) (lm-section-start, lm-section-end): Declare. (checkdoc-ispell-init): Simplify.
* Tweak byte-compile-file-form-autoload warningsGlenn Morris2013-05-221-12/+17
| | | | | | * emacs-lisp/bytecomp.el (byte-compile-file-form-autoload): Always delete the autoloaded function from the noruntime and unresolved functions lists.
* Small speedbar-related clean-upGlenn Morris2013-05-212-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/dframe.el (x-sensitive-text-pointer-shape, x-pointer-shape): Remove unnecessary declarations. (dframe-message): Doc fix. * lisp/info.el (dframe-select-attached-frame, dframe-current-frame): Declare. * lisp/speedbar.el (speedbar-message): Make it an obsolete alias. Update all callers. (speedbar-with-attached-buffer) (speedbar-maybee-jump-to-attached-frame): Make these aliases obsolete. (speedbar-with-writable): Use backquote. * lisp/emacs-lisp/eieio-opt.el (eieio-describe-class-sb): * lisp/emacs-lisp/eieio-speedbar.el (eieio-speedbar-handle-click): Use dframe-with-attached-buffer, dframe-maybee-jump-to-attached-frame rather than speedbar- aliases. * lisp/mail/rmail.el: Load dframe rather than speedbar when compiling. (speedbar-make-specialized-keymap, speedbar-insert-button) (dframe-select-attached-frame, dframe-maybee-jump-to-attached-frame) (speedbar-do-function-pointer): Declare. (rmail-speedbar-button, rmail-speedbar-find-file) (rmail-speedbar-move-message): Use dframe-with-attached-buffer rather than speedbar- alias. * lisp/progmodes/gud.el: Load dframe rather than speedbar when compiling. (dframe-message, speedbar-make-specialized-keymap) (speedbar-add-expansion-list, speedbar-mode-functions-list) (speedbar-make-tag-line, speedbar-remove-localized-speedbar-support) (speedbar-insert-button, dframe-select-attached-frame) (dframe-maybee-jump-to-attached-frame) (speedbar-change-initial-expansion-list) (speedbar-previously-used-expansion-list-name): Declare. (gud-speedbar-item-info, gud-gdb-goto-stackframe): Use dframe-message, dframe-with-attached-buffer rather than speedbar- aliases. (gud-sentinel): Silence compiler. * lisp/progmodes/vhdl-mode.el (speedbar-refresh) (speedbar-do-function-pointer, speedbar-add-supported-extension) (speedbar-add-mode-functions-list, speedbar-make-specialized-keymap) (speedbar-change-initial-expansion-list, speedbar-add-expansion-list) (speedbar-extension-list-to-regex, speedbar-directory-buttons) (speedbar-file-lists, speedbar-make-tag-line) (speedbar-line-directory, speedbar-goto-this-file) (speedbar-center-buffer-smartly, speedbar-change-expand-button-char) (speedbar-delete-subblock, speedbar-position-cursor-on-line) (speedbar-make-button, speedbar-reset-scanners) (speedbar-files-item-info, speedbar-line-text) (speedbar-find-file-in-frame, speedbar-set-timer) (dframe-maybee-jump-to-attached-frame, speedbar-line-file): Declare. (speedbar-with-writable): Do not (re)define it. (vhdl-speedbar-find-file): Use dframe-maybee-jump-to-attached-frame rather than speedbar- alias. * lisp/cedet/ede/speedbar.el (ede-file-find, ede-tag-find): * lisp/cedet/semantic/sb.el (semantic-sb-token-jump): Use dframe-maybee-jump-to-attached-frame rather than speedbar- alias. * lisp/mh-e/mh-speed.el (mh-speed-view): Use dframe-with-attached-buffer rather than speedbar- alias.
* Silence some compiler warningsGlenn Morris2013-05-211-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * calculator.el (electric, ehelp): No need to load when compiling. (Electric-command-loop, electric-describe-mode): Declare. * doc-view.el (doc-view-current-converter-processes): Move before use. * files.el (dired-unmark): * progmodes/gud.el (gdb-input): Update declarations. * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Move MODE-set-explicitly definition before use. * erc/erc-log.el (erc-network-name): Declare. * erc/erc-notify.el (pcomplete--here): Declare. (pcomplete/erc-mode/NOTIFY): Require pcomplete. * international/mule-diag.el (mule-diag): Don't use obsolete window-system-version. * mail/feedmail.el (smtpmail): No need to load when compiling. (smtpmail-via-smtp, smtpmail-smtp-server): Declare. * mail/mail-utils.el (rfc822): No need to load when compiling. (rfc822-addresses): Autoload it. (mail-strip-quoted-names): Trivial simplification. * mail/rmail.el (rmail-mime-message-p, rmail-mime-toggle-raw): Declare. (rmail-retry-failure): Don't assume that rmail-mime-feature == rmailmm. * net/snmp-mode.el (tempo): Don't duplicate requires. * progmodes/prolog.el (info): No need to load when compiling. (comint): Require before shell requires it. (Info-goto-node): Autoload it. (Info-follow-nearest-node): Declare. (prolog-help-info, prolog-goto-predicate-info): No need to require info. * textmodes/artist.el (picture-mode-exit): Declare. * textmodes/reftex-parse.el (reftex-parse-from-file): Trivial rewrite so the compiler can parse it better. * url/url-dav.el (url-http): Require it. (url-http-head-file-attributes): Don't autoload it. * url/url-proxy.el (url-http): Autoload it.
* * emacs-lisp/smie.el (smie-highlight-matching-block-mode): CleanLeo Liu2013-05-171-6/+12
| | | | | | | | up when turned off. (smie--highlight-matching-block-overlay): No longer buffer-local. (smie-highlight-matching-block): Adjust. Fixes: debbugs:14395
* Doc string fix for "nanoseconds".Paul Eggert2013-05-161-2/+2
| | | | | | | * emacs-lisp/timer.el (timer-relative-time, timer-inc-time): Fix doc string typo that had "nanoseconds" instead of "microseconds". Fixes: debbugs:14406
* * emacs-lisp/smie.el (smie-matching-block-highlight): New face.Leo Liu2013-05-171-2/+82
| | | | | | | | | | | (smie--highlight-matching-block-overlay) (smie--highlight-matching-block-lastpos) (smie--highlight-matching-block-timer): New variables. (smie-highlight-matching-block): New function. (smie-highlight-matching-block-mode): New minor mode. (smie-setup): Conditionally enable smie-blink-matching-open. Fixes: debbugs:14395
* * lisp/emacs-lisp/cl-extra.el (cl-getf): Return the proper value inStefan Monnier2013-05-142-3/+6
| | | | | | the setter. Fixes: debbugs:14387
* * lisp/emacs-lisp/tabulated-list.el: Set a version number.Yann Hodique2013-05-142-0/+2
| | | | | | * lisp/emacs-lisp/package.el: Explicitly depend on a tabulated-list version. Fixes: debbugs:14137
* * lisp/emacs-lisp/autoload.el (generated-autoload-load-name): Doc fix.Glenn Morris2013-05-111-1/+4
|
* Make some files provide featuresGlenn Morris2013-05-111-0/+2
| | | | | * dos-vars.el, emacs-lisp/cl-indent.el, emulation/tpu-extras.el: Provide features.
* Fix some declarationsGlenn Morris2013-05-101-2/+2
| | | | | | | | | | | * lisp/faces.el (internal-face-x-get-resource): * lisp/frame.el (ns-display-monitor-attributes-list): * lisp/calc/calc-aent.el (math-to-radians-2): * lisp/cedet/ede/locate.el (cedet-cscope-version-check) (cedet-cscope-support-for-directory): * lisp/cedet/semantic/grammar.el (semantic-grammar-wy--install-parser): * lisp/emacs-lisp/package.el (tar-header-name, tar-header-link-type): Fix declarations.
* More custom :type fixesGlenn Morris2013-05-101-1/+1
| | | | | | | | * lisp/lpr.el (lpr-headers-switches): * lisp/emacs-lisp/testcover.el (testcover-compose-functions): * lisp/cedet/ede/project-am.el (project-am-compile-project-command): Fix :type. * lisp/progmodes/sql.el (sql-login-params): Fix and improve :type.
* Auto-commit of loaddefs files.Glenn Morris2013-05-101-12/+30
|
* * lisp/emacs-lisp/cl-macs.el (cl-loop): Doc fix.Glenn Morris2013-05-091-11/+29
|
* Fix a bunch of custom types (thank you cus-test.el)Glenn Morris2013-05-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/bookmark.el (bookmark-search-delay): * lisp/cus-start.el (vertical-centering-font-regexp): * lisp/ps-mule.el (ps-mule-font-info-database-default): * lisp/ps-print.el (ps-default-fg, ps-default-bg): * lisp/type-break.el (type-break-good-break-interval): * lisp/whitespace.el (whitespace-indentation-regexp) (whitespace-space-after-tab-regexp): * lisp/emacs-lisp/testcover.el (testcover-1value-functions) (testcover-noreturn-functions, testcover-progn-functions) (testcover-prog1-functions): * lisp/emulation/viper-init.el (viper-emacs-state-cursor-color): * lisp/erc/erc-desktop-notifications.el (erc-notifications-icon): * lisp/eshell/em-glob.el (eshell-glob-translate-alist): * lisp/gnus/gnus-art.el (gnus-article-date-headers, gnus-blocked-images): * lisp/gnus/gnus-async.el (gnus-async-post-fetch-function): * lisp/gnus/gnus-gravatar.el (gnus-gravatar-size, gnus-gravatar-properties): * lisp/gnus/gnus-html.el (gnus-html-image-cache-ttl): * lisp/gnus/gnus-notifications.el (gnus-notifications-timeout): * lisp/gnus/gnus-picon.el (gnus-picon-properties): * lisp/gnus/gnus-util.el (gnus-completion-styles): * lisp/gnus/gnus.el (gnus-other-frame-resume-function): * lisp/gnus/message.el (message-user-organization-file) (message-cite-reply-position): * lisp/gnus/nnir.el (nnir-summary-line-format) (nnir-retrieve-headers-override-function): * lisp/gnus/shr-color.el (shr-color-visible-luminance-min): * lisp/gnus/shr.el (shr-blocked-images): * lisp/gnus/spam-report.el (spam-report-resend-to): * lisp/gnus/spam.el (spam-summary-exit-behavior): * lisp/mh-e/mh-e.el (mh-sortm-args, mh-default-folder-for-message-function): * lisp/play/tetris.el (tetris-tty-colors): * lisp/progmodes/cpp.el (cpp-face-default-list): * lisp/progmodes/flymake.el (flymake-allowed-file-name-masks): * lisp/progmodes/idlw-help.el (idlwave-help-browser-generic-program) (idlwave-help-browser-generic-args): * lisp/progmodes/make-mode.el (makefile-special-targets-list): * lisp/progmodes/python.el (python-shell-virtualenv-path): * lisp/progmodes/verilog-mode.el (verilog-active-low-regexp) (verilog-auto-input-ignore-regexp, verilog-auto-inout-ignore-regexp) (verilog-auto-output-ignore-regexp, verilog-auto-tieoff-ignore-regexp) (verilog-auto-unused-ignore-regexp, verilog-typedef-regexp): * lisp/textmodes/reftex-vars.el (reftex-format-label-function): * lisp/textmodes/remember.el (remember-diary-file): Fix custom types. * lisp/cedet/semantic/db-find.el (semanticdb-find-throttle-custom-list): Fix value. * lisp/gnus/gnus-salt.el (gnus-selected-tree-face): Fix default.
* Silence byte-compiler warnings.Juanma Barranquero2013-05-081-1/+1
| | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-insert-header): * lisp/faces.el (crm-separator): Silence byte-compiler. * lisp/progmodes/gud.el (gdb-speedbar-auto-raise, gud-tooltip-mode) (tool-bar-map): Remove unneeded defvars.
* * lisp/emacs-lisp/trace.el (trace--display-buffer): New function.Stefan Monnier2013-05-061-10/+14
| | | | (trace-make-advice): Use it.
* * lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Doc fix. Juri Linkov2013-05-061-7/+6
| | | | | | | | (eval-defun-2, eval-defun, eval-last-sexp, eval-last-sexp-1): Doc fix. (emacs-lisp-mode-map): Replace "minibuffer" with "echo area" in the help string. (Bug#12985) Fixes: debbugs:14344
* * lisp/emacs-lisp/nadvice.el (advice--member-p): Return the advice if found.Stefan Monnier2013-05-061-3/+7
| | | | | | (advice--add-function): Refresh the advice if already present. Fixes: debbugs:14317
* * lisp/emacs-lisp/package.el (package-autoload-ensure-default-file):Stefan Monnier2013-04-271-3/+3
| | | | | Add current dir to the load-path. (package-generate-autoloads): Don't rely on autoload-ensure-default-file.
* * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Disable undo.Stefan Monnier2013-04-261-6/+5
| | | | Fixes: debbugs:14274
* Merge from emacs-24; up to 2012-12-27T08:21:08Z!rgm@gnu.orgGlenn Morris2013-04-261-1/+1
|\
| * * lisp/emacs-lisp/syntax.el (syntax-propertize-multiline):Erik Charlebois2013-04-221-1/+1
| | | | | | | | | | | | | | Use `syntax-multiline' text property consistently instead of `font-lock-multiline'.. Fixes: debbugs:14237
* | list-load-path-shadows simplificationGlenn Morris2013-04-261-75/+53
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/shadow.el (list-load-path-shadows): No longer necessary to check for duplicate simple.el, since 2012-07-07 change to init_lread to not include installation lisp directories in load-path when running uninstalled. Fixes: debbugs:14270
* | * lisp/progmodes/octave-mod.el (octave-smie-forward-token): Only emitStefan Monnier2013-04-241-12/+24
| | | | | | | | | | | | | | | | | | | | semi-colons if the line is not otherwise empty. * lisp/emacs-lisp/smie.el (smie-indent--hanging-p): Don't burp at EOB. (smie-indent-keyword): Improve the check to ensure that the next comment is really on the same line. (smie-indent-comment): Don't align with a subsequent closer (or eob). Fixes: debbugs:14218
* | No longer include timestamp in header of .elc filesGlenn Morris2013-04-201-5/+1
| | | | | | | | | | | | | | | | | | | | | | This removes needless differences between files compiled at different times or by different people, or from sources in different locations. Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00187.html * lisp/emacs-lisp/bytecomp.el (byte-compile-insert-header): No longer include timestamp etc information. * etc/NEWS: Mention this.
* | Use add/remove-function to manipulate process-filters.Stefan Monnier2013-04-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/nadvice.el (advice--where-alist): Add :override. (remove-function): Autoload. * lisp/comint.el (comint-redirect-original-filter-function): Remove. (comint-redirect-cleanup, comint-redirect-send-command-to-process): * lisp/vc/vc-cvs.el (vc-cvs-annotate-process-filter,vc-cvs-annotate-command): * lisp/progmodes/octave-inf.el (inferior-octave-send-list-and-digest): * lisp/progmodes/prolog.el (prolog-consult-compile): * lisp/progmodes/gdb-mi.el (gdb, gdb--check-interpreter): Use add/remove-function instead. * lisp/progmodes/gud.el (gud-tooltip-original-filter): Remove. (gud-tooltip-process-output, gud-tooltip-tips): Use add/remove-function instead. * lisp/progmodes/xscheme.el (xscheme-previous-process-state): Remove. (scheme-interaction-mode, exit-scheme-interaction-mode): Use add/remove-function instead. * lisp/vc/vc-dispatcher.el: Use lexical-binding. (vc--process-sentinel): Rename from vc-process-sentinel. Change last arg to be the code to run. Don't use vc-previous-sentinel and vc-sentinel-commands any more. (vc-exec-after): Allow code to be a function. Use add/remove-function. (compilation-error-regexp-alist, view-old-buffer-read-only): Declare.
* | * lisp/subr.el (with-wrapper-hook): Declare obsolete.Stefan Monnier2013-04-171-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/simple.el (filter-buffer-substring-function): New hook. (filter-buffer-substring): Use it. (filter-buffer-substring-functions): Mark obsolete. * lisp/minibuffer.el (completion-in-region-function): New hook. (completion-in-region): Use it. (completion-in-region-functions): Mark obsolete. * lisp/mail/mailabbrev.el (mail-abbrevs-setup): Use abbrev-expand-function. * lisp/abbrev.el (abbrev-expand-function): New hook. (expand-abbrev): Use it. (abbrev-expand-functions): Mark obsolete. * lisp/emacs-lisp/nadvice.el (advice--where-alist): Add :filter-args and :filter-return. * lisp/org/org-agenda.el (org-agenda-mode): * lisp/org/org-indent.el (org-indent-mode): Use the `local' arg of add-hook/remove-hook.
* | * lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Provide specializedStefan Monnier2013-04-171-26/+54
| | | | | | | | | | | | | | | | completion tables when completing error conditions and `declare' arguments. (lisp-complete-symbol, field-complete): Mark as obsolete. (check-parens): Unmatched parens are user errors. * lisp/minibuffer.el (minibuffer-completion-contents): Mark as obsolete.
* | * lisp/emacs-lisp/nadvice.el (add-function): Default simple vars to theirStefan Monnier2013-04-151-4/+3
| | | | | | | | global bindings.
* | * lisp/emacs-lisp/nadvice.el: Properly test names when adding advice.Stefan Monnier2013-04-151-4/+6
| | | | | | | | | | | | | | (advice--member-p): New arg `name'. (advice--add-function, advice-member-p): Use it. Fixes: debbugs:14202
* | * lisp/emacs-lisp/trace.el (trace-values): New function.Stefan Monnier2013-04-131-0/+11
| |
* | * src/keyboard.c (timer_start_idle): Call internal-timer-start-idle insteadStefan Monnier2013-04-101-69/+82
| | | | | | | | | | | | | | | | | | | | of marking the idle timers directly. * lisp/emacs-lisp/timer.el (timer--check): New function. (timer--time, timer-set-function, timer-event-handler): Use it. (timer-set-idle-time): Simplify. (timer--activate): CSE. (timer-event-handler): Give more info in error message. (internal-timer-start-idle): New function, moved from C.
* | * lisp/emacs-lisp/edebug.el (edebug-mode): Fix typo.Stefan Monnier2013-04-071-1/+1
| | | | | | | | Fixes: debbugs:14144
* | * lisp/emacs-lisp/timer.el (timer-event-handler): Don't retrigger a canceledStefan Monnier2013-04-071-2/+6
| | | | | | | | | | | | timer. Fixes: debbugs:14156
* | * emacs-lisp/ert.el: Fix paren typo.Stefan Monnier2013-04-071-2/+2
| |
* | * lisp/emacs-lisp/ert.el (should, should-not, should-error): Add edebugNic Ferrier2013-04-071-0/+3
| | | | | | | | declaration.