Commit graph

4872 commits

Author SHA1 Message Date
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
Nicolas Petton
3a13472ade Fix map-put and map-delete for alists (Bug#23105)
* lisp/emacs-lisp/map.el (map-put): Do not bind the evaluated place
expression to a new symbol.
* test/lisp/emacs-lisp/map-tests.el: Add a regression test.
2016-03-25 15:11:23 +01:00
Leo Liu
76ef52267c Fix (args-out-of-range 1) error in cursor-sensor--detect
* lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect): Don't
  hard-code (point-min) as 1 which fails in narrowed buffers.
2016-03-21 18:26:40 +08:00
Stefan Monnier
a1ef911f31 * lisp/emacs-lisp/smie.el (smie-indent-keyword): Don't burp in strings
(bug#22960).
2016-03-16 22:55:56 -04:00
Dmitry Gutov
e51b27ec2c Remove the highlighting support for quoting 'like this' inside Lisp docstrings
Remove the highlighting support for quoting 'like this' inside
Lisp docstrings.  This part of
c4151ebe15 seems to have been
unintentional, considering substitute-command-keys gives wrong
output for such usage.
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2)
(lisp-cl-font-lock-keywords-2): Do not highlight text between two
straight quotes as symbol.
2016-03-06 02:41:25 +02:00
Leo Liu
b6d6304179 Comment on last change to define-derived-mode
* lisp/emacs-lisp/derived.el (define-derived-mode): Add comment.
2016-03-01 11:51:34 +08:00
Leo Liu
098d47bcf7 * lisp/emacs-lisp/derived.el (define-derived-mode): Revert indent change. 2016-02-27 13:48:43 +08:00
Lars Ingebrigtsen
e01c72f8f4 Fix white space in last checkin 2016-02-24 13:55:29 +11:00
Dima Kogan
370eb67604 Make `insert-pair' always leave the cursor where documented
* lisp/emacs-lisp/lisp.el (insert-pair): The docstring of
insert-pair states that after insertion, the point ends up
after the opening character. This was not true if the pair was
inserted to surround a region (bug#16949).
2016-02-24 13:54:17 +11:00
Christopher Wellons
7bc4820ffd Make setf for frame-height/width work again
* lisp/emacs-lisp/cl-lib.el (frame-height): Make setf for
frame-height/width work again (bug#21979).
2016-02-23 15:45:08 +11:00
Nicolas Richard
6620944f83 (cl-union): Do not ignore :test argument when lists are equal.
* cl-seq.el (cl-union): Do not ignore :test argument when lists are equal.

* test/automated/cl-seq-tests.el: New file (bug#22729).
2016-02-23 14:38:30 +11:00
Daiki Ueno
d0f3b18fa9 Naming fix for consistency
* lisp/epg-config.el (epg-find-configuration): Rename from
`epg-configuration-find' to be consistent with other epg-* functions.
Change all callers.
2016-02-21 07:57:17 +09:00
Daiki Ueno
14aec913ac Take advantage of new GnuPG version check function
* lisp/emacs-lisp/package.el (epg-configuration-find): Declare.
(package-refresh-contents): Use `epg-configuration-find' to check if EPG
is usable.
2016-02-17 16:50:43 +09:00
Glenn Morris
5f91cf95b0 Avoid loading cl-lib for term/xterm.elc, eg in -Q -nw. (Bug#22669)
* lisp/emacs-lisp/cl-generic.el (cl--generic-dispatchers):
Prefill with relevant elements for term/xterm.
2016-02-16 11:49:05 -05:00