Commit graph

4885 commits

Author SHA1 Message Date
Noam Postavsky
db436e93ca Don't call debug on failed cl-assert
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.
2016-11-04 21:40:16 -04:00
Paul Eggert
acae275b27 ; Spelling fixes 2016-11-04 14:50:59 -07:00
Eli Zaretskii
62f268414c * lisp/emacs-lisp/autoload.el (update-directory-autoloads): Fix last change. 2016-10-19 10:59:05 +03:00
Eli Zaretskii
b2f32e4c9a Don't scan compiled module files for autoloads
* lisp/emacs-lisp/autoload.el (update-directory-autoloads): Ignore
compiled module files.  Make sure the extension really ends the
file name.
2016-10-19 10:42:45 +03:00
Tino Calancha
dc1e0ac761 Run find-function-after-hook after finding a symbol
* 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 f069d85450)
2016-09-23 16:36:24 +03:00
immerrr
56bf7d7e27 Fix regexp-opt documentation (bug #17862)
* lisp/emacs-lisp/regexp-opt.el (regexp-opt):
* doc/lispref/searching.texi (Regexp Functions): Update PAREN doc.
2016-09-03 23:50:42 -04:00
Clément Pit--Claudel
803ad6f7e7 ; Fix documentation of seq-subseq 2016-09-02 09:53:31 -04:00
Nicolas Richard
ed4530dbc9 * lisp/emacs-lisp/gv.el (gv-ref): Fix example of PLACE in docstring. 2016-08-31 23:51:27 +02:00
Stefan Monnier
452aa949bc Fix eieio vs cl-generic incompatibilities found in Rudel (bug#23947)
* 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.
2016-07-14 15:05:49 -04:00
Stefan Monnier
248d5dd13c Include cl-generic in package--builtin-versions (bug#22817)
* lisp/emacs-lisp/cl-generic.el (package--builtin-versions):
Add ourselves manually.  Don't merge since there's a better fix on master.
2016-07-14 14:56:38 -04:00
Glenn Morris
e393d4f4ce * lisp/emacs-lisp/package.el (describe-package-1)
(package-status-external): Fix face references.  (Bug#23927)
2016-07-13 08:54:57 -07:00
Noam Postavsky
1b2d6a6f68 Clarify docstring of find-feature-regexp
* lisp/emacs-lisp/find-func.el (find-feature-regexp): Explain that `%s'
is optional (Bug #23520).
2016-07-09 17:45:48 -04:00
Noam Postavsky
aac62a67dd Add details to cl-lib defining macros' docstrings
* lisp/emacs-lisp/cl-macs.el (cl-defun, cl-defmacro): Add terse summary
of supported arglist forms (Bug #22462).
2016-07-09 10:58:55 -04:00
Glenn Morris
f526191719 * lisp/emacs-lisp/nadvice.el (advice--make-docstring):
Avoid mangling autoloads with unspecified arguments.  (Bug#21299)
2016-06-13 18:18:34 -04:00
Stefan Monnier
4b2d77d8db * lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Fix (bug#19704)
Don't rewrite (funcall 'f ...) to (f ...).
2016-06-11 17:38:11 -04:00
Tino Calancha
a3f7ae80b1 * lisp/emacs-lisp/cl-macs.el (cl-loop): Doc fix re "by". 2016-06-07 13:48:11 -04:00
Glenn Morris
07bd97217b * lisp/emacs-lisp/lisp-mode.el (lisp--mode-syntax-table):
Fix typo.  (Bug#23654)
2016-05-31 14:50:52 -04:00
Glenn Morris
71c152e2af * lisp/emacs-lisp/find-func.el (find-function-library):
Update for symbol-function no longer erroring.  (Bug#23626)
2016-05-26 19:50:54 -04:00
Paul Eggert
18a9bc1152 Do not trash symlinks to init file
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).
2016-05-22 17:30:34 -07:00
Artur Malabarba
421e3c4b2f * lisp/emacs-lisp/package.el (package-refresh-contents):
Don't change the value of `package-check-signature'.
(package-check-signature): Use `epg-find-configuration'
instead of `executable-find'.
2016-05-20 16:22:13 -03:00
Artur Malabarba
ebc3a94e27 * lisp/emacs-lisp/package.el: Fix free variable warnings.
(package--with-response-buffer): Replace two usages of
`macroexp-let2*' with `let'.
2016-05-18 20:09:24 -03:00
Artur Malabarba
6e7129551c * lisp/emacs-lisp/package.el (package--with-response-buffer):
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'.
2016-05-18 18:07:50 -03:00
Paul Eggert
6de0715f54 Properly reject malformed or empty package sigs
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
2016-05-13 18:23:37 -07:00
Glenn Morris
66cd4d8bd0 * lisp/emacs-lisp/find-func.el (find-feature-regexp)
(find-alias-regexp): Fix :version.
2016-05-12 10:35:27 -07:00
Dmitry Gutov
4c5a00b09f Make package-install-from-buffer not move point
* lisp/emacs-lisp/package.el (package-install-from-buffer):
Use save-excursion here (bug#22616).
2016-05-12 01:29:03 +03:00
Dmitry Gutov
9596ea1534 ; Revert "* emacs-lisp/lisp-mnt.el (lm-header): save-excursion"
This reverts commit bf3f6a961f.

(Bug#22616)
2016-05-12 01:18:38 +03:00
Dmitry Gutov
f79c352335 Redo the fix for bug#21839
* 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).
2016-05-12 00:48:37 +03:00
Glenn Morris
fc8a4e0ad4 ; Auto-commit of loaddefs files. 2016-05-10 07:18:12 -04:00
Dmitry Gutov
963541a654 Publicize cl--generic-all-functions
* 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).
2016-05-10 01:16:06 +03:00
Paul Eggert
c695fb37d3 ; Spelling fixes 2016-05-01 18:01:39 -07:00
Lars Ingebrigtsen
350792e356 global-eldoc-mode doc fix
* lisp/emacs-lisp/eldoc.el (global-eldoc-mode): Be more
specific about what "applicable" means (bug#23071).

(cherry picked from commit 25e95b5dd8)
2016-05-01 19:27:17 +02:00
Lars Ingebrigtsen
8c66ebfcf0 Further define-obsolete-* doc fixups
* lisp/emacs-lisp/byte-run.el (define-obsolete-face-alias):
Fix up last change.
(define-obsolete-variable-alias): Ditto.

(cherry picked from commit 28e9f4390d)
2016-05-01 19:27:16 +02:00
Lars Ingebrigtsen
25b4cf33dd Describe WHEN in all the define-obsolete- macros
* 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 247c388f16)
2016-05-01 19:27:16 +02:00
Lars Ingebrigtsen
bbda22c640 add-timeout doc fix
* lisp/emacs-lisp/timer.el (add-timeout): Mention the return
value (bug#20181).

(cherry picked from commit 921b40476f)
2016-05-01 19:27:14 +02:00
Lars Ingebrigtsen
8f1e784f19 Explictly explain that package-initialize loads the packages
* 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 619e0aedb2)
2016-05-01 19:27:12 +02:00
Lars Ingebrigtsen
a73de71b84 Doc fix for insert-pair-alist
* lisp/emacs-lisp/lisp.el (insert-pair-alist): Say what
COMMAND-CHAR is (bug#18809).

(cherry picked from commit 2824c587e9)
2016-05-01 19:27:12 +02:00
Lars Ingebrigtsen
df6cee9456 Wrap the auto-generated doc string
* 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 323b696649)
2016-05-01 19:27:09 +02:00
Lars Ingebrigtsen
0a14d84150 Clarify some doc strings
* lisp/emacs-lisp/syntax.el (syntax-propertize-via-font-lock):
Clarify doc string (bug#8693).
(syntax-propertize): Clarify doc string.

(cherry picked from commit ad3ef417f3)
2016-05-01 19:27:07 +02:00
Leo Liu
b755d988b4 Autoload cursor-sensor-inhibit (bug#23406)
* lisp/emacs-lisp/cursor-sensor.el (cursor-sensor-inhibit): Autoload.
* lisp/isearch.el (isearch-update): Remove boundp check.
2016-04-30 23:36:47 +08:00
Andreas Schwab
ffe701cb07 Remove \= from format string (bug#18190)
* lisp/emacs-lisp/eieio.el (defclass): Remove \= from format
string.
2016-04-30 12:19:15 +02:00
Glenn Morris
935715a5cd * lisp/emacs-lisp/autoload.el (update-directory-autoloads):
Future-proof against non-time-values.

; Do not merge to master.
2016-04-25 17:28:00 -04:00
Eli Zaretskii
645f4ef13e Revert "Use 'grep-find-program' in check-declare.el"
This reverts commit 33bef6e90b.
2016-04-21 05:06:26 +03:00
Eli Zaretskii
33bef6e90b Use 'grep-find-program' in check-declare.el
* lisp/emacs-lisp/check-declare.el (check-declare-directory): Use
'grep-find-program', not 'find-program'.
2016-04-16 14:54:03 +03:00
Phillip Lord
50455754b5 Revert "Prevent bootstrap autoload backup files"
This reverts commit c23c965bb9.
2016-04-12 18:00:50 +01:00
Phillip Lord
c23c965bb9 Prevent bootstrap autoload backup files
* 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)
2016-04-12 12:45:33 +01:00
Leo Liu
bb30fa951c Fix last change on 2016-01-02
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2): Move
  `cl-errs-re' before `lisp--el-match-keyword'; don't use `prepend'
  which highlights `cl-errs-re' even in comments or strings.
2016-04-11 20:20:13 +08:00
Glenn Morris
fb0b531e9e * lisp/emacs-lisp/package.el: Change from a few days ago needs seq.
; Warning 'foo' is not known to be defined is always a bug.
2016-04-07 16:26:55 -04:00
Glenn Morris
b7d8abd7f0 * lisp/emacs-lisp/seq.el: Load cl-lib, not cl-extra.
; The various components of cl-lib are an internal implementation detail.
2016-04-07 16:24:25 -04:00
Artur Malabarba
a05fb21d73 * lisp/emacs-lisp/package.el (package-install-selected-packages):
Skip unavailable packages.
2016-04-04 12:31:19 -03:00
Mark Oteiza
a3daa34336 Teach M-x disassemble a default argument.
Adopts default argument in the same way as `describe-function'.
* lisp/emacs-lisp/disass.el (disassemble): Default to function at point,
if any.
2016-03-31 19:34:05 -04:00