summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
...
| * ; Spelling fixesPaul Eggert2016-11-041-1/+1
| |
* | * lisp/emacs-lisp/pcase.el (pcase-dolist): Add a docstring.Mark Oteiza2016-11-041-0/+2
| |
* | Turn on lexical-binding in some more libsMark Oteiza2016-10-312-2/+2
| | | | | | | | | | | | | | | | * lisp/calendar/icalendar.el: * lisp/emacs-lisp/regexp-opt.el: * lisp/emacs-lisp/timer.el: * lisp/gnus/message.el: * lisp/hex-util.el: Turn on lexical-binding.
* | * lisp/emacs-lisp/cl-macs.el (cl-symbol-macrolet): Fix debug specJohan Bockgård2016-10-311-1/+1
| | | | | | | | (Bug#24733)
* | Fix avl-tree alias docstringsMark Oteiza2016-10-271-5/+7
| | | | | | | | | | | | * lisp/emacs-lisp/avl-tree.el (avl-tree--node-branch): (avl-tree-stack-p, avl-tree-create): (avl-tree-compare-function): Add calling convention to docstrings.
* | * lisp/emacs-lisp/seq.el (seq-random-elt): Fix docstring.Nicolas Petton2016-10-251-1/+1
| |
* | Add seq-random-elt to seq.elDamien Cassou2016-10-251-1/+8
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/seq.el (seq-random-elt): Add function to return a random element from it's sequence parameter. * test/lisp/emacs-lisp/seq-tests.el (test-seq-random-elt-take-all test-seq-random-elt-return-nil): Test the new function * doc/lispref/sequences.texi: Document the new function
* | * lisp/emacs-lisp/seq.el (seq-let): Fix debug spec (Bug#24738)Nicolas Petton2016-10-241-1/+1
| |
* | Merge from origin/emacs-25Paul Eggert2016-10-231-1/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8ad0d7d ; Fix quoting in etc/NEWS 6b9dee1 Change Tramp version to "2.2.13.25.2" 62f2684 * lisp/emacs-lisp/autoload.el (update-directory-autoloads): F... b2f32e4 Don't scan compiled module files for autoloads 9a758b4 Fix Bug#24698 baa8ba4 * lisp/subr.el (start-process): Doc fix. (Bug#24693) e535ca4 Fix display of vc-dir CVS file statuses in subdirectories 12da149 Update URL of MS-Windows optional DLLs 2331056 Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emac... a4285bc * lisp/simple.el (process-menu-mode, list-processes--refresh)... b0c447e * lisp/ibuf-ext.el (ibuffer-do-shell-command-file): Fix non-f... cf3c19b * lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (B... # Conflicts: # doc/misc/trampver.texi # etc/NEWS # lisp/net/tramp-sh.el # lisp/net/trampver.el
| * * 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)
* | New error file-missingPaul Eggert2016-10-211-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a recently-introduced bug in delete-directory, where the code assumes the C locale when determining whether a file-error corresponds to a missing file (Bug#24714). * doc/lispref/errors.texi (Standard Errors): * doc/lispref/files.texi (Changing Files): * etc/NEWS: Document this. * doc/lispref/loading.texi (How Programs Do Loading): Say "a file-error" rather than "the error file-error" since it might be a file-missing now. * lisp/emacs-lisp/bytecomp.el (byte-compile-file): * lisp/epa-file.el (epa-file--find-file-not-found-function): (epa-file-insert-file-contents, epa-file-write-region): * lisp/ffap.el (find-file-at-point, dired-at-point): * lisp/jka-compr.el (jka-compr-insert-file-contents) (jka-compr-insert-file-contents): * lisp/net/ange-ftp.el (ange-ftp-barf-if-not-directory) (ange-ftp-insert-file-contents, ange-ftp-copy-file-internal): * lisp/progmodes/etags.el (visit-tags-table): * lisp/url/url-handlers.el (url-copy-file): * src/fileio.c (report_file_errno): Signal file-missing if appropriate. * lisp/epa-file.el (epa-file-insert-file-contents): * lisp/jka-compr.el (jka-compr-insert-file-contents): Don't assume file-error is a leaf in the error hierarchy. * lisp/files.el (files--force): * lisp/gnus/nnmaildir.el (nnmaildir--enoent-p): * lisp/jka-compr.el (jka-compr-insert-file-contents): Use file-missing to detect whether the file is missing. * lisp/url/url-handlers.el (url-copy-file): Signal file-already-exists if appropriate. * src/fileio.c (syms_of_fileio): Define file-missing. 2016-10-18 Paul Eggert <eggert@cs.ucla.edu>
* | cl-seq: Remove max limit on input sequence lengthTino Calancha2016-10-201-31/+39
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-seq.el (cl-fill, cl-replace, cl-delete) (cl--position, cl-nsubstitute, cl-substitute, cl-remove): Remove limit on maximum length for the input sequence (#Bug24264). * test/lisp/emacs-lisp/cl-seq-tests.el: Update test expected result as passed.
* | cl-defstruct: Fix debug spec and check of slot optionsJohan Bockgård2016-10-191-6/+7
| | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Improve checking of slot option syntax. Fix debug spec. (Bug#24700)
* | If autoloads buffer is unchanged, mark it as such (bug#23692)Stefan Monnier2016-10-111-1/+2
| | | | | | | | | | * lisp/emacs-lisp/autoload.el (update-directory-autoloads): If autoloads buffer is unchanged, mark it as such (bug#23692).
* | Don’t consider nested let-alist formsPhilipp Stephani2016-10-081-0/+5
| | | | | | | | | | | | | | | | | | | | See Bug#24641. * lisp/emacs-lisp/let-alist.el (let-alist--deep-dot-search): Don’t consider symbols in nested ‘let-alist’ forms. * test/lisp/emacs-lisp/let-alist-tests.el (let-alist--deep-dot-search--nested): Add a unit test.
* | Autoload entry point testcover-startMark Oteiza2016-10-051-0/+1
| | | | | | | | | | * lisp/emacs-lisp/testcover.el: Add autoload cookie for testcover-start.
* | New user option 'debugger-stack-frame-as-list'Vasilij Schneidermann2016-09-302-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/eval.c (syms_of_eval) <debugger-stack-frame-as-list>: New variable. * lisp/cus-start.el (standard): Add debugger-stack-frame-as-list. * lisp/emacs-lisp/debug.el (debugger-setup-buffer): Adjust backtrace processing for the value of debugger-stack-frame-as-list. * lisp/emacs-lisp/edebug.el (edebug-backtrace): Adjust backtrace processing for the value of debugger-stack-frame-as-list. * doc/lispref/debugging.texi (Internals of Debugger): Document debugger-stack-frame-as-list. * etc/NEWS: Mention 'debugger-stack-frame-as-list'.
* | Merge from origin/emacs-25Paul Eggert2016-09-263-12/+38
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0ffc9ce Update admin/authors.el 0ad7410 Update Antinews in ELisp manual ea0f750 Fix comments on window height macros 0bbdeed Fix 'url-http-create-request' when cookies are used 0045998 Fix cross reference in frames.texi 1392894 ; * etc/DEBUG: Minor copyedits. 304a5c8 ; * etc/DEBUG: Improve documentation of getting control to GDB. 56bf7d7 Fix regexp-opt documentation (bug #17862) 803ad6f ; Fix documentation of seq-subseq ed4530d * lisp/emacs-lisp/gv.el (gv-ref): Fix example of PLACE in doc... 88ea396 ; Spelling fixes 17197d0 Fix tags-query-replace docstring 80a7f8b Clarify documentation of precision in format specs 88a5052 Improve and clarify documentation of subprocesses 89eb09f * etc/PROBLEMS: Mention gnutls-cli 3.5.3 (Bug#24247). # Conflicts: # etc/PROBLEMS # src/process.c
| * 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
| |
* | Improve accuracy of line/column numbers in byte compiler's warning messages.Alan Mackenzie2016-09-171-22/+26
| | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-set-symbol-position): ensure new value of byte-compile-last-position is not lower than old value. (byte-compile-function-warn): call byte-compile-set-symbol-position.
* | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix debug spec (Bug#24430).Johan Bockgård2016-09-141-10/+10
| |
* | * lisp/emacs-lisp/edebug.el (defun): Fix debug spec.Johan Bockgård2016-09-141-0/+1
| |
* | Stop calling ‘byte-compile-log-warning’Philipp Stephani2016-09-114-40/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For errors, use ‘byte-compile-report-error’ instead so that the error is registered and causes compilation to fail (Bug#24359). For warnings, use ‘byte-compile-warn’ instead so that ‘byte-compile-error-on-warn’ is honored (Bug#24360). * lisp/emacs-lisp/macroexp.el (macroexp--funcall-if-compiled) (macroexp--warn-and-return): Use ‘byte-compile-warn’ instead of ‘byte-compile-log-warning’. * lisp/emacs-lisp/bytecomp.el (byte-compile-form, byte-compile-unfold-bcf) (byte-compile-setq, byte-compile-funcall): Use ‘byte-compile-report-error’ instead of ‘byte-compile-log-warning’. (byte-compile-log-warning): Convert comment to documentation string. Explain that the function shouldn’t be called directly. (byte-compile-report-error): Add optional FILL argument. * lisp/emacs-lisp/cconv.el (cconv-convert, cconv--analyze-use) (cconv--analyze-function, cconv-analyze-form): Use ‘byte-compile-warn’ instead of ‘byte-compile-log-warning’. * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): Use ‘byte-compile-warn’ instead of ‘byte-compile-log-warning’. * lisp/subr.el (add-to-list): Use ‘byte-compile-report-error’ instead of ‘byte-compile-log-warning’. (do-after-load-evaluation): Use ‘byte-compile-warn’ instead of ‘byte-compile-log-warning’.
* | * lisp/emacs-lisp/ring.el: Use lexical-bindingSimen Heggestøyl2016-09-091-4/+5
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/ring.el (ring-elements): Don't use the RESULT argument of `dotimes' when the iteration variable isn't referred by it. (ring-member): Don't pass nil as the RESULT argument of `dotimes' since it's the default.
* | Don’t allocate char-table’s extra slots in regexp-out-charsetMichal Nazarewicz2016-09-091-1/+1
| | | | | | | | | | | | | | * lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Do not use 'case-table as charmap char-table’s property. The function has nothing to do with casing and in addition using 'case-table causes unnecessary extra slots to be allocated which ‘regexp-opt-charset’ does not use.
* | Fix uses of (call-interactively) in lisp/emacs-lisp/checkdoc.elRobert Cochran2016-09-031-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Passing the prefix argument as the 3rd argument to 'call-interactively' causes the prefix argument to be interpreted as events, which is not only wrong, but also causes a type error, as 'current-prefix-arg' can never be a vector as 'call-interactively' expects. 'call-interactively' automatically passes its prefix argument to the called function, so just do that, eliminating faulty behavior. * lisp/emacs-lisp/checkdoc.el (checkdoc-ispell): (checkdoc-ispell-current-buffer): (checkdoc-ispell-interactive): (checkdoc-ispell-message-text): (checkdoc-ispell-start): (checkdoc-ispell-continue): (checkdoc-ispell-comments): (checkdoc-ispell-defun): Do not pass 'current-prefix-arg' to 'call-interactively' as an event vector; merely allow it to propagate forward to the interactive call.
* | Improve error when installing non-package dirsNoam Postavsky2016-08-211-0/+2
| | | | | | | | | | * lisp/emacs-lisp/package.el (package-dir-info): Throw meaningful error when no file with package info is found (Bug #19851).
* | * lisp/emacs-lisp/map.el (map--dispatch): Fix docstringRobert Cochran2016-08-201-3/+3
| | | | | | | | | | | | The docstring referenced a non-existant parameter, as well as a parameter that has been renamed since the docstring was written. Fix both errors, fixing (Bug#24182).
* | cl-fill: Rename arguments to cl-seq and cl-itemTino Calancha2016-08-131-9/+9
| | | | | | | | | | * lisp/emacs-lisp/cl-seq.el (cl-fill): Rename arguments to 'cl-seq' and 'cl-item' as elsewhere.
* | cl-delete-duplicates: Parse :if to have cl-if boundTino Calancha2016-08-101-1/+2
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-seq.el (cl--delete-duplicates): We need also to parse keyword :if, otherwise cl-if is unbound. This reverts commit: 68fdbeb917b80e29e0b15506f18f7ed41d8ffdfd
* | cl-delete-duplicates: do not parse :if keywordTino Calancha2016-08-101-1/+1
| | | | | | | | | | * lisp/emacs-lisp/cl-seq.el (cl--delete-duplicates): Parse only the supported keywords.
* | * lisp/emacs-lisp/cconv.el: Fix λ-lifting in the presence of shadowingStefan Monnier2016-08-091-28/+48
| | | | | | | | | | | | | | | | | | Change the code which detects and circumvents the case where one of the variables used in λ-lifting is shadowed, so that it also works when the shadowing comes before the λ-lifted function (bug#24171). (cconv--remap-llv): New function, extracted from cconv-convert. (cconv-convert): Use it, but differently for `let' and `let*'.
* | Fix cl-assert with atomp FORM, non-nil SHOW-ARGSNoam Postavsky2016-08-061-1/+1
| | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl-assert): Don't require that FORM is a list when showing its (non-existent) arguments (Bug #18587).
* | Fix byte-compile of interactive closuresNoam Postavsky2016-08-061-2/+8
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile--reify-function): Put bindings after docstring and `interactive' form, if any (Bug #24122).
* | Fix quoted lambda warning from lexical-letNoam Postavsky2016-08-061-1/+1
| | | | | | | | | | * lisp/emacs-lisp/cl.el (cl--function-convert): Quote the inner lambda with `function', not `quote' (Bug #11357).
* | Merge from origin/emacs-25Paul Eggert2016-08-056-7/+52
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9ba51ed Document buffer-swap-text+save-excursion interaction 452aa94 Fix eieio vs cl-generic incompatibilities found in Rudel (bug... 248d5dd Include cl-generic in package--builtin-versions (bug#22817) 8f5a8b6 Improve timing in `tramp-test29-environment-variables' 05ba7a0 Add test for handling environment variables in Tramp e393d4f * lisp/emacs-lisp/package.el (describe-package-1) (package-st... 5e38887 ; * lisp/net/tramp.el: Fix 2010-10-04 comment typo. (Bug#23913) 90f2169 ; Spelling fixes 069fc05 Improve documentation of search functions 0a0144a Delete environment variables in Tramp when needed f624671 Add "New in Emacs 25" section to the FAQ 658daf9 Fix 'vertical-motion' in non-interactive sessions 686b520 Fix memory leak in imagemagick-types 4069b71 Update ELisp manual to match 'string-collate-equalp' doc string 1b2d6a6 Clarify docstring of find-feature-regexp aac62a6 Add details to cl-lib defining macros' docstrings d6aa4da Clarify doc string of 'save-buffer' 03bcf11 Un-confuse doc string of 'string-collate-equalp' c53135b Clarify documentation of 'mouse-on-link-p' # Conflicts: # lisp/emacs-lisp/eieio-core.el
| * 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).
* | * cl-generic.el: Fix problems introduced by new load-history formatStefan Monnier2016-08-021-7/+19
| | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-generic.el (cl--generic-load-hist-format): New function. (cl-generic-define-method, cl--generic-describe): Use it. (cl--generic-search-method): Adjust for new format. * lisp/progmodes/elisp-mode.el (elisp--xref-find-definitions): * test/lisp/progmodes/elisp-mode-tests.el: Use cl--generic-load-hist-format rather than hard-coding cl-generic's internal format.
* | * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads):Glenn Morris2016-08-011-1/+3
| | | | | | | | Respect autoload-timestamps for "actual autoloads are elsewhere" case.
* | Move read-multiple-choice to subr-x.elLars Ingebrigtsen2016-07-221-0/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/faces.el (read-multiple-choice-face): Fix doc string. * lisp/emacs-lisp/subr-x.el (read-multiple-choice): Move here from subr.el. * lisp/gnus/message.el (subr-x): Ditto. * lisp/net/nsm.el: Require subr-x for read-multiple-choice. read-multiple-choice doesn't need to be in the dumped Emacs, so move it to a less central file.
* | Better documentation for cl-reduce (bug#24014)Nicolas Petton2016-07-181-0/+10
| | | | | | | | * lisp/emacs-lisp/cl-seq.el (cl-reduce): Explain what reducing means.
* | ; Revert "Replace eldoc-documentation-function with a hook"Dmitry Gutov2016-07-181-32/+18
| | | | | | | | | | | | | | This reverts commit 5811404f0b86c9fa92c3e0b22505a9bb05f04145. It doesn't have the consensus, as evidenced by http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00138.html