Commit graph

4816 commits

Author SHA1 Message Date
Paul Eggert
a528a60f48 Spelling fixes 2016-01-25 08:09:09 -08:00
Artur Malabarba
ae555b6524 * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Redundant line
`special-mode' is already read-only.
2016-01-25 09:48:33 +00:00
Artur Malabarba
3ef1d9aea9 * lisp/emacs-lisp/ert.el (ert--results-move): Change error to user-error 2016-01-25 08:55:17 +00:00
Dmitry Gutov
62f4ed477e Update cl-defgeneric and cl-defmethod docstrings
* lisp/emacs-lisp/cl-generic.el: Remove outdated TODO item.
(cl-defgeneric): Rename BODY to DEFAULT-BODY.
(cl-defmethod): Mention that multiple dispatch arguments are
allowed.  Document supported types.  (Bug#22336)
2016-01-24 03:35:39 +03:00
John Wiegley
f7dc6d8b5b Further corrections to the pcase docstring 2016-01-22 09:55:52 -08:00
John Wiegley
fb7c5812fb Minor correction to pcase docstring 2016-01-21 23:28:50 -08:00
John Wiegley
4763c774c3 Write a new docstring for the pcase macro
* lisp/emacs-lisp/pcase.el (pcase): Write a new docstring.
2016-01-21 22:07:19 -08:00
Eli Zaretskii
e48f6dd3f7 Document 'define-inline'
* doc/lispref/functions.texi (Defining Functions): Document
'define-inline' and related macros.

* lisp/emacs-lisp/inline.el (inline-letevals): Doc fix.
2016-01-16 15:30:47 +02:00
Eli Zaretskii
30c24e49cb Document obsoletion of 'intangible' and 'point-entered/left'
* doc/lispref/text.texi (Special Properties): Document the new
properties 'cursor-intangible' and 'cursor-sensor-functions'.
Document the obsolete status of 'intangible', 'pointer-left',
and 'point-entered' properties, and of 'inhibit-point-motion-hooks'.
* doc/lispref/display.texi (Overlay Properties): Document that
'intangible' overlay property is obsolete.

* lisp/emacs-lisp/cursor-sensor.el (cursor-sensor-mode): Doc fix.
2016-01-13 21:14:22 +02:00
Glenn Morris
e85e0d5951 Add some missing version tags.
* lisp/electric.el (electric-quote-comment)
(electric-quote-string, electric-quote-paragraph):
* lisp/epg-config.el (epg-gpgconf-program):
* lisp/rect.el (rectangle-preview):
* lisp/emacs-lisp/check-declare.el (check-declare-ext-errors):
* lisp/emacs-lisp/package.el (package-selected-packages)
(package-hidden-regexps):
* lisp/erc/erc.el (erc-network-hide-list, erc-channel-hide-list):
* lisp/eshell/em-term.el (eshell-destroy-buffer-when-process-dies):
* lisp/gnus/mml-sec.el (mml1991-signers, mml2015-signers)
(mml-smime-signers, mml1991-encrypt-to-self, mml2015-encrypt-to-self)
(mml-smime-encrypt-to-self, mml2015-sign-with-sender)
(mml-smime-sign-with-sender, mml2015-always-trust)
(mml-secure-fail-when-key-problem, mml-secure-key-preferences):
* lisp/net/browse-url.el (browse-url-conkeror-new-window-is-buffer)
(browse-url-conkeror-arguments):
* lisp/net/newst-reader.el (newsticker-download-logos):
* lisp/progmodes/gud.el (gud-guiler-command-name):
* lisp/progmodes/prog-mode.el (prettify-symbols-unprettify-at-point):
* lisp/progmodes/project.el (project-vc):
* lisp/progmodes/python.el (python-indent-guess-indent-offset-verbose)
(python-shell-remote-exec-path, python-shell-first-prompt-hook)
(python-shell-completion-native-disabled-interpreters)
(python-shell-completion-native-enable)
(python-shell-completion-native-output-timeout)
(python-shell-completion-native-try-output-timeout):
* lisp/progmodes/xref.el (xref):
* lisp/term/screen.el (xterm-screen-extra-capabilities):
* lisp/term/xterm.el (xterm-max-cut-length):
Add missing version tags.
2016-01-12 20:06:49 -05:00
Leo Liu
ce4a052415 Add defvar-local to lisp-imenu-generic-expression
* lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Add
  defvar-local.
2016-01-07 11:00:52 +08:00
Leo Liu
a0121bc711 Revert commit b1e3d14845
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode):
  Don't declare (indent 1).
2016-01-07 09:57:55 +08:00
Glenn Morris
76fe2d526e * lisp/emacs-lisp/autoload.el (autoload-find-destination): Doc fix. 2016-01-06 20:36:46 -05:00
Glenn Morris
1ae088fba7 * lisp/emacs-lisp/autoload.el (autoload-find-destination):
Avoid specifying the length of a time object (it has not been "2"
for some time).
2016-01-06 19:56:47 -05:00
Leo Liu
723b8bf19d Fix regression in font-locking cl-assert and cl-check-type
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2): Fix
  el-errs-re.
2016-01-02 15:48:44 +08:00
Glenn Morris
372d00a981 ; Auto-commit of loaddefs files. 2016-01-01 07:23:33 -05:00
Paul Eggert
9c3dbabee3 Fix copyright years by hand
These are dates that admin/update-copyright did not update, or
updated incorrectly.
2016-01-01 01:38:07 -08:00
Paul Eggert
0e963201d0 Update copyright year to 2016
Run admin/update-copyright.
2016-01-01 01:34:24 -08:00
Mark Oteiza
9ee6ecb840 lisp/emacs-lisp/chart.el (chart-new-buffer): Move to silence byte compiler. 2015-12-31 13:33:35 -05:00
Mark Oteiza
526d80ce6f Port chart.el methods to cl-generic.
cl-call-next-method cannot be used inside EIEIO's defmethod.
* lisp/emacs-lisp/chart.el: Require cl-generic at compile time.
* lisp/emacs-lisp/chart.el (initialize-instance, chart-draw):
(chart-draw-title, chart-size-in-dir, chart-draw-axis):
(chart-axis-draw, chart-translate-xpos, chart-translate-ypos):
(chart-translate-namezone, chart-draw-data, chart-add-sequence):
(chart-trim, chart-sort): Use cl-defmethod instead of defmethod.
2015-12-31 13:31:04 -05:00
Shakthi Kannan
86312ffd93 Document support for ':documentation' in Lisp mode
* lisp/emacs-lisp/lisp-mode.el (lisp-string-in-doc-position-p)
(lisp-string-after-doc-keyword-p)
(lisp-font-lock-syntactic-face-function): Add doc strings.
2015-12-30 19:59:12 +02:00
Leo Liu
ba66b357f1 Add ert-deftest to lisp-mode.el
* lisp-mode.el (lisp-imenu-generic-expression,
  lisp-el-font-lock-keywords-1): Add ert-deftest.
2015-12-27 04:48:45 +08:00
Tom Tromey
ffb16999ef add some cl-* aliases to lisp-mode imenu
* (lisp-imenu-generic-expression): Add cl-define-compiler-macro,
cl-defgeneric, and cl-defmethod.
2015-12-22 16:56:53 -07:00
Artur Malabarba
95a5c23f74 * lisp/emacs-lisp/package.el (package-unpack): Security check
Check that we received the package we were offered.
2015-12-12 21:43:34 +00:00
Artur Malabarba
cb5c26128f * lisp/emacs-lisp/package.el (package--compile): Don't activate
`package-unpack' takes care of all activations now (other than
`package-initialize).  `package--compile' now only compiles.
2015-12-12 21:39:42 +00:00
Eli Zaretskii
c0bc613b24 Document new features of package.el
* doc/emacs/package.texi (Package Menu): Document the 'external'
status and the new menu commands.
(Package Installation): Document archive priorities.

