summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove obsolete epg functionsLars Ingebrigtsen2019-05-172-57/+0
| | | | | * lisp/epg.el (epg-start-sign-keys, epg-sign-keys): Remove functions declared obsolete since Emacs 23.1.
* Declare rectangle functions in mouse.el to avoid warningsLars Ingebrigtsen2019-05-171-0/+4
| | | | | | * lisp/mouse.el (rectangle-dimensions) (rectangle-position-as-coordinates, rectangle-intersect-p): Declare these functions from rect.el to avoid compilation warnings.
* * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix docstring of accessors.Stefan Monnier2019-05-161-1/+1
|
* * lisp/gnus/nnheader.el (mail-header-*): Define via cl-defstructStefan Monnier2019-05-1613-152/+73
| | | | | | | | | | | | | | | | | | | | | | This also has the side effect that the accessors are now defined as proper functions rather than as macros, so they can be passed to `mapcar` etc.. * lisp/gnus/nnheader.el (mail-header-number, mail-header-subject) (mail-header-from, mail-header-date, mail-header-id) (mail-header-references, mail-header-chars, mail-header-lines) (mail-header-xref, mail-header-extra): Define via cl-defstruct. (mail-header-set-number, mail-header-set-subject) (mail-header-set-from, mail-header-set-date, mail-header-set-id) (mail-header-set-message-id, mail-header-set-references) (mail-header-set-chars, mail-header-set-lines, mail-header-set-xref) (mail-header-set-extra): Remove, use `setf` instead. All callers adjusted. * lisp/gnus/gnus-sum.el (gnus-select-newsgroup) (gnus-summary-pop-limit, gnus-summary-limit-mark-excluded-as-read) (gnus-summary-find-matching, gnus-find-matching-articles): * lisp/gnus/gnus-kill.el (gnus-apply-kill-file-internal, gnus-execute): * lisp/gnus/gnus-score.el (gnus-score-adaptive): Eta-reduce, now that mail-header-FIELD are functions.
* Fix ffap behavior in the Gnus group buffer (bug#35693)Katsumi Yamaoka2019-05-171-1/+4
| | | | | * lisp/ffap.el (ffap-file-exists-string, ffap-file-at-point): Don't recognize "" as a path or a file name (bug#35693).
* * mule.el (set-buffer-file-coding-system): Don't burp on iso-2022-7bitStefan Monnier2019-05-161-2/+5
|
* Make `package' not "uninhibit" messages (Bug#34037)Paul Pogonyshev2019-05-161-2/+2
| | | | | * lisp/emacs-lisp/package.el: Don't let-bind inhibit-message to a different value if it was non-nil.
* Fix gnus-summary-expand-window placement of pointBasil L. Contovounesios2019-05-171-1/+1
| | | | | | * lisp/gnus/gnus-win.el (gnus-configure-frame): Replace switch-to-buffer with pop-to-buffer-same-window to avoid messing with point. (bug#35613)
* Add docstring to project--read-file-cpd-relativeBasil L. Contovounesios2019-05-161-0/+4
| | | | | | | | For discussion, see thread starting at: https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00460.html * lisp/progmodes/project.el (project--read-file-cpd-relative): Describe arglist as promised by user option project-read-file-name-function.
* * cl-macs-tests.el (cl-macs-test--symbol-macrolet): New testStefan Monnier2019-05-161-0/+17
|
* Fix stray call to make-vectorEric Abrahamsen2019-05-161-1/+1
| | | | | * lisp/gnus/gnus-agent.el (gnus-agent-fetch-group-1): This is meant to be a hash table.
* * lisp/emacs-lisp/cl-macs.el (cl--sm-macroexpand) <setq>: RewriteStefan Monnier2019-05-161-9/+19
| | | | | | | | The previous code had 2 problems: - It converted `setq` to `setf` in unrelated cases such as (cl-symbol-macrolet ((x 1)) (setq (car foo) bar)) - It macroexpanded places before `setf` had a chance to see if they have a gv-expander.
* Distribute test cases in tarballs by defaultPaul Eggert2019-05-166-8/+20
| | | | | | | | | * INSTALL, INSTALL.REPO, admin/make-tarball.txt: Mention ‘make check’. * configure.ac: Update comment. * etc/NEWS: Say that tarballs have a test directory. * make-dist (with_tests): Default to "yes". Add an option --no-tests to make it "no".
* Make shr-rescale-image respect get-buffer-window againLars Ingebrigtsen2019-05-161-27/+29
| | | | | * lisp/net/shr.el (shr-rescale-image): Partially revert previous change -- ressurrect the check for `get-buffer-window'.
* Improve user convenience of the rcirc debug bufferIvan Shmakov2019-05-161-8/+16
| | | | | | | * lisp/net/rcirc.el (rcirc-debug): Ignore rcirc-debug-buffer read-only status. Restore point after insertion unless it was at the end. Ensure a newline before each [lead]. Replace %Y-%m-%d with the equivalent %F in format-time-string; remove useless concat. (Bug#32470)
* Accept NO-PROPERTIES in thing-at-point aliases (Bug#35491)Noam Postavsky2019-05-162-5/+12
| | | | | | * lisp/thingatpt.el (word-at-point, sentence-at-point): Accept and pass NO-PROPERTIES to thing-at-point. * etc/NEWS: Announce change.
* * lisp/net/tramp.el (tramp-yesno-prompt-regexp): Extend.Michael Albinus2019-05-161-1/+4
|
* * lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-rules): Fix typoStefan Monnier2019-05-152-1/+8
| | | | | * test/lisp/textmodes/sgml-mode-tests.el (sgml-tests--quotes-syntax): New corresponding test.
* Fix merge of sgml-syntax-propertize-rulesNoam Postavsky2019-05-151-6/+15
| | | | | | | | | | | During the merge of emacs-26, the sgml-syntax-propertize-rules part of 2019-01-17 "* lisp/textmodes/sgml-mode.el: Try and fix bug#33887." got lost in the conflict against 2019-05-09 "Recognize single quote attribute values in nxml and sgml (Bug#35381)". * lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-rules): Reapply the 2019-01-17 change to speed up sgml-syntax-propertize-rules, taking into account the 2019-05-09 which means we have to handle single quotes as well.
* Fix diff-mode face problem when used in terminals (Bug#35695)Anders Lindgren2019-05-151-4/+20
| | | | | | | | | In a terminal supporting 256 colors, both diff-added and diff-removed was mapped to the same greyish color. * lisp/vc/diff-mode.el: Modify the colors of diff-removed, diff-added, diff-refine-removed, and diff-refine-added when used in a 256 color environment.
* * lisp/gnus/gnus-sum.el: Use lexical-bindingStefan Monnier2019-05-151-121/+122
| | | | | | | | | | | | | | (gnus-summary-make-menu-bar, gnus-summary-display-make-predicate) (gnus-summary-refer-thread, gnus-summary-find-matching) (gnus-summary-edit-article, gnus-summary-sort): Replace backquoted lambda with closure. (gnus-summary-article-header): Use define-inline rather than defmacro, so it's also a function. (gnus-save-hidden-threads, gnus-summary-iterate, gnus-with-article): Use `declare`. (gnus-thread-sort-by-random): Simplify. (gnus-summary-display-article, gnus-summary-limit-to-address): Hoist common code outside of `if`.
* Tune reading of radix integersPaul Eggert2019-05-151-74/+73
| | | | | | | | | | | | | | | This improves the performance of (read "%xFF") by about 25% on my platform. * src/lread.c: Include <vla.h>, so that we can better document buffer sizes of arguments. (invalid_radix_integer_format, stackbufsize): New constants. (free_contents): Remove. All uses removed. (invalid_radix_integer): New function. (read_integer): New arg STACKBUF. Assume radix is in range. All uses changed. Use STACKBUF to avoid calling malloc in the usual case. Use grow_read_buffer to simplify. (read1): Tune. Improve quality of diagnostic when MOST_POSITIVE_FIXNUM < radix <= EMACS_INT_MAX.
* * lisp/mail/footnote.el (footnote-prefix): Docstring typo.Stefan Monnier2019-05-151-3/+2
|
* Add standard unmatchable regexpMattias Engdegård2019-05-1518-39/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `regexp-unmatchable' as a standard unmatchable regexp, defined as "\\`a\\`". Use it where such a regexp is needed, replacing slower expressions in several places. From a suggestion by Philippe Schnoebelen. * lisp/subr.el (regexp-unmatchable): New defconst. * etc/NEWS (Lisp Changes): Mention `regexp-unmatchable'. * doc/lispref/searching.texi (Regexp Functions): Document it. * lisp/emacs-lisp/regexp-opt.el (regexp-opt) * lisp/progmodes/cc-defs.el (cc-conditional-require-after-load) (c-make-keywords-re) * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1) (c-forward-<>-arglist-recur, c-forward-decl-or-cast-1) (c-looking-at-decl-block) * lisp/progmodes/cc-fonts.el (c-doc-line-join-re) (c-doc-bright-comment-start-re) * lisp/progmodes/cc-langs.el (c-populate-syntax-table) (c-assignment-op-regexp) (c-block-comment-ender-regexp, c-font-lock-comment-end-skip) (c-block-comment-start-regexp, c-line-comment-start-regexp) (c-doc-comment-start-regexp, c-decl-start-colon-kwd-re) (c-type-decl-prefix-key, c-type-decl-operator-prefix-key) (c-pre-id-bracelist-key, c-enum-clause-introduction-re) (c-nonlabel-token-2-key) * lisp/progmodes/cc-mode.el (c-doc-fl-decl-start, c-doc-fl-decl-end) * lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-name-re) (c-noise-macro-name-re, c-make-noise-macro-regexps) * lisp/progmodes/octave.el (octave-help-mode) * lisp/vc/vc-bzr.el (vc-bzr-log-view-mode, vc-bzr-revision-completion-table) * lisp/vc/vc-git.el (vc-git-log-view-mode) * lisp/vc/vc-hg.el (vc-hg-log-view-mode) * lisp/vc/vc-mtn.el (vc-mtn-log-view-mode): Use `regexp-unmatchable'. * lisp/textmodes/ispell.el (ispell-non-empty-string): Use `regexp-unmatchable', fixing a broken never-match regexp.
* Avoid infinitly looping in tramp-interrupt-process (bug#35506)John Shahid2019-05-151-4/+3
| | | | | | | * lisp/net/tramp.el (tramp-interrupt-process): Remove with-timeout. Instead pass a timeout to tramp-accept-process-output. tramp-accept-process-output stops timers from running which makes the with-timeout ineffective.
* CC Mode: fix indentation in switch statement after "case a(1):".Alan Mackenzie2019-05-152-2/+35
| | | | | | | | * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): Enhance the analysis of case labels to handle parenthesised expressions (e.g. macros). * lisp/progmodes/cc-langs.el (c-nonlabel-nonparen-token-key): New lang const and lang var.
* Describe error data in url-retrieve betterLars Ingebrigtsen2019-05-151-3/+5
| | | | | * lisp/url/url.el (url-retrieve): Describe the error data more in depth (bug#25735).
* Don't have url-basic-auth bug out when called with an URL stringLars Ingebrigtsen2019-05-151-2/+2
| | | | | | | * lisp/url/url-auth.el (url-basic-auth): Pass the parsed URL object to the prompting function instead of the parameter that's possibly a string (bug#26708). Passing url-basic-auth with a string parameter would fail if passed a non-parsed URL.
* Fix obscure HTTP chunked parsing problemLars Ingebrigtsen2019-05-151-0/+6
| | | | | | * lisp/url/url-http.el (url-http-chunked-encoding-after-change-function): Ensure that we parse the entire initial chunked header as the length (bug#35658).
* Indent url-http-chunked-encoding-after-change-functionLars Ingebrigtsen2019-05-151-3/+2
|
* Fix url-auth prompts when realm is emptyThomas Fitzsimmons2019-05-151-0/+2
| | | | | * lisp/url/url-auth.el (url-get-authentication): When realm is empty, use the entire URL in the prompt (bug#35688).
* Make image scaling work without imagemagick support in ewwLars Ingebrigtsen2019-05-151-31/+28
| | | | | | * lisp/net/shr.el (shr-rescale-image): Emacs has native image scaling now, so images can be rescaled without imagemagick support.
* ; Merge from origin/emacs-26Glenn Morris2019-05-140-0/+0
|\ | | | | | | | | | | | | The following commits were skipped: cf54577 (origin/emacs-26) Backport: fix broken build on m68k 202ff53 Handle GNUTLS_E_AGAIN in emacs_gnutls_read (Bug#34341)
| * Backport: fix broken build on m68kPaul Eggert2019-05-141-52/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The GCC + valgrind fix caused the m68k build to fail (Bug#35711). Simplify string allocation a bit to make similar problems less likely in the future. * src/alloc.c (sdata, SDATA_NBYTES, SDATA_DATA) [GC_CHECK_STRING_BYTES]: Use the same implementation as with !GC_CHECK_STRING_BYTES, as the special case is no longer needed. (SDATA_ALIGN): New constant. (SDATA_SIZE): Remove this macro, replacing with ... (sdata_size): ... this new function. All uses changed. Properly account for sizes and alignments even in the m68k case, and even if GC_CHECK_STRING_BYTES is not defined.
| * Handle GNUTLS_E_AGAIN in emacs_gnutls_read (Bug#34341)Noam Postavsky2019-05-131-2/+9
| | | | | | | | | | | | | | Don't merge to master, this has already been fixed there by 2019-01-15 "Fix unlikely races with GnuTLS, datagrams". * src/gnutls.c (emacs_gnutls_read): Similar to emacs_gnutls_write, when gnutls_record_recv returns GNUTLS_E_AGAIN set errno to EGAIN.
* | Merge from origin/emacs-26Glenn Morris2019-05-1412-67/+223
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 02bee78 Let dir locals for more specific modes override those from less b1235f9 Improve documentation of Hexl mode 32d1813 Fix description of (move-to-column <n> t) when column <n> is ... 0397b7c ; Fix smtpmail-stream-type docstring 7dab3ee Recognize single quote attribute values in nxml and sgml (Bug... e4cde42 Disable extra display of &#10; in nxml-mode (Bug#32897) ca14dd1 Fix nxml-get-inside (Bug#32003) e7ab351 Fix positioning client buffer as instructed by emacsclient # Conflicts: # lisp/files.el # lisp/textmodes/sgml-mode.el
| * Let dir locals for more specific modes override those from lessNeil Roberts2019-05-122-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Improve documentation of Hexl modeEli Zaretskii2019-05-111-3/+12
| | | | | | | | | | | | * doc/emacs/misc.texi (Editing Binary Files): Clarify "insertion". Improve wording. Add a few Hexl commands. (Bug#35580)
| * Fix description of (move-to-column <n> t) when column <n> is inside a tabAlan Mackenzie2019-05-092-6/+9
| | | | | | | | | | | | | | | | This fixes bug #35647. State that when indent-tabs-mode is non-nil, spaces are inserted before the tab rather than the tab being replaced by spaces. * doc/lispref/text.texi (columns) * src/indent.c (move-to-column): Make the above documentation amendment.
| * ; 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-093-20/+35
| | | | | | | | | | | | | | | | | | * 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 &#10; 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-092-22/+82
| | | | | | | | | | | | | | | | | | | | | | | | 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)
* | ; Merge from origin/emacs-26Glenn Morris2019-05-140-0/+0
|\| | | | | | | | | | | The following commit was skipped: 916510b * etc/package-keyring.gpg: Add the 2019 key (backport)
| * * etc/package-keyring.gpg: Add the 2019 key (backport)Stefan Monnier2019-05-081-0/+0
| |
* | * lisp/progmodes/project.el (project-read-file-name-function): Fix type.Juri Linkov2019-05-142-7/+9
| |
* | * lisp/savehist.el: Use lexical-bindingStefan Monnier2019-05-141-30/+16
| | | | | | | | | | | | Remove redundant :group args. (savehist-no-conversion): Remove constant. (savehist-save): Use savehist-coding-system instead since it's no slower.
* | Default to disabling ImageMagick (Bug#33587)Paul Eggert2019-05-134-5/+11
| | | | | | | | | | | | | | | | ImageMagick has continuing stability and security problems, suggesting that 'configure' should disable it by default. See Glenn Morris's notes at: https://lists.gnu.org/r/emacs-devel/2018-12/msg00036.html * INSTALL, etc/NEWS, nt/INSTALL.W64: Mention this. * configure.ac (imagemagick): Default to off.
* | Allow customizing the display of project file names when readingDmitry Gutov2019-05-143-42/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | To hopefully resolve a long-running discussion (https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00162.html). * lisp/progmodes/project.el (project-read-file-name-function): New variable. (project--read-file-absolute, project--read-file-cpd-relative): New functions, possible values for the above. (project-find-file-in): Use the introduced variable. (project--completing-read-strict): Retain just the logic that fits the name.