summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/emacs-lisp/package.el (package--with-response-buffer):Artur Malabarba2015-11-181-0/+1
| | | | | Ensure we're at the start of the buffer before searching for the end of headers.
* Fix docstring quoting problems with ‘ '’Paul Eggert2015-11-1710-23/+24
| | | | | | | | | | | | | Problem reported by Artur Malabarba in: http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01513.html Most of these fixes are to documentation; many involve fixing longstanding quoting glitches that are independent of the recent substitute-command-keys changes. The changes to code are: * lisp/cedet/mode-local.el (mode-local-augment-function-help) (describe-mode-local-overload): Substitute docstrings before displaying them. * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Quote the generated docstring for later substitution.
* pcase.el: Fix edebugging of backquoted cons patternsJohan Bockgård2015-11-161-1/+3
| | | | | * lisp/emacs-lisp/pcase.el (pcase-QPAT): Fix edebugging of backquoted cons patterns. (Bug#21920)
* * lisp/emacs-lisp/package.el (package--with-response-buffer): Missing requireArtur Malabarba2015-11-161-0/+1
|
* * lisp/emacs-lisp/nadvice.el (add-function): Escape quoteArtur Malabarba2015-11-161-1/+1
|
* Backport: * lisp/emacs-lisp/package.el: Fix a decoding issue.Artur Malabarba2015-11-151-8/+8
| | | | | | | | | | | * lisp/url/url-handlers.el (url-insert-file-contents): Move some code to `url-insert-buffer-contents'. (url-insert-buffer-contents): New function (package--with-response-buffer): Use `url-insert-buffer-contents'. The previous code had some issues with decoding. Refactoring that function allows us to use the decoding from url-handlers while still treating both sync and async requests the same.
* Backport: * lisp/emacs-lisp/package.el: Refactor -with-work-buffer-async.Artur Malabarba2015-11-141-82/+76
| | | | | | | | | | | | | | | | | | | | | (package--with-work-buffer-async): Reimplement as `package--with-response-buffer'. (package--with-work-buffer): Mark obsolete. (package--with-response-buffer): New macro. This is a more self contained and less contrived version of `package--with-work-buffer-async'. It uses keyword arguments, doesn't have async on the name, doesn't fallback on `package--with-work-buffer', and has _much_ simpler error handling. On master, this macro will soon be part of another library (either standalone or inside url.el), which is why this commit is not to be merged back. (package--check-signature, package--download-one-archive) (package-install-from-archive, describe-package-1): Use it. (package--download-and-read-archives): Let `package--download-one-archive' take care of calling `package--update-downloads-in-progress'.
* Rename seq-p and map-p to seqp and mappNicolas Petton2015-11-112-8/+8
| | | | | | | * lisp/emacs-lisp/seq.el (seqp): New name. * lisp/emacs-lisp/map.el (mapp): New name. * doc/lispref/sequences.texi: Update the documentation for seqp. * test/automated/map-tests.el: Update the tests for mapp.
* Spelling fixesPaul Eggert2015-11-101-1/+1
| | | | | * lisp/net/soap-inspect.el (soap-inspect-xs-simple-type): Fix misspelling in output.
* * lisp/emacs-lisp/map.el (map-merge-with): New functionArtur Malabarba2015-11-101-5/+20
| | | | * test/automated/map-tests.el (test-map-merge-with): New test
* Merge branch 'project-next'Dmitry Gutov2015-11-101-1/+1
|\
| * Rename "search path" to "library roots"Dmitry Gutov2015-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-seq.el (cl-set-difference): Retain the order of the elements from CL-LIST1. * test/automated/cl-lib-tests.el (cl-lib-test-set-functions): Update WRT to the above change. * lisp/progmodes/project.el (project-search-path-function): Rename to project-library-roots-function, update the documentation and references. (project-search-path): Likewise, to project-library-roots. (project-roots): Clarify documentation. (project-vc-search-path): Likewise, to project-vc-library-roots. (project-library-roots): In addition to the renames, thread the results through file-name-as-directory. (project-prune-directories): Accept a variable number of arguments. Rename to project-combine-directories. (project-subtract-directories): New function. * lisp/progmodes/elisp-mode.el (elisp--xref-find-references): Append project-roots and project-library-roots together. * lisp/progmodes/etags.el (etags--xref-find-references): Ditto.
* | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix a bugArtur Malabarba2015-11-071-1/+1
|/ | | | | | | The defsubst was being created as: (cl-defsubst name (args) ("DOC") ...) * test/automated/cl-lib-tests.el (cl-lib-struct-constructors): Add test
* ; Auto-commit of loaddefs files.Glenn Morris2015-11-051-1/+1
|
* * lisp/emacs-lisp/eieio-compat.el: Typo caught by testsStefan Monnier2015-11-041-1/+1
| | | | | | (eieio--generic-static-object-generalizer): Fix typo. * test/automated/eieio-tests.el: Byte-compile it again. It looks like the underlying cause of bug#17852 was fixed in the mean time.
* * lisp/emacs-lisp/pcase.el (pcase): Tweak docstring.Michael Heerdegen2015-11-031-4/+4
|
* Avoid errors in redisplay--pre-redisplay-functionsEli Zaretskii2015-10-311-1/+1
| | | | | * lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect): Don't use 'bobp', instead compare window-point with 1. (Bug#21730)
* * lisp/emacs-lisp/cl-generic.el: Add (major-mode MODE) contextStefan Monnier2015-10-291-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cl--generic-derived-specializers): New function. (cl--generic-derived-generalizer): New generalizer. (cl-generic-generalizers): New specializer (derived-mode MODE). (cl--generic-split-args): Apply the rewriter, if any. (cl-generic-define-context-rewriter): New macro. (major-mode): Use it to define a new context-rewriter, so we can write `(major-mode MODE)' instead of `(major-mode (derived-mode MODE))'. * lisp/frame.el (window-system): New context-rewriter so we can write `(window-system VAL)' instead of (window-system (eql VAL)). (cl--generic-split-args): Apply the rewriter, if any. (frame-creation-function): Use the new syntax. * lisp/term/x-win.el (window-system-initialization) (handle-args-function, frame-creation-function) (gui-backend-set-selection, gui-backend-selection-owner-p) (gui-backend-selection-exists-p, gui-backend-get-selection): * lisp/term/w32-win.el (window-system-initialization) (handle-args-function, frame-creation-function) (gui-backend-set-selection, gui-backend-get-selection) (gui-backend-selection-owner-p, gui-backend-selection-exists-p): * lisp/term/pc-win.el (gui-backend-get-selection) (gui-backend-selection-exists-p, gui-backend-selection-owner-p) (gui-backend-set-selection, window-system-initialization) (frame-creation-function, handle-args-function): * lisp/term/ns-win.el (window-system-initialization) (handle-args-function, frame-creation-function) (gui-backend-set-selection, gui-backend-selection-exists-p) (gui-backend-get-selection): * lisp/startup.el (handle-args-function): * lisp/term/xterm.el (gui-backend-get-selection) (gui-backend-set-selection): Use the new syntax.
* * lisp/emacs-lisp/smie.el: Use `declare' for `pure'Stefan Monnier2015-10-291-4/+4
| | | | | (smie-precs->prec2, smie-merge-prec2s, smie-bnf->prec2, smie-prec2->grammar): Use `declare'.
* * lisp/emacs-lisp/cl-generic.el: Accomodate future changesStefan Monnier2015-10-293-77/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | (cl--generic-generalizer): Add `name' field. (cl-generic-make-generalizer): Add corresponding `name' argument. (cl-generic-define-generalizer): New macro. (cl--generic-head-generalizer, cl--generic-eql-generalizer) (cl--generic-struct-generalizer, cl--generic-typeof-generalizer) (cl--generic-t-generalizer): Use it. (cl-generic-ensure-function): Add `noerror' argument. (cl-generic-define): Use it so we don't follow aliases. (cl-generic-define-method): Preserve pre-existing ordering of methods. (cl--generic-arg-specializer): New function. (cl--generic-cache-miss): Use it. (cl-generic-generalizers): Only fset a temporary definition during bootstrap. (cl--generic-struct-tag, cl--generic-struct-specializers): Allow extra arguments. * lisp/emacs-lisp/eieio-compat.el (eieio--generic-static-symbol-generalizer) (eieio--generic-static-object-generalizer): Use cl-generic-define-generalizer. (eieio--generic-static-symbol-specializers): Allow extra arguments. * lisp/emacs-lisp/eieio-core.el (eieio--generic-generalizer) (eieio--generic-subclass-generalizer): Use cl-generic-define-generalizer. (eieio--generic-subclass-specializers): Allow extra arguments.
* * lisp/emacs-lisp/bytecomp.el (compile-defun): Add defvars in scope.Stefan Monnier2015-10-291-1/+4
|
* (internal--syntax-propertize): Save match-data here (bug#21766)Stefan Monnier2015-10-281-6/+5
| | | | | * lisp/emacs-lisp/syntax.el (internal--syntax-propertize): Save match-data. * lisp/simple.el (delete-trailing-whitespace): Undo last change.
* * lisp/emacs-lisp/macroexp.el: Tweak macroexp-if optimizationsStefan Monnier2015-10-281-13/+25
| | | | | | | (macroexp-unprogn): Make sure we never return an empty list. (macroexp-if): Remove unused (and unsafe) optimization. Optimize (if A T (if B T E)) into (if (or A B) T E) instead, which does occur occasionally.
* * lisp/emacs-lisp/seq.el (seq-mapn): New functionArtur Malabarba2015-10-281-1/+16
| | | | * doc/lispref/sequences.texi (Sequence Functions): Document seq-mapn
* * lisp/emacs-lisp/thunk.el (thunk-delay): Fix the macro.Nicolas Petton2015-10-281-2/+2
|
* * lisp/emacs-lisp/map.el: Better docstrings.Nicolas Petton2015-10-261-11/+12
|
* * lisp/emacs-lisp/seq.el: Better docstrings.Nicolas Petton2015-10-261-26/+31
|
* * lisp/emacs-lisp/seq.el: Rename all seq argumentss to sequence.Nicolas Petton2015-10-261-153/+153
|
* * lisp/emacs-lisp/ert.el: Print results without newline escapingPhillip Lord2015-10-261-2/+3
|
* * lisp/emacs-lisp/thunk.el: Better documentation.Nicolas Petton2015-10-231-4/+15
|
* `load-path' should contain only directory namesStephen Leake2015-10-231-1/+2
| | | | | * lisp/emacs-lisp/package.el (package-autoload-ensure-default-file): `load-path' should contain only directory names
* New library thunk.elNicolas Petton2015-10-231-0/+63
| | | | | | | | thunk.el is extracted from stream.el in ELPA, with additional tests. * lisp/emacs-lisp/thunk.el: New file. * test/automated/thunk-tests.el: New file. * etc/NEWS: Add information about thunk.el
* (/ N) now returns the reciprocal of NPaul Eggert2015-10-202-3/+3
| | | | | | | | | | | | | | | This is more compatible with Common Lisp and XEmacs (Bug#21690). See: http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg01053.html * lisp/color.el (color-hue-to-rgb, color-hsl-to-rgb) (color-xyz-to-srgb, color-xyz-to-lab): * lisp/emacs-lisp/cl-extra.el (cl-float-limits): * lisp/net/shr-color.el (shr-color-hue-to-rgb) (shr-color-hsl-to-rgb-fractions): Exploit the change to simplify the code a bit. * lisp/emacs-lisp/bytecomp.el (byte-compile-quo): Don’t complain about single-argument calls to ‘/’. * src/data.c (arith_driver, float_arith_driver): Implement the change.
* New function seq-positionNicolas Petton2015-10-201-2/+13
| | | | | | * lisp/emacs-lisp/seq.el (seq-position): New function. * test/automated/seq-tests.el: New tests for seq-position. * doc/lispref/sequences.texi: Add documentation for `seq-position'.
* * lisp/emacs-lisp/eldoc.el: Add back-to-indentation to the command listMark Oteiza2015-10-171-0/+1
|
* * emacs-lisp/package.el: Reload archive-contents if priorities changeArtur Malabarba2015-10-161-0/+10
| | | | | | | (package--old-archive-priorities): New variable. (package-read-all-archive-contents, package-menu--refresh): Use it to decide when the `package-archive-contents' needs to be read again.
* Fix typos in docstringsNicolas Petton2015-10-142-2/+2
| | | | | | * lisp/emacs-lisp/map.el: * lisp/emacs-lisp/seq.el: Fix typos in the docstrings of the pcase macros.
* Better docstrings in seq.el and map.elNicolas Petton2015-10-142-7/+14
| | | | | * lisp/emacs-lisp/map.el: * lisp/emacs-lisp/seq.el: Improve the docstring for the pcase patterns.
* * lisp/emacs-lisp/tabulated-list.el (tabulated-list-sort):Artur Malabarba2015-10-071-1/+3
| | | | Check if column can be sorted before trying. (Bug#21639)
* lisp/emacs-lisp/package.el (package-install): Fix name errorAaron Ecay2015-10-061-10/+10
| | | | | * lisp/emacs-lisp/package.el (package-install): Fix error when pkg is not a package-desc object. Also clarify documentation. (Bug#21625)
* Fix a few problems with directed quotesPaul Eggert2015-10-012-2/+2
| | | | | | | | | | This is in response to a problem report by Kaushal Modi in: http://bugs.gnu.org/21588#25 * lisp/cedet/mode-local.el (describe-mode-local-overload): * lisp/emacs-lisp/bytecomp.el (byte-compile-fix-header): * lisp/info-xref.el (info-xref-check-all-custom): * lisp/mail/emacsbug.el (report-emacs-bug-hook): Prefer directed to undirected single quotes in diagnostics.
* * lisp/emacs-lisp/lisp-mode.el (let-when-compile): Work like let*Stefan Monnier2015-09-291-8/+12
|
* ; Remove extraneous "coding: utf-8" specifications in Elisp filesDmitry Gutov2015-09-297-17/+4
|
* Better documentation for seq-someNicolas Petton2015-09-281-2/+1
| | | | | | | * doc/lispref/sequences.texi: * lisp/emacs-lisp/seq.el: Update the documentation of seq-some to guarantee that the returned value is the first non-nil value that resulted from applying the predicate.
* Resurrect edebug-set-initial-mode, repurposing it to set the global mode.Alan Mackenzie2015-09-251-38/+28
| | | | | | | | | | | | | | | | lisp/emacs-lisp/edebug.el (edebug-initial-mode-alist): Uncomment, and amend to match current modes and functions. (edebug-set-initial-mode): Uncomment and change from setting a defun's `edebug-initial-mode''s property to setting the variable `edebug-initial-mode'. (top level): Create new binding C-x C-a C-m for `edebug-set-initial-mode'. doc/lispref/edebug.texi (Edebug Execution Modes): document `edebug-set-initial-mode' and its new key binding. (Edebug Options): Mention the new command in the pertinent place. etc/NEWS: Write entry for this change.
* Fix recent bootstrap problemsStefan Monnier2015-09-241-0/+2
| | | | | | * src/syntax.c (parse_sexp_propertize): Fix last fix. * lisp/nxml/nxml-mode.el (nxml-comment-quote-nested): Fix paren typo. * lisp/emacs-lisp/lisp-mode.el: Require cl-lib for cl-progv.
* Move let-when-compile to lisp-mode.elOleh Krehel2015-09-231-0/+13
| | | | | This fixes the bootstrapping problem of `let-when-compile' using `cl-progv' while being in subr.el (i.e. before cl stuff was loaded).
* * prolog.el: Fix indentation of empty lineStefan Monnier2015-09-221-1/+16
| | | | | | | | | | | | | | | | | * lisp/emacs-lisp/smie.el (smie-rules-function): Document new `empty-line-token' element. (smie-indent-empty-line): New function. (smie-indent-functions): Add it. * lisp/progmodes/prolog.el (prolog-smie-rules): Fix :list-intro behavior and use the new `empty-line-token' element (bug#21526). (prolog-mode-variables): Fix comment-start-skip setting to match comment-start. * test/indent/prolog.prolog: Add nested indentation tests. * lisp/newcomment.el (comment-normalize-vars): Fix default value of comment-start-skip not to misuse submatch 1.
* Better docstring and parameter name for seq-findNicolas Petton2015-09-211-6/+6
| | | | | | | | * lisp/emacs-lisp/seq.el (seq-find): Improve the docstring and rename the parameter `sentinel' to `default'. * doc/lispref/sequences.texi (Sequence Functions): Update the documentation for `seq-find' accordingly.
* * lisp/emacs-lisp/syntax.el (syntax-begin-function): Make obsoleteStefan Monnier2015-09-201-0/+1
|