* lisp/emacs-lisp/package.el (package-archive-priorities): Doc fix.
(package-menu-hide-low-priority): Doc fix.
2015-12-12 15:17:14 +02:00
Anders Lindgren
0284660f27 ; Restore selector `member' accidentally drooped in ert rewrite.
; `test/automated/ert.el' and `test/automated/ert-x.el' now run
; without errors.

* lisp/emacs-lisp/ert.el (ert--insert-human-readable-selector): Add
the `member' selector. This was accidentally dropped when code was
converted from `cl-typecase' (where `member' has a special meaning)
and `cl-ecase' (where it doesn't) to `pcase'.
2015-12-11 06:46:19 +01:00
Artur Malabarba
a1ad531168 * lisp/emacs-lisp/package.el (package--with-response-buffer):
Search for the blank-line in the right buffer.
2015-12-08 12:49:20 +00:00
Paul Eggert
9b0ffdbadd Spelling fixes
* doc/misc/calc.texi (Predefined Units): Use the bland modern
scientific style for spelling the units “ampere” and
“angstrom” rather than the older style “Ampere” and
“Ångstrom”.  The latter spelling was wrong anyway (it should
have been “Ångström”).
* lisp/emacs-lisp/ert.el (ert--explain-equal-rec):
Fix misspelling of ‘atom’ in code.
2015-12-07 08:38:05 -08:00
Artur Malabarba
aac3c8a38f * lisp/emacs-lisp/package.el: Don't install bad signatures (bug#22089)
(package--with-response-buffer): NOERROR and ERROR-FORM only
handle connection errors.
(bad-signature): New error type.
(package--check-signature-content): Use it.
(package--check-signature): Properly distinguish connection errors
from bad-signature errors.  Do the check for
`package-check-signature' `allow-unsigned' here instead of forcing
the callbacks to do it.  Add a new argument, UNWIND.
(package--download-one-archive, package-install-from-archive):
Update usage of `package--check-signature'.
2015-12-05 16:42:04 +00:00
Stefan Monnier
c2917b02bf * lisp/emacs-lisp/ert.el: Prefer pcase over cl-typecase
* lisp/emacs-lisp/ert.el (ert--should-error-handle-error)
(ert--explain-format-atom, ert--explain-equal-rec)
(ert--print-backtrace, ert-test-result-type-p, ert-select-tests)
(ert--insert-human-readable-selector): Prefer pcase over cl-typecase.
2015-12-04 12:59:21 -05:00
Stefan Monnier
3a9df7589a * lisp/emacs-lisp/cl-macs.el (character): Can't be negative
Fixes (bug#21701)
2015-12-04 08:28:39 -05:00
Glenn Morris
9bfcd87c04 ; Auto-commit of loaddefs files. 2015-12-04 07:20:41 -05:00
Stefan Monnier
7d611e25ff * lisp/emacs-lisp/smie.el (smie-next-sexp): Fix BOB "token" 2015-12-03 15:22:14 -05:00
Artur Malabarba
1e1aabbc09 Fix some file headers for the purpose of `package--builtins'
* lisp/emacs-lisp/cl-preloaded.el
* lisp/emacs-lisp/eieio-compat.el
* lisp/net/sasl-scram-rfc.el: Add a "Package:" header

