summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/emacs-lisp/inline.el: Fix apply-conversion (bug#25280)Stefan Monnier2016-12-281-3/+3
| | | | | (inline--dont-quote): Quote the function with #' when passing it to `apply'. Cherry picked from commit e6161f648903d821865b9610b3b6aa0f82a5dcb7.
* Define struct predicate before acccesorsNoam Postavsky2016-12-101-8/+8
| | | | | | | | | | | The accessor functions use the predicate function, which causes problems when reloading after unload-feature: the compiler-macro property is still present on the predicate symbol, and the compiler fails to find the definition when trying to inline it into the accessor function (Bug#25088). * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Move predicate definition before field accessor definitions.
* * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Fix docstringPhilipp Stephani2016-12-071-3/+4
| | | | | so that it matches the actual implementation. See https://lists.gnu.org/archive/html/help-gnu-emacs/2016-04/msg00071.html
* Don't assume window-point and point are the sameNoam Postavsky2016-12-061-1/+1
| | | | | | | | | | | The function `cursor-sensor--detect' calls `bobp' to decide whether to check properties at (1- (window-point)). However, (window-point) may be at beginning of buffer, even if (point) is not. In this case an `args-out-of-range' error will be signaled (Bug#25104). * lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect): Check the value of (window-point) against (point-min), rather than (bobp) to decide if (1- (window-point)) is accessible.
* Do call debugger on failed cl-assertNoam Postavsky2016-11-081-3/+5
| | | | | | | | | | | | | "Don't call debug on failed cl-assert..." removed the call to `debug' in cl--assertion-failed because `debug' calls `kill-emacs' in batch mode, thus messing up ert test runs. However, calling the debugger is useful because it allows catching failed assertions even inside `condition-case' calls. The problem with ert can be avoided by calling `debugger' instead of `debug' directly, since ert installs its own debugger while running tests. * lisp/emacs-lisp/cl-preloaded.el (cl--assertion-failed): Call `debugger' if `debug-on-error' is non-nil.
* Don't call debug on failed cl-assertNoam Postavsky2016-11-041-5/+3
| | | | | | | | | | Doing this causes problems when running ert tests, for instance (Bug#24778). The call to `debug` when `debug-on-error' is non-nil was introduced in 2015-02-14 "* lisp/emacs-lisp/cl*.el: Use define-inline and move some code...". * lisp/emacs-lisp/cl-preloaded.el (cl--assertion-failed): Don't call `debug' directly.
* ; Spelling fixesPaul Eggert2016-11-041-1/+1
|
* * lisp/emacs-lisp/autoload.el (update-directory-autoloads): Fix last change.Eli Zaretskii2016-10-191-2/+1
|
* Don't scan compiled module files for autoloadsEli Zaretskii2016-10-191-1/+7
| | | | | | * lisp/emacs-lisp/autoload.el (update-directory-autoloads): Ignore compiled module files. Make sure the extension really ends the file name.
* Run find-function-after-hook after finding a symbolTino Calancha2016-09-231-1/+5
| | | | | | | | | | | * lisp/emacs-lisp/find-func.el (find-library): * lisp/help-mode.el (help-function-def, help-variable-def): Run `find-function-after-hook' inside the help-function of the buttons (bug#22583). * etc/NEWS: Mention the change. This is a backport from master. (cherry picked from commit f069d854508946bcc03e4c77ceb430748e3ab6d7)
* Fix regexp-opt documentation (bug #17862)immerrr2016-09-031-10/+36
| | | | | * lisp/emacs-lisp/regexp-opt.el (regexp-opt): * doc/lispref/searching.texi (Regexp Functions): Update PAREN doc.
* ; Fix documentation of seq-subseqClément Pit--Claudel2016-09-021-1/+1
|
* * lisp/emacs-lisp/gv.el (gv-ref): Fix example of PLACE in docstring.Nicolas Richard2016-08-311-1/+1
|
* Fix eieio vs cl-generic incompatibilities found in Rudel (bug#23947)Stefan Monnier2016-07-143-3/+13
| | | | | | | | * lisp/emacs-lisp/cl-generic.el (cl-generic-apply): New function. * lisp/emacs-lisp/eieio-compat.el (eieio--defmethod): Fix incorrect mapping between cl-no-applicable-method and EIEIO's no-applicable-method. * lisp/emacs-lisp/eieio-core.el (eieio--class-precedence-c3): `class' is not a symbol but a class object.
* Include cl-generic in package--builtin-versions (bug#22817)Stefan Monnier2016-07-141-0/+5
| | | | | * lisp/emacs-lisp/cl-generic.el (package--builtin-versions): Add ourselves manually. Don't merge since there's a better fix on master.
* * lisp/emacs-lisp/package.el (describe-package-1)Glenn Morris2016-07-131-4/+5
| | | | (package-status-external): Fix face references. (Bug#23927)
* Clarify docstring of find-feature-regexpNoam Postavsky2016-07-091-1/+1
| | | | | * lisp/emacs-lisp/find-func.el (find-feature-regexp): Explain that `%s' is optional (Bug #23520).
* Add details to cl-lib defining macros' docstringsNoam Postavsky2016-07-091-0/+29
| | | | | * lisp/emacs-lisp/cl-macs.el (cl-defun, cl-defmacro): Add terse summary of supported arglist forms (Bug #22462).
* * lisp/emacs-lisp/nadvice.el (advice--make-docstring):Glenn Morris2016-06-131-1/+4
| | | | Avoid mangling autoloads with unspecified arguments. (Bug#21299)
* * lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Fix (bug#19704)Stefan Monnier2016-06-111-1/+1
| | | | Don't rewrite (funcall 'f ...) to (f ...).
* * lisp/emacs-lisp/cl-macs.el (cl-loop): Doc fix re "by".Tino Calancha2016-06-071-2/+2
|
* * lisp/emacs-lisp/lisp-mode.el (lisp--mode-syntax-table):Glenn Morris2016-05-311-1/+1
| | | | Fix typo. (Bug#23654)
* * lisp/emacs-lisp/find-func.el (find-function-library):Glenn Morris2016-05-261-2/+4
| | | | Update for symbol-function no longer erroring. (Bug#23626)
* Do not trash symlinks to init filePaul Eggert2016-05-221-2/+10
| | | | | | | | | | If the user’s init file is a symbolic link, do not break the link when initializing the package system. Problem reported by Jackson Hamilton (Bug#23050). * lisp/emacs-lisp/package.el (package--ensure-init-file): Bind find-file-visit-truename when visiting the init file, and save and restore the buffer name the way cus-edit does in a similar situation (Bug#454).
* * lisp/emacs-lisp/package.el (package-refresh-contents):Artur Malabarba2016-05-201-10/+4
| | | | | | Don't change the value of `package-check-signature'. (package-check-signature): Use `epg-find-configuration' instead of `executable-find'.
* * lisp/emacs-lisp/package.el: Fix free variable warnings.Artur Malabarba2016-05-181-37/+37
| | | | | (package--with-response-buffer): Replace two usages of `macroexp-let2*' with `let'.
* * lisp/emacs-lisp/package.el (package--with-response-buffer):Artur Malabarba2016-05-181-16/+21
| | | | | | | Fix some macro locals leaking into body. (Bug#22440) * test/automated/package-test.el (package-test-signed): Manually check all possible values of `package-check-signature'.
* Properly reject malformed or empty package sigsPaul Eggert2016-05-131-1/+1
| | | | | | | Problem report and fix by Lizzie Dixon (Bug#23513). * lisp/emacs-lisp/package.el (package--check-signature-content): Report an error if no good signatures OR if a fatal error. Not AND. Copyright-paperwork-exempt: yes
* * lisp/emacs-lisp/find-func.el (find-feature-regexp)Glenn Morris2016-05-121-2/+2
| | | | (find-alias-regexp): Fix :version.
* Make package-install-from-buffer not move pointDmitry Gutov2016-05-121-1/+2
| | | | | * lisp/emacs-lisp/package.el (package-install-from-buffer): Use save-excursion here (bug#22616).
* ; Revert "* emacs-lisp/lisp-mnt.el (lm-header): save-excursion"Dmitry Gutov2016-05-121-11/+10
| | | | | | This reverts commit bf3f6a961f378f35a292c41c0bfbdae88ee1b1b9. (Bug#22616)
* Redo the fix for bug#21839Dmitry Gutov2016-05-121-1/+2
| | | | | | | | * lisp/help.el (help-add-fundoc-usage): Undo the previous change. (help--make-usage-docstring): Escape newlines when printing. * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Ditto (bug#21839).
* ; Auto-commit of loaddefs files.Glenn Morris2016-05-101-1/+1
|
* Publicize cl--generic-all-functionsDmitry Gutov2016-05-103-3/+3
| | | | | | | | | * lisp/emacs-lisp/cl-generic.el (cl-generic-all-functions): Rename from cl--generic-all-functions. Update both callers. * lisp/cedet/semantic/db-el.el (semanticdb-find-tags-external-children-of-type-method): And use it here (bug#23042).
* ; Spelling fixesPaul Eggert2016-05-011-1/+1
|
* global-eldoc-mode doc fixLars Ingebrigtsen2016-05-011-2/+10
| | | | | | | * lisp/emacs-lisp/eldoc.el (global-eldoc-mode): Be more specific about what "applicable" means (bug#23071). (cherry picked from commit 25e95b5dd8cd92e03788e589bf99a4b399f03114)
* Further define-obsolete-* doc fixupsLars Ingebrigtsen2016-05-011-2/+2
| | | | | | | | * lisp/emacs-lisp/byte-run.el (define-obsolete-face-alias): Fix up last change. (define-obsolete-variable-alias): Ditto. (cherry picked from commit 28e9f4390d8391c2c36be4ef515cf3a2c679a5a5)
* Describe WHEN in all the define-obsolete- macrosLars Ingebrigtsen2016-05-011-2/+8
| | | | | | | | | * lisp/emacs-lisp/byte-run.el (define-obsolete-face-alias): Say more verbosely what WHEN is (bug#21225). (define-obsolete-function-alias): Describe the WHEN parameter. (define-obsolete-variable-alias): Ditto. (cherry picked from commit 247c388f160581d207e41ca5926990bbf69d4a0f)
* add-timeout doc fixLars Ingebrigtsen2016-05-011-0/+2
| | | | | | | * lisp/emacs-lisp/timer.el (add-timeout): Mention the return value (bug#20181). (cherry picked from commit 921b40476f597c84d7c34aa289cd43caeb389c4a)
* Explictly explain that package-initialize loads the packagesLars Ingebrigtsen2016-05-011-1/+4
| | | | | | | | | * lisp/emacs-lisp/package.el (package-initialize): Be explicit in saying that `package-initialize' obviates adjusting the path or requiring the packages, as this is a question that apparently comes up now and then (bug#18829). (cherry picked from commit 619e0aedb2f3dbfe6821ac34e2d25b4e5c181117)
* Doc fix for insert-pair-alistLars Ingebrigtsen2016-05-011-1/+5
| | | | | | | * lisp/emacs-lisp/lisp.el (insert-pair-alist): Say what COMMAND-CHAR is (bug#18809). (cherry picked from commit 2824c587e9749a8f350f1d3dddd65176b4561dcb)
* Wrap the auto-generated doc stringLars Ingebrigtsen2016-05-011-1/+2
| | | | | | | | * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Wrap a string to make it less likely that we get overlong lines (bug#17999). (cherry picked from commit 323b69664914d687fd4b48593479cea223dfbcb4)
* Clarify some doc stringsLars Ingebrigtsen2016-05-011-3/+4
| | | | | | | | * lisp/emacs-lisp/syntax.el (syntax-propertize-via-font-lock): Clarify doc string (bug#8693). (syntax-propertize): Clarify doc string. (cherry picked from commit ad3ef417f3c40f086de9c547d6272e5685595e42)
* Autoload cursor-sensor-inhibit (bug#23406)Leo Liu2016-04-301-0/+1
| | | | | * lisp/emacs-lisp/cursor-sensor.el (cursor-sensor-inhibit): Autoload. * lisp/isearch.el (isearch-update): Remove boundp check.
* Remove \= from format string (bug#18190)Andreas Schwab2016-04-301-1/+1
| | | | | * lisp/emacs-lisp/eieio.el (defclass): Remove \= from format string.
* * lisp/emacs-lisp/autoload.el (update-directory-autoloads):Glenn Morris2016-04-251-9/+11
| | | | | | Future-proof against non-time-values. ; Do not merge to master.
* Revert "Use 'grep-find-program' in check-declare.el"Eli Zaretskii2016-04-211-1/+1
| | | | This reverts commit 33bef6e90bfd20609d044b8a076c1570c627684a.
* Use 'grep-find-program' in check-declare.elEli Zaretskii2016-04-161-1/+1
| | | | | * lisp/emacs-lisp/check-declare.el (check-declare-directory): Use 'grep-find-program', not 'find-program'.
* Revert "Prevent bootstrap autoload backup files"Phillip Lord2016-04-121-28/+14
| | | | This reverts commit c23c965bb9d0a4bcc1b6158833ff99aa20fd53e9.
* Prevent bootstrap autoload backup filesPhillip Lord2016-04-121-14/+28
| | | | | | | | | | * lisp/emacs-lisp/autoload (autoload-find-generated-file): Suppress backups in newly created file. (autoload-ensure-default-file): Function split into two. (autoload-ensure-file-writeable): New function from split. (Bug#23203)