summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp.el
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/font-lock.el (font-lock-beginning-of-syntax-function): RemoveStefan Monnier2015-09-171-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (font-lock-fontify-block): Don't let-bind it. (font-lock-compile-keywords): Don't use it. (font-lock-set-defaults): Don't set it. Allow the variable alist to start one slot earlier, instead. * lisp/emacs-lisp/syntax.el (font-lock-beginning-of-syntax-function): Don't declare. (syntax-ppss): Don't use it either. * lisp/font-core.el (font-lock-defaults): Remove SYNTAX-BEGIN from docstring. * doc/emacs/display.texi (Font Lock): Don't mention font-lock-beginning-of-syntax-function. * doc/lispref/modes.texi (Font Lock Basics): Update description of font-lock-defaults. (Syntactic Font Lock): Remove font-lock-beginning-of-syntax-function. * lisp/loadhist.el (unload-feature-special-hooks): Remove font-lock-beginning-of-syntax-function. * lisp/obsolete/lazy-lock.el (lazy-lock-fontify-region): * lisp/emacs-lisp/lisp.el (beginning-of-defun-raw): Don't let-bind font-lock-beginning-of-syntax-function.
* Further lisp-complete-symbol related cleanup.Glenn Morris2015-05-181-2/+3
| | | | | * lisp/emacs-lisp/lisp.el (lisp-complete-symbol): Unadvertise non-functional argument. Replace obsolete alias.
* Removes the predicate from lisp-complete-symbol (Bug#20456)Nicolas Petton2015-05-161-9/+6
| | | | | * lisp/emacs-lisp/lisp.el (lisp-complete-symbol): Do not use predicate and remove it from the docstring.
* Push mark before goto-char in jump-to-register and check-parensKelly Dean2015-02-181-1/+2
| | | | | | * register.el (jump-to-register): * emacs-lisp/lisp.el (check-parens): Push mark before goto-char so user doesn't lose his previous place.
* Use user-error where error is inappropriateKelly Dean2015-02-181-1/+1
| | | | | | | | | | | | | * help-mode.el (help-go-back, help-go-forward, help-follow): * simple.el (yank-pop, pop-to-mark-command, exchange-point-and-mark): * winner.el (winner-redo): * windmove.el (windmove-do-window-select): * register.el (jump-to-register, increment-register, insert-register) (append-to-register, prepend-to-register): * files.el (find-alternate-file, abort-if-file-too-large, write-file) (set-visited-file-name): * emacs-lisp/lisp.el (kill-backward-up-list): Use user-error instead of error. (Bug#14480)
* Update copyright year to 2015Paul Eggert2015-01-011-1/+1
| | | | Run admin/update-copyright.
* Introduce global-eldoc-mode. Move Elisp-specific code to elisp-mode.el.Stefan Monnier2014-09-261-300/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/eldoc.el (global-eldoc-mode): New minor mode. (eldoc-schedule-timer): Obey it. (eldoc-documentation-function): Default to nil. (eldoc-mode): Don't enable if eldoc-documentation-function is not set. (eldoc-documentation-function-default, eldoc-get-fnsym-args-string) (eldoc-highlight-function-argument, eldoc-get-var-docstring) (eldoc-last-data-store, eldoc-docstring-first-line) (eldoc-docstring-format-sym-doc, eldoc-fnsym-in-current-sexp) (eldoc-beginning-of-sexp, eldoc-current-symbol) (eldoc-function-argstring): Move to elisp-mode.el. (eldoc-symbol-function): Remove, unused. * lisp/progmodes/elisp-mode.el: New file. Rename all "eldoc-*" to "elisp--*". (elisp-completion-at-point): Rename from lisp-completion-at-point. (elisp--preceding-sexp): Rename from preceding-sexp. * lisp/loadup.el: Load new file progmodes/elisp-mode. * lisp/ielm.el (inferior-emacs-lisp-mode): Set eldoc-documentation-function. * lisp/emacs-lisp/lisp.el (lisp--local-variables-1, lisp--local-variables) (lisp--local-variables-completion-table, lisp--expect-function-p) (lisp--form-quoted-p, lisp--company-doc-buffer) (lisp--company-doc-string, lisp--company-location) (lisp-completion-at-point): Move to elisp-mode.el. * lisp/emacs-lisp/lisp-mode.el (lisp--mode-syntax-table): New syntax-table, extracted from emacs-lisp-mode-syntax-table. (emacs-lisp-mode-abbrev-table, emacs-lisp-mode-syntax-table): Move to elisp-mode.el. (lisp-imenu-generic-expression): Add comments to document what comes from which Lisp dialect. (emacs-lisp-mode-map, emacs-lisp-byte-compile) (emacs-lisp-byte-compile-and-load, emacs-lisp-mode-hook) (emacs-lisp-mode, emacs-list-byte-code-comment-re) (emacs-lisp-byte-code-comment) (emacs-lisp-byte-code-syntax-propertize, emacs-lisp-byte-code-mode) (lisp-interaction-mode-map, lisp-interaction-mode) (eval-print-last-sexp, last-sexp-setup-props) (last-sexp-toggle-display, prin1-char, preceding-sexp) (eval-last-sexp-1, eval-last-sexp-print-value) (eval-last-sexp-fake-value, eval-sexp-add-defvars, eval-last-sexp) (eval-defun-1, eval-defun-2, eval-defun): Move to elisp-mode.el. * src/lisp.mk (lisp): Add elisp-mode.elc.
* * lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Don't useDmitry Gutov2014-09-191-12/+7
| | | | | `lisp--local-variables-completion-table' in the `lisp--form-quoted-p' case.
* Fix bug#18265Dmitry Gutov2014-09-191-1/+3
| | | | | | | * lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Only calculate `table-etc' when `end' is non-nil. (lisp-completion-at-point): Move `end' back if it's after quote. If in comment or string, only complete when after backquote.
* * lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Only calculateDmitry Gutov2014-09-191-98/+99
| | | | `table-etc' when `end' is non-nil.
* Make lisp-completion-at-point more discerningDmitry Gutov2014-09-191-12/+71
| | | | | | | | * lisp/emacs-lisp/lisp.el (lisp--expect-function-p) (lisp--form-quoted-p): New functions. (lisp-completion-at-point): Use them to see if we're completing a variable reference, a function name, or just any symbol. http://lists.gnu.org/archive/html/emacs-devel/2014-02/msg00229.html
* * lisp/emacs-lisp/lisp.el (narrow-to-defun-include-comments): New var.Phil Sainty2014-07-031-4/+20
| | | | | | (narrow-to-defun): New arg include-comments, defaulting to it. Fixes: debbugs:16328
* Merge from emacs-24; up to 2014-05-26T10:21:18Z!rgm@gnu.orgGlenn Morris2014-05-251-13/+23
|\
| * * lisp/emacs-lisp/lisp.el (end-of-defun): Ensure we move.Stefan Monnier2014-05-201-13/+23
| | | | | | | | Fixes: debbugs:17274
* | Make up-list and backward-up-list get out of more spotsDaniel Colascione2014-04-091-29/+87
|/
* * lisp/emacs-lisp/lisp.el (lisp--local-variables): Catch `end-of-file'Dmitry Gutov2014-02-261-2/+4
| | | | | | error from `read-from-string'. Fixes: debbugs:16850
* * emacs-lisp/lisp.el (up-list): Doc fix.Lars Ingebrigtsen2014-02-091-0/+10
| | | | Fixes: debbugs:15832
* Replace "Maintainer: FSF" with the emacs-devel mailing addressGlenn Morris2014-02-091-1/+1
|
* * lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Symbols don't startStefan Monnier2014-02-061-2/+11
| | | | | | | with a space. Limit the symbols considered to the ones that are bound or fbound (bug#16646). Fixes: debbugs:16664
* Define and use `completion-table-merge'Dmitry Gutov2014-02-061-1/+1
| | | | | | | | | * lisp/minibuffer.el (completion-table-merge): New function. * lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Use `completion-table-merge' instead of `completion-table-in-turn'. Fixes: debbugs:16604
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* * lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Complete var names forStefan Monnier2013-10-171-0/+11
| | | | let-bindings.
* * lisp/emacs-lisp/lisp.el (lisp--company-doc-buffer)Stefan Monnier2013-08-291-6/+67
| | | | | (lisp--company-doc-string, lisp--company-location): New functions. (lisp-completion-at-point): Use them to improve Company support.
* * emacs-lisp/lisp.el (forward-sexp, backward-sexp): Doc fixes.Glenn Morris2013-06-131-2/+4
|
* * lisp.el: Provide completion of locally bound variables in Elisp.Stefan Monnier2013-06-031-8/+96
| | | | | | | * lisp/emacs-lisp/lisp.el: Use lexical-binding. (lisp--local-variables-1, lisp--local-variables): New functions. (lisp--local-variables-completion-table): New var. (lisp-completion-at-point): Use it to provide completion of let-bound vars.
* * 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/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.
* Update copyright notices for 2013.Paul Eggert2013-01-011-1/+2
|
* `narrow-to-defun' fixupLennart Borgman2012-04-111-1/+15
| | | | | | | | * emacs-lisp/lisp.el (narrow-to-defun): `beginning-of-defun' goes to previous function when point is on the first character of a function. Take care of that in `narrow-to-defun'. Fixes: debbugs:6157
* * lisp/emacs-lisp/lisp.el (beginning-of-defun-raw): Don't call end-of-defunDmitry Gutov2012-02-231-3/+2
| | | | | | when it might call us back infinitely. Fixes: debbugs:10797
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Silence various byte-compiler warnings.Stefan Monnier2011-06-011-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * lisp/emacs-lisp/lisp.el (up-list): Fix forward movement.Stefan Monnier2011-05-231-6/+6
| | | | Fixes: debbugs:8708
* 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.
* | 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
| |
* | Merge changes from emacs-23 branch.Juanma Barranquero2010-10-121-43/+43
|\|
| * * lisp/emacs-lisp/lisp.el (lisp-completion-at-point):Stefan Monnier2010-10-091-27/+27
| | | | | | | | Use emacs-lisp-mode-syntax-table for the whole function.
* | * lisp/simple.el (blink-matching-open): Use syntax-class.Stefan Monnier2010-09-201-4/+8
| | | | | | | | * lisp/emacs-lisp/lisp.el (up-list): Don't do nothing silently.
* | Add "Package:" file headers to denote built-in packages.Chong Yidong2010-08-291-0/+1
| |
* | * lisp/emacs-lisp/lisp.el (up-list): Obey forward-sexp-function if set.Stefan Monnier2010-08-171-1/+7
| |
* | Merge from emacs-23Stefan Monnier2010-05-081-2/+3
|\|
| * * emacs-lisp/lisp.el (lisp-completion-at-point): Give it a doc string.Glenn Morris2010-04-201-1/+2
| |
* | * emacs-lisp/lisp.el (lisp-complete-symbol): Fail gracefully.Stefan Monnier2010-04-271-3/+6
| |
* | (lisp-completion-at-point): Try and handle errors.Stefan Monnier2010-04-211-10/+14
| |
* | (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.