* lisp/ielm.el: Fix summary line.
2015-12-03 16:13:57 +00:00
Artur Malabarba
50dce3c422 * lisp/emacs-lisp/package.el (package-unpack): Load before compiling
Reload any previously loaded package files before compiling
the package (also reload the same files after compiling).
This ensures that we have the most recent definitions during
compilation, and avoids generating bad elc files when a macro
changes and it is used in a different file from the one it's
defined in.
2015-12-03 16:13:57 +00:00
Artur Malabarba
67c6906a5f * lisp/emacs-lisp/package.el: Refactor package activation code
(package-activate): Move code that activates dependencies into
package-activate-1.
(package--load-files-for-activation): New function.
(package-activate-1): Add code for (optionally) activating
dependencies, and move file-loading code into
`package--load-files-for-activation'.
2015-12-03 16:13:57 +00:00
Stephen Leake
0af2c269b1 Fix bug#22069 in cl-generic.el
* lisp/emacs-lisp/cl-generic.el (cl-no-method): Remove %S; this string is
not run thru `format'.
2015-12-02 06:40:27 -06:00
Artur Malabarba
628d0063f8 * lisp/emacs-lisp/package.el: Update header comments 2015-12-01 15:11:33 +00:00
Paul Eggert
36649e0150 Spelling and grammar fixes 2015-11-29 21:52:17 -08:00
Alan Mackenzie
5cf012a3a8 Byte compiler: Catch missing argument to `funcall'. Fixes bug#22051.
* lisp/emacs-lisp/bytecomp.el (byte-compile-funcall): When there's no argument
to `funcall', (i) Output an error message; (ii) Generate code to signal a
`wrong-number-of-arguments' error.
2015-11-29 16:17:07 +00:00
Eli Zaretskii
165d6e3fdd Add ':version' tag to 'checkdoc-package-keywords-flag'
* lisp/emacs-lisp/checkdoc.el (checkdoc-package-keywords-flag):
Add a ':version' tag.
2015-11-27 12:32:44 +02:00
Alan Mackenzie
af40b7689a Byte Compiler: generate code to adjust stack count after call to `signal'.
Corrects change from earlier today.

* lisp/emacs-lisp/bytecomp.el (byte-compile-setq): supply the current value of
`byte-compile--for-effect' as argument to `byte-compile-form'.
2015-11-26 20:57:34 +00:00
Alan Mackenzie
5d93a89e80 Byte compiler: on setq with an odd number of arguments, generate a `signal'
* lisp/emacs-lisp/cconv.el (cconv-convert): Don't transform `setq' form when
it has an odd number of arguments, to allow bytecomp to handle the error.

* lisp/emacs-lisp/bytecomp.el (byte-compile-setq): In a `setq' form with an
odd number of arguments, generate a `signal' instead of the normal code.
2015-11-26 10:36:32 +00:00
Alan Mackenzie
acb96f2718 Squashed commit of the following:
commit e1ecf76585bef2eb87995f7a7f92cc12003a6f70
Author: Alan Mackenzie <acm@muc.de>
Date:   Tue Nov 24 16:50:09 2015 +0000

    Byte compile: minor amendments.

    * lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment):
    add a comment to explain the binding of variables around a subsidiary
    compilation.
    (byte-compile-new-defuns): Amend the doc string.

commit c537bfed1dda1593d218956ff00c6105a3ff0316
Author: Alan Mackenzie <acm@muc.de>
Date:   Sat Nov 21 18:43:57 2015 +0000

    Byte compiler: fix spurious warnings "might not be defined at runtime".

    Also initialize byte-compile-noruntime-functions between runs.

    * lisp/emacs-lisp/bytecomp.el (byte-compile-new-defuns): New variable.
    (byte-compile-initial-macro-environment): For eval-when-compile: bind
    byte-compile-unresolved-functions and byte-compile-new-defuns around
    byte-compile-top-level, to prevent spurious entries being made.
    (byte-compile-warn-about-unresolved-functions): Check whether function is
    in byte-compile-new-defuns before emitting a warning about it.
    (byte-compile-from-buffer): Initialize new variable and
    byte-compile-noruntime-functions to nil.
    (byte-compile-file-form-require): record all new functions defined by a
    `require' in byte-compile-new-defuns.
    (byte-compile-file-form-defmumble): record the new alias in
    byte-compile-new-defuns.
2015-11-24 17:37:49 +00:00
Alan Mackenzie
a67cc630db Byte compile: Output an error, not a warning, for odd number of args to setq
* lisp/emacs-lisp/bytecomp.el (byte-compile-setq): Amend.
2015-11-24 12:40:39 +00:00
Johan Bockgård
e395cafbc1 * lisp/emacs-lisp/nadvice.el (add-function): Fix debug spec.
(remove-function): Ditto. (Bug#20376)
2015-11-23 21:01:02 +01:00
Alan Mackenzie
b6bc4ab20c Signal an error when `setf' gets an odd number of arguments.
* lisp/emacs-lisp/gv.el (setf): Amend.
2015-11-23 17:13:55 +00:00
Stefan Monnier
9f1a5113e1 * lisp/emacs-lisp/smie.el (smie-backward-sexp): Handle BOB better. 2015-11-23 11:26:16 -05:00
Alan Mackenzie
5454708346 Expunge occurrences of `setq' with an odd number of arguments.
* lisp/apropos.el (apropos-documentation):
* lisp/obsolete/complete.el (PC-include-file-all-completions):
* lisp/progmodes/compile.el (compilation-goto-locus):
* lisp/vc/vc-cvs.el (vc-cvs-parse-root): (twice)
Insert missing nil at end of `setq' forms.

* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-autoload): Remove an
erroneous trailing variable name from a setq, thus allowing a compilation
properly to track functions not defined at runtime.
2015-11-23 14:49:23 +00:00