summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Resurrect display-line-number-mode in client framesEli Zaretskii2019-06-072-3/+5
| | | | | | | * lisp/linum.el (linum-on): Mention bug#35726 in a comment. * lisp/display-line-numbers.el (display-line-numbers--turn-on): Don't check for daemon. (Bug#35726)
* * lisp/term/w32-win.el ([noname]): Bind to 'ignore'. (Bug#36083)Eli Zaretskii2019-06-061-0/+9
|
* Disable byte-compile-cond-use-jump-table (Bug#35770)Noam Postavsky2019-06-011-2/+2
| | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-cond-use-jump-table): Set to nil by default. Don't merge to master, the bug is already fixed there.
* Allow macros autoloaded as functions during bytecomp (Bug#36022)Noam Postavsky2019-06-011-1/+3
| | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-callargs-warn): Don't pass symbols which don't have a known definition to byte-compile--function-signature, it fails to compile code which previously compiled successfully (for example, gnus.el until 2019-06-01 "* lisp/gnus/gnus.el: Mark autoloaded macros as such" which autoloads some macros as if they were functions).
* * lisp/gnus/gnus.el: Mark autoloaded macros as such.Glenn Morris2019-06-011-5/+5
| | | | This avoids a build failure.
* Speed up redisplay of HELLOEli Zaretskii2019-06-011-0/+1
| | | | | | | | | * etc/HELLO: Set 'inhibit-compacting-font-caches' non-nil locally. (Bug#36032) * lisp/files.el: Add 'inhibit-compacting-font-caches' to the list of built-in variables for which we set up 'safe-local-variable' properties.
* * lisp/emacs-lisp/package.el: Obey buffer-file-coding-system (bug#35739)Stefan Monnier2019-05-311-9/+27
| | | | | | | | | | | | | | | | `url-insert-file-contents` saves in buffer-file-coding-system the coding-system used to decode the contents. Preserve this as the contents is moved from buffer to string to buffer, and use it when saving the contents to file, so as to try and better preserve the original byte sequence. (package--buffer-string, package--cs): New functions. (package--check-signature): Encode `string` if a coding-system was specified in buffer-file-coding-system. (package--download-one-archive, package-install-from-archive): Obey and preserve the buffer-file-coding-system if specified. Do not merge.
* Warn about wrong number of args for subrs (Bug#35767)Noam Postavsky2019-05-301-1/+1
| | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-callargs-warn): Don't assume byte-compile-fdefinition will return non-nil. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-warn-wrong-args) (bytecomp-warn-wrong-args-subr): New tests.
* Use plain symbols for eieio type descriptors (Bug#29220)Noam Postavsky2019-05-302-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | Since Emacs 26, eieio objects use a class record (with circular references) as the type descriptor of the object record. This causes problems when reading back an object from a string, because the class record is not `eq' to the canonical one (which means that read objects don't satisfy the foo-p predicate). * lisp/emacs-lisp/eieio.el (make-instance): As a (partial) fix, set the record's type descriptor to a plain symbol for the type descriptor when eieio-backward-compatibility is non-nil (the default). * lisp/emacs-lisp/eieio-core.el (eieio--object-class): Call eieio--class-object on the type tag when eieio-backward-compatibility is non-nil. (eieio-object-p): Use eieio--object-class instead of eieio--object-class-tag. * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el (eieio-test-persist-hash-and-vector) (eieio-test-persist-interior-lists): Make into functions. (eieio-persist-hash-and-vector-backward-compatibility) (eieio-persist-hash-and-vector-no-backward-compatibility) (eieio-test-persist-interior-lists-backward-compatibility) (eieio-test-persist-interior-lists-no-backward-compatibility): New tests which call them, eieio-backward-compatibility let-bound.
* Fix docstring of bookmark-get-bookmarkStefan Kangas2019-05-301-2/+3
| | | | | * lisp/bookmark.el (bookmark-get-bookmark): Document optional argument NOERROR. (bug#20148)
* Avoid infloop in read-multiple-choice (Bug#32257)Noam Postavsky2019-05-261-2/+7
| | | | | | | | * lisp/emacs-lisp/rmc.el (read-multiple-choice): When `read-char' signals an error "Non-character input-event", call `read-event' to take the non-character event out of the queue. Don't merge to master, we just use `read-event' directly there, rather than this solution which relies a particular error message.
* Fix customization type of recentf-max-saved-itemsDario Gjorgjevski2019-05-231-1/+2
| | | | | | | Change the customization type of recentf-max-saved-items to include nil, as it is an allowed value (Bug#35771). * lisp/recentf.el (recentf-max-saved-items): Change the customization type in the defcustom.
* Add option to disable help completion autoloading (Bug#28607)Noam Postavsky2019-05-211-3/+15
| | | | | | | | | * lisp/help-fns.el (help-enable-completion-auto-load): New option. (help--symbol-completion-table): Consult it. * doc/emacs/building.texi (Lisp Libraries): Document it. * etc/NEWS: Announce it. * doc/lispref/loading.texi (Autoload by Prefix): New section. (Autoload): Reference it.
* Remove repeated function call in picture.elMauro Aranda2019-05-201-1/+0
| | | | | * lisp/textmodes/picture.el (picture-mode-map): Remove repeated define-key call. (Bug#35772)
* ; Fix mm-destroy-parts docstring typoBasil L. Contovounesios2019-05-201-1/+1
| | | | | * lisp/gnus/mm-decode.el (mm-destroy-parts): Fix typo in docstring copy-pasted from mm-remove-parts.
* Backport: Fix name of gnus-summary-sort-by-mark(s)Eric Abrahamsen2019-05-171-1/+1
| | | | | | | * lisp/gnus/gnus-sum.el (gnus-summary-sort-by-marks): Needs the "s", according to docs and keymap both. (bug#35765) (cherry picked from commit 13248f7444630508cfc3b78a07e8d96613af11c8)
* Let dir locals for more specific modes override those from lessNeil Roberts2019-05-121-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | The list of dir local variables to apply is now sorted by the number of parent modes of the mode used as the key in the association list. That way when the variables are applied in order the variables from more specific modes will override those from less specific modes. If there are directory entries in the list then they are sorted in order of name length. The list of modes for that dir is then recursively sorted with the same mechanism. That way variables tied to a particular subdirectory override those in in a parent directory. Previously the behaviour didn’t seem to be well defined anyway and was dependent on the order they appeared in the file. However this order was changed in version 26.1 and it probably also depended on the number of dir-local files that are merged. Bug#33400 * lisp/files.el (dir-locals-get-sort-score, dir-locals-sort-variables) (dir-locals-read-from-dir): Sort the dir locals so that more precise modes and directory-specific entries have override lesser ones. * doc/emacs/custom.texi (Directory Variables): Document the priority.
* ; Fix smtpmail-stream-type docstringNoam Postavsky2019-05-091-3/+3
| | | | | * lisp/mail/smtpmail.el (smtpmail-stream-type): Remove redundant docstring verbiage.
* Recognize single quote attribute values in nxml and sgml (Bug#35381)Noam Postavsky2019-05-091-19/+15
| | | | | | | | | * lisp/textmodes/sgml-mode.el (sgml-specials): Add single quote. (sgml-syntax-propertize-rules): Handle single quote. * test/lisp/nxml/nxml-mode-tests.el (nxml-mode-font-lock-quotes): New test. * test/lisp/textmodes/sgml-mode-tests.el (sgml-delete-tag-bug-8203-should-not-delete-apostrophe): Now passes.
* Disable extra display of 
 in nxml-mode (Bug#32897)Noam Postavsky2019-05-091-1/+3
| | | | | * lisp/nxml/nxml-mode.el (nxml-char-ref-display-extra): Don't put display for the newline, it makes the indentation look wrong.
* Fix nxml-get-inside (Bug#32003)Noam Postavsky2019-05-091-22/+20
| | | | | | | | | | | | The change from 2016-01-16 "lisp/nxml: Use syntax-tables for comments" made nxml-get-inside return non-nil for any string or comment, including attribute strings. This caused incorrect and therefore indentation. * lisp/nxml/nxml-rap.el: Update commentary to reflect changes to nxml-mode parsing. (nxml-get-inside): Only return non-nil when inside comments and generic strings, not normal quote-delimited strings. * test/lisp/nxml/nxml-mode-tests.el: New tests.
* Fix positioning client buffer as instructed by emacsclientEli Zaretskii2019-05-081-1/+8
| | | | | | | * lisp/server.el (server-switch-buffer): Let-bind switch-to-buffer-preserve-window-point to nil when switching to the client buffer, when the client requested a specific position. (Bug#35602)
* Fix incorrect cloning of eieio-instance-inheritor objects (Bug#34840)Vitalie Spinu2019-05-081-2/+10
| | | | | | * lisp/emacs-lisp/eieio-base.el (clone): Unbound slots of eieio-instance-inheritor objects as documented in the docs string and implemented in the original eieio implementation.
* Fix cloning of eieio-named objects (Bug#22840)Vitalie Spinu2019-05-071-9/+11
| | | | | * lisp/emacs-lisp/eieio-base.el (clone): Correctly set the name of the cloned objects from eieio-named instances.
* Fix ibuffer-unmark-backward synopsis (bug#35572)Basil L. Contovounesios2019-05-071-12/+11
| | | | | * lisp/ibuffer.el (ibuffer-mode): Fix synopsis of ibuffer-unmark-backward along with other minor copy-edits.
* ; Auto-commit of loaddefs files.Glenn Morris2019-05-011-6/+18
|
* Be more careful about indent-sexp going over eol (Bug#35286)Noam Postavsky2019-04-221-8/+14
| | | | | | | | * lisp/emacs-lisp/lisp-mode.el (indent-sexp): Only go over multiple sexps if the end of line is within a sexp. * test/lisp/emacs-lisp/lisp-mode-tests.el (indent-sexp-stop-before-eol-comment) (indent-sexp-stop-before-eol-non-lisp): New tests.
* Backport: Avoid using obsolete indent-relative-maybeBasil L. Contovounesios2019-04-223-8/+10
| | | | | | | | | | | | * lisp/electric.el (electric-indent-functions-without-reindent): * lisp/indent.el (indent-according-to-mode): Check for indent-relative-first-indent-point in addition to its obsolete alias indent-relative-maybe. * lisp/obsolete/vi.el (vi-com-map): Use indent-relative-first-indent-point in place of its obsolete alias indent-relative-maybe. (cherry picked from commit 0e468a620458fecd003c396050aa6deb722982c1)
* Avoid false positives and false negatives of Info-quoted faceMauro Aranda2019-04-211-1/+2
| | | | | | | * lisp/info.el (Info-mode-font-lock-keywords): Modify the regexp, for matching single quotes of opening single quote and closing single quote, and avoid matching text followed by a curly quote when it is not quoting. (Bug#35202)
* Add a package: line to c-submit-bug-report.Glenn Morris2019-04-201-1/+19
| | | | | * lisp/progmodes/cc-mode.el (c-submit-bug-report): Add a Package: line for mail clients that do not support X- headers.
* Document insert-image-file's return value (Bug#32978)Noam Postavsky2019-04-191-2/+3
| | | | * lisp/image-file.el (insert-image-file): Document return value.
* Autoload cua-toggle-rectangle-mark (Bug#34947)Braun Gábor2019-04-191-0/+1
| | | | | | | | | * lisp/emulation/cua-base.el (cua-toggle-rectangle-mark): Autoload it. Library cua-base.el binds cua-toggle-rectangle-mark to a key in the :set function in (defcustom cua-rectangle-mark-key ...), so it should ensure that the command is defined. Copyright-paperwork-exempt: yes
* Tell xclip not to expect job-control under eshell (Bug#35257)Noam Postavsky2019-04-191-1/+5
| | | | | | * lisp/eshell/esh-proc.el (eshell-needs-pipe): Add "xclip" and other programs that xclip.el (in GNU ELPA) calls with `process-connection-type' bound to nil.
* Fix off-by-one-link error in image--set-propertyBasil L. Contovounesios2019-04-181-2/+2
| | | | | | | | * lisp/image.el (image--set-property): Ensure new value is set even in the unlikely case that the plist is empty. Fix off-by-one-link error when deleting a property. (bug#35285) * test/lisp/image-tests.el: New file. (image--set-property): New test.
* * lisp/progmodes/python.el: Be more careful about temp file removalStefan Monnier2019-04-141-9/+10
| | | | | (python-shell-prompt-detect): Use unwind-protect to try and not leave file behind in case of error.
* Backport: * lisp/frame.el (frame--size-history): Fix infloop. (Bug#35272)Alexander Gramiak2019-04-141-2/+4
|
* Downcase charsetRobert Pluim2019-04-141-1/+1
| | | | | | | | RFC 2046 specifies that the charset parameter is case-insensitive. * lisp/gnus/gnus-icalendar.el (gnus-icalendar-with-decoded-handle): Downcase charset. Suggested by Christophe TROESTLER <Christophe.TROESTLER@umons.ac.be>. (Bug#35265).
* Backport: Fix comment-empty-lines docstring (bug#35152)Basil L. Contovounesios2019-04-111-4/+4
| | | | | | | * lisp/newcomment.el (comment-empty-lines): Consistently use US commas in docstring. Fix indentation of and typo in custom :type. (cherry picked from commit 690c678fb6c1fb5b2f828f9bb90782bd0b01c399)
* Backport: Update documentation for indent-relative functionsAlex Branham2019-04-111-2/+3
| | | | | | | | | | | | | * lisp/indent.el (indent-relative): Document what happens when there is no previous nonblank line. * doc/lispref/text.texi (Relative Indent): Document indent-relative-first-indent-point instead of obsolete indent-relative-maybe. Fix documentation of which argument from 'indent-relative' is used. Bug#34858 (cherry picked from commit 10cd65878c741d2a22a1f2c36c54fcad4e516f72)
* Note that choose-completion-string-functions funcs take four argsEric Abrahamsen2019-04-091-0/+3
| | | | | | * lisp/simple.el (choose-completion-string-functions): Functions in this list actually need to accept four arguments, though the fourth should be ignored.
* Clarify the TESTFN argument to `alist-get'Mattias Engdegård2019-04-091-2/+2
| | | | | | | | * lisp/subr.el (alist-get): Rephrase the initial text to clarify the meaning of the TESTFN argument. It's an equality predicate, not a look-up function (Bug#35206). (cherry picked from commit c81465580fe262f28ce47502c00f4afcbe3b8f8d)
* Fix doc strings of 'vc-version-diff' and 'vc-version-ediff'Eli Zaretskii2019-04-061-3/+14
| | | | | * lisp/vc/vc.el (vc-version-diff, vc-version-ediff): Describe arguments in the doc strings. (Bug#35019)
* Improve commentary in frame.elEli Zaretskii2019-04-061-0/+8
| | | | | * lisp/frame.el: Improve commentary for display-* functions. (Bug#35058)
* Fix typo in a doc stringMauro Aranda2019-04-061-1/+1
| | | | | * lisp/autorevert.el (global-auto-revert-mode): Fix a typo. (Bug#35165)
* ; * lisp/ldefs-boot.el: Update.Nicolas Petton2019-03-201-3/+3
|
* Fix url-copy-file arglistBasil L. Contovounesios2019-03-191-5/+8
| | | | | | * lisp/url/url-handlers.el: Silence byte-compiler. (url-copy-file): Add 6th argument following change to copy-file in 2012-12-16T19:22:27+01:00!romain@orebokech.com. (bug#4410)
* Fix downloading updates for packages with non-ASCII descriptionsEli Zaretskii2019-03-191-2/+7
| | | | | | | * lisp/emacs-lisp/package.el (package--download-one-archive): Make sure archive contents are written using UTF-8 encoding. (Bug#34909) (list-packages): Set buffer's encoding to UTF-8.
* Don't clobber 'comint-input-autoexpand' in 'read-shell-command'Eli Zaretskii2019-03-151-1/+1
| | | | | * lisp/shell.el (shell-completion-vars): Set only the buffer-local value of 'comint-input-autoexpand'. (Bug#34815)
* * lisp/progmodes/cc-defs.el: Update c-version to 5.33.2 for Emacs 26.2Alan Mackenzie2019-03-101-1/+1
|
* Avoid errors in Auto Revert modeEli Zaretskii2019-03-091-1/+2
| | | | | | * lisp/autorevert.el (auto-revert-buffers): Cancel auto-revert-timer only if it is non-nil. This avoids errors on first invocation of Auto-Revert mode.