summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* * lisp/emacs-lisp/bytecomp.el (add-to-list): Add handler to check theStefan Monnier2011-06-201-0/+19
| | | | variable's status.
* * emacs-lisp/syntax.el (syntax-ppss): Further improve docstring.Daniel Colascione2011-06-191-2/+3
|
* Add rx.el support for numbered groups (Bug#8776).Chong Yidong2011-06-181-0/+17
| | | | | | * lisp/emacs-lisp/rx.el (rx-constituents): Add support for numbered groups. (rx-submatch-n): New function. (rx): Document it.
* * lisp/emacs-lisp/debug.el (debug): Don't leave the buffer in Debugger.Stefan Monnier2011-06-151-4/+5
|
* * src/eval.c (Fdefvaralias): Also mark the target as variable-special-p.Stefan Monnier2011-06-151-0/+20
|
* * emacs-lisp/syntax.el (syntax-ppss): Clarify which items are invalid.Daniel Colascione2011-06-111-1/+1
|
* Doc fixes for timer.el (Bug#8793).Chong Yidong2011-06-041-20/+20
| | | | | * emacs-lisp/timer.el (timer-activate): Remove unused arg. (timer-activate, timer-activate-when-idle): Doc fix.
* Auto-commit of loaddefs files.Glenn Morris2011-06-021-1/+1
|
* Silence various byte-compiler warnings.Stefan Monnier2011-06-013-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/byte-run.el (make-obsolete-variable): New argument `access-type' and new obsolescence format. * lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete): Adjust to new format. (byte-compile-check-variable): New `access-type' argument. Only warn if the access-type is obsolete. (byte-compile-dynamic-variable-bind, byte-compile-variable-ref) (byte-compile-variable-set): Adjust callers. * lisp/help-fns.el (describe-variable): Adjust to new obsolescence format. * lisp/mail/sendmail.el (mail-mailer-swallows-blank-line): Only mark setting it as obsolete. * lisp/simple.el (minibuffer-completing-symbol): * lisp/font-lock.el (font-lock-beginning-of-syntax-function): Only mark read access as obsolete. * lisp/minibuffer.el (minibuffer-completing-file-name): Don't make it obsolete yet. * lisp/international/quail.el (quail-mouse-choose-completion): Remove unused code referring to obsolete var. (quail-choose-completion-string): Remove. * lisp/server.el (server-clients-with, server-kill-buffer-query-function) (server-kill-emacs-query-function): Silence "unused `proc'" warnings. * lisp/proced.el (proced-send-signal): * lisp/emacs-lisp/lisp.el (lisp-complete-symbol): Replace completion-annotate-function with completion-extra-properties.
* Miscellaneous tweaks.Stefan Monnier2011-06-015-32/+52
| | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (dolist, dotimes): Use the same strategy for lexical scoping as in subr.el's dolist and dotimes. * lisp/emacs-lisp/bytecomp.el (byte-compile-unfold-bcf): Silence compiler warning. * lisp/thingatpt.el (forward-whitespace): Trivial coding style fix. * lisp/subr.el (with-output-to-temp-buffer): Provide an edebug spec. * lisp/international/ccl.el (ccl-compile): Trivial simplification. * lisp/help-fns.el (help-do-arg-highlight): Silence compiler warning. * lisp/emacs-lisp/testcover.el (testcover-end): Remove spurious `printflag' argument. * lisp/emacs-lisp/byte-run.el (make-obsolete, make-obsolete-variable): Purecopy the whole obsolescence data.
* * lisp/emacs-lisp/debug.el (debug): Save&restore not just the buffer'sStefan Monnier2011-05-311-6/+15
| | | | content but also its previous major mode.
* * debug.el (debug): Restore the previous content of theHelmut Eller2011-05-311-0/+3
| | | | *Backtrace* buffer when we exit with C-M-c.
* * bytecomp.el (byte-compile-defvar): Add note about quoted lambda.Stefan Monnier2011-05-301-0/+2
|
* * emacs-lisp/re-builder.el (re-builder): Improve doc (Bug#8286).Chong Yidong2011-05-281-2/+7
|
* * lisp/emacs-lisp/avl-tree.el: New avl-tree-stack datatype. Add newToby Cubitt2011-05-271-51/+253
| | | | | | | | | | | | | | | traversal functions for avl-trees. (avl-tree--stack): New struct. (avl-tree-stack-p, avl-tree--stack-repopulate): New funs. (avl-tree-enter): Add optional `updatefun' arg. (avl-tree--do-enter): Add optional `updatefun' arg. Change return value. (avl-tree-delete): Add optional `test' and `nilflag' args. (avl-tree--do-delete): Add `test' and `nilflag' args. Change return value. (avl-tree-member): Add optional `nilflag' (avl-tree-member-p): New function. (avl-tree-mapc, avl-tree-mapf, avl-tree-mapcar): New functions. (avl-tree-stack, avl-tree-stack-pop, avl-tree-stack-first) (avl-tree-stack-empty-p): New functions.
* * lisp/emacs-lisp/avl-tree.el (avl-tree--del-balance): Rename fromToby Cubitt2011-05-271-220/+216
| | | | | | | | | | | avl-tree--del-balance1 and make it work both ways. (avl-tree--del-balance2): Remove. (avl-tree--enter-balance): Rename from avl-tree--enter-balance1 and make it work both ways. (avl-tree--enter-balance2): Remove. (avl-tree--switch-dir, avl-tree--dir-to-sign, avl-tree--sign-to-dir): New macros. (avl-tree--mapc, avl-tree-map): Add direction argument.
* Don't quote lambda expressions with `quote'.Stefan Monnier2011-05-235-14/+13
|
* * lisp/emacs-lisp/lisp.el (up-list): Fix forward movement.Stefan Monnier2011-05-231-6/+6
| | | | Fixes: debbugs:8708
* * lisp/emacs-lisp/advice.el (ad-read-advised-function):Kevin Ryde2011-05-231-2/+13
| | | | | Use `function-called-at-point' as the default default, if it has advice and passes PREDICATE.
* * lisp/emacs-lisp/bytecomp.el (byte-compile-function-form): Only callStefan Monnier2011-05-221-3/+3
| | | | byte-compile-lambda if it's actually a lambda.
* * lisp/emacs-lisp/eieio.el (eieio-defgeneric-form-primary-only-one):Stefan Monnier2011-05-221-9/+8
| | | | Fix function quoting. Use backquote better.
* * lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Convert ' to #' forStefan Monnier2011-05-222-3/+11
| | | | | | | funcall as well. Warn when performing those conversions. * lisp/emacs-lisp/bytecomp.el (byte-compile-form): Fix error report. Fixes: debbugs:8712
* * lisp/emacs-lisp/checkdoc.el (checkdoc-sentencespace-region-engine):Stefan Monnier2011-05-201-1/+1
| | | | Also allow singlespace after single-letter capitals followed by a dot.
* Remove the SOME_MACHINE_LISP distinction in src/Makefile.in.Glenn Morris2011-05-181-45/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See discussion in http://debbugs.gnu.org/8302 * configure.in (NS_SUPPORT, MOUSE_SUPPORT, TOOLTIP_SUPPORT) (WINDOW_SUPPORT): Remove output variables that are no longer used. * lib-src/makefile.w32-in (echolisp): Remove rule that is no longer needed. (clean): No more echolisp.tmp. * .bzrignore: Remove lib-src/echolisp.tmp. * lisp/emacs-lisp/autoload.el (batch-update-autoloads): Set autoload-excludes by parsing lisp/loadup.el rather than Makefiles. * lisp/loadup.el: Update commentary. * msdos/sed1x.inp (TOOLTIP_SUPPORT, WINDOW_SUPPORT): * msdos/sed1v2.inp (MSDOS_SUPPORT, NS_SUPPORT, MOUSE_SUPPORT) (TOOLTIP_SUPPORT, WINDOW_SUPPORT): No need to edit these any more. * src/Makefile.in (MSDOS_SUPPORT_REAL, MSDOS_SUPPORT, NS_SUPPORT) (REAL_MOUSE_SUPPORT, GPM_MOUSE_SUPPORT, MOUSE_SUPPORT, TOOLTIP_SUPPORT) (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT, WINDOW_SUPPORT): Remove. (lisp): Set the order to that of loadup.el. (shortlisp): Make it a copy of $lisp. (SOME_MACHINE_LISP): Remove. ($(etc)/DOC): Depend just on $lisp, not $SOME_MACHINE_LISP too. Use just $shortlisp, not $SOME_MACHINE_LISP too.
* * lisp/emacs-lisp/authors.el (authors-fixed-entries): Remove fakemail.cGlenn Morris2011-05-171-1/+1
|
* * lisp/emacs-lisp/eieio.el (defmethod): Fix quoting of code.Stefan Monnier2011-05-161-1/+1
| | | | Fixes: debbugs:8677
* Common Lisp indentation improvements on defmethod and lambda-lists.Didier Verna2011-05-131-35/+146
| | | | | | | | | | | | | | | * cl-indent.el: Advertise the changes and remove obsolete TODO entries. (lisp-lambda-list-keyword-parameter-indentation) (lisp-lambda-list-keyword-parameter-alignment) (lisp-lambda-list-keyword-alignment): New customizable user options. (lisp-indent-defun-method): Improve docstring. (extended-loop-p): Fix comment. (lisp-indent-lambda-list-keywords-regexp): New variable. (lisp-indent-lambda-list): New function. (lisp-indent-259): Use it. (lisp-indent-defmethod): Support for more than one method qualifier and properly indent methods lambda-lists. (defgeneric): Provide a missing common-lisp-indent-function property.
* Merge from emacs-23; up to 2010-06-10T12:56:11Z!michael.albinus@gmx.de.Glenn Morris2011-05-121-3/+3
|\
| * * lisp/emacs-lisp/lisp.el (lisp-complete-symbol, lisp-completion-at-point):Stefan Monnier2011-05-091-2/+3
| | | | | | | | Fix typo.
| * Backport 2011-03-01T03:59:31Z!lekktu@gmail.com from trunk.Juanma Barranquero2011-03-112-3/+3
| | | | | | | | *lisp/emacs-lisp/cl-macs.el (lexical-let*): Fix argument name in docstring.
* | bytecomp.el fix for bug#8647Glenn Morris2011-05-111-1/+5
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defmumble): Let byte-compile-initial-macro-environment always take precedence.
* | Revert accidental portion of previous bytecomp.el commit.Glenn Morris2011-05-111-2/+1
| |
* | bytecomp.el partial fix for bug#8646.Glenn Morris2011-05-111-1/+9
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn): Handle symbol elements of byte-compile-initial-macro-environment.
* | * lisp/emacs-lisp/eieio.el (defmethod): Fix typo in last change.Stefan Monnier2011-05-071-2/+2
| |
* | Make bytecomp.el understand that defmethod defines functions.Stefan Monnier2011-05-072-32/+44
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/eieio.el (eieio--defalias, eieio--defgeneric-init-form): New functions. (defgeneric, eieio--defmethod): Use them. (eieio-defgeneric): Remove. (defmethod): Call defgeneric in a way visible to the byte-compiler. Fixes: debbugs:8631
* | Small check-declare fix.Glenn Morris2011-05-041-4/+6
| | | | | | | | | | * lisp/emacs-lisp/check-declare.el (check-declare-scan): Handle byte-compile-initial-macro-environment in bytecomp.el
* | Fix earlier half-done eieio-defmethod change.Stefan Monnier2011-05-051-80/+44
| | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/eieio.el (eieio--defmethod): Rename from eieio-defmethod. Streamline and change calling convention. (defmethod): Adjust accordingly and simplify. (eieio-defclass): Fix broken calls to eieio-defmethod and redirect to new eieio--defmethod. (slot-boundp): Minor CSE simplification. Fixes: debbugs:8338
* | lisp/emacs-lisp/warnings.el: Tiny fixes.Juanma Barranquero2011-05-051-53/+53
| | | | | | | | | | | | * emacs-lisp/warnings.el (warning-level-aliases): Reflow docstring. (warning-series): Doc fix. (display-warning): Don't try to create the buffer if we just found it.
* | Make autoloading commands prompt for autoload file (Bug#7989)Chong Yidong2011-05-041-29/+48
| | | | | | | | | | | | | | | | | | | | | | * emacs-lisp/autoload.el (generated-autoload-file): Set to nil. (autoload-find-generated-file): New function. (generate-file-autoloads): Bind generated-autoload-file to buffer-file-name. (update-file-autoloads, update-directory-autoloads): Use autoload-find-generated-file. If called interactively, prompt for output file. (batch-update-autoloads): Doc fix.
* | * emacs-lisp/autoload.el (generated-autoload-file): Doc fix (Bug#7989).Chong Yidong2011-05-031-4/+12
| |
* | Restore ability to show a restricted list of packages in Package Menu.Chong Yidong2011-04-241-21/+37
| | | | | | | | | | | | | | | | | | | | | | * emacs-lisp/package.el (package-built-in-p): Fix typo. (package-menu--generate): New arg specifying packages to show. (package-menu-refresh, package-menu-execute, list-packages): Callers changed. (package-show-package-list): New function. * finder.el (finder-list-matches): Use package-show-package-list instead of deleted package--list-packages.
* | Doc fixes for package.el.Chong Yidong2011-04-211-26/+34
| | | | | | | | | | | | | | | | | | * emacs-lisp/package.el (package--builtins, package-alist) (package-load-descriptor, package-built-in-p, package-activate) (define-package, package-installed-p) (package-compute-transaction, package-buffer-info) (package--push): Doc fix. Distinguish more clearly between version strings and version lists.
* | * lisp/emacs-lisp/byte-opt.el (byte-decompile-bytecode-1): Remove dead code,Stefan Monnier2011-04-201-5/+4
| | | | | | | | add sanity check.
* | Allow glyphless-char-display to distinguish between X and text terminals.Chong Yidong2011-04-181-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use this for Tabulated List mode. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Use a custom glyphless-char-display table. (tabulated-list-glyphless-char-display): New var. * src/term.c (produce_glyphless_glyph): Handle cons cell entry in glyphless-char-display. * src/xdisp.c (lookup_glyphless_char_display) (produce_glyphless_glyph): Handle cons cell entry in glyphless-char-display. (Vglyphless_char_display): Document it.
* | * lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Use eval-sexp-add-defvars.Stefan Monnier2011-04-151-1/+1
| |
* | * lisp/emacs-lisp/bytecomp.el (byte-temp-output-buffer-show)Stefan Monnier2011-04-151-6/+5
| | | | | | | | | | (byte-save-window-excursion, byte-temp-output-buffer-setup) (byte-interactive-p): Define them again, for use when inlining old code.
* | Preserve arg names for advice of subr and lexical functions.Stefan Monnier2011-04-131-126/+15
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/help-fns.el (help-function-arglist): Consolidate the subr and new-byte-code cases. Add argument `preserve-names' to extract names from the docstring when needed. * lisp/emacs-lisp/advice.el (ad-define-subr-args, ad-undefine-subr-args) (ad-subr-args-defined-p, ad-get-subr-args, ad-subr-arglist): Remove. (ad-arglist): Use help-function-arglist's new arg. (ad-definition-type): Use cond. Fixes: debbugs:8457
* | Fix typo in tabulated-list-print-entryLeo Liu2011-04-101-1/+1
| |
* | Remove list-processes C function; misc fixes to last change.Chong Yidong2011-04-062-6/+8
| | | | | | | | | | | | | | | | | | | | | | * src/process.c (Flist_processes): Removed to Lisp. (list_processes_1): Deleted. * lisp/emacs-lisp/cconv.el (cconv--analyse-use): Ignore "ignored" when issuing unused warnings. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Use lambda macro directly.
* | Make Package Menu a child of Tabulated List mode.Chong Yidong2011-04-061-296/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * emacs-lisp/package.el: Use Tabulated List mode. (package-menu-mode-map): Inherit from tabulated-list-mode-map. (package-menu-mode): Derive from tabulated-list-mode. Set up the table format using Tabulated List mode variables. (package--push): New macro, replacing package-list-maybe-add. (package-menu--generate): Use package--push. Renamed from package--generate-package-list. (package-menu-refresh, list-packages): Use it. (package-menu--print-info): Renamed from package-print-package. Return insertion data instead of inserting it directly. (package-menu-describe-package, package-menu-execute): Use tabulated-list-get-id. (package-menu-mark-delete, package-menu-mark-install) (package-menu-mark-unmark, package-menu-backup-unmark) (package-menu-mark-obsolete-for-deletion): Use tabulated-list-put-tag. (package--list-packages, package-menu-revert) (package-menu-get-package, package-menu-get-version) (package-menu-sort-by-column): Functions deleted. (package-menu-package-list, package-menu-sort-key): Vars deleted. (package-menu--status-predicate, package-menu--version-predicate) (package-menu--name-predicate) (package-menu--description-predicate): Handle arguments in the Tabulated List format. (package-list-packages-no-fetch): Call list-packages.