aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | 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.
* | | | | Avoid artifacts in ftx and ftcr font backend driversYAMAMOTO Mitsuharu2019-05-142-7/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/ftcrfont.c (ftcrfont_open): * src/ftfont.c (ftfont_open2): Make font->height equal to sum of font->ascent and font->descent. Respect :minspace property. (ftfont_open2): Remove redundant assignment. (syms_of_ftfont) <QCminspace>: New DEFSYM.
* | | | | Fix mail-header-separator font lock in message.elBasil L. Contovounesios2019-05-141-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/message.el (message-font-lock-keywords): Dynamically font lock mail-header-separator, in case it changes. (bug#34898)
* | | | | Extract common code for adding text propertiesKévin Le Gouguec2019-05-131-27/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/font-lock.el (font-lock--add-text-property): New function. (font-lock-prepend-text-property) (font-lock-append-text-property): Use it. (Bug#35476)
* | | | | Stop splicing anonymous faces in font-lock-append-text-propertyKévin Le Gouguec2019-05-132-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the same fix as 2019-04-29 "Refrain from splicing anonymous faces in text properties", which was only applied to font-lock-prepend-text-property. * lisp/font-lock.el (font-lock-append-text-property): Distinguish list of faces from property list. * test/lisp/font-lock-tests.el: New test suite. (Bug#35476)
* | | | | Do not hard-code message-mode keys in docstringBasil L. Contovounesios2019-05-131-36/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/message.el (message-mode): Replace hard-coded bindings in docstring with summary of message-mode-map. (bug#31388)
* | | | | Fix last change to message-signature :typeBasil L. Contovounesios2019-05-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/message.el (message-signature): List more specific :type alternatives before more general ones, as per "(elisp) Composite Types".
* | | | | Document nil value of message-signature and mail-signatureRobert Pluim2019-05-132-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/message.el (message-signature): Allow nil as a customizable value, and describe its effect. * lisp/mail/sendmail.el (mail-signature): Describe effect of nil value (bug#32680).
* | | | | * lisp/vc/log-view.el (log-view-diff-common): Use the previous revisionJuri Linkov2019-05-131-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | only when the end of the region is on a line after the last entry. (Bug#35624)
* | | | | [PATCH 1/1] Adds variable 'eww-accept-content-types'Alexandre Garreau2019-05-131-19/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/message.el (message-simplify-subject): Decouple simplification from "Re:" adding (bug#33200). (message-reply): Add the "Re:"'s here. (message-followup): And here.
* | | | | Make mml respect the "recipient-filename" parameterLars Ingebrigtsen2019-05-131-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/mml.el (mml-insert-mime-headers): Implement the already-documented "recipient-filename" parameter (bug#34654).
* | | | | Make eww understand #fragment URLs at point interactivelyLars Ingebrigtsen2019-05-132-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/eww.el (eww-suggest-uris): Use thing-at-point-url-at-point instead of url-get-url-at-point (bug#31927) because it's much better at guessing what the URL actually is (especially with #fragments).
* | | | | Fix broken build on m68kPaul Eggert2019-05-131-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.
* | | | | Add a comment about the previous shr changeLars Ingebrigtsen2019-05-131-0/+2
| | | | |
* | | | | Fix problems in shr when indenting tablesLars Ingebrigtsen2019-05-131-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/shr.el (shr-mark-fill, shr-insert-table): Fix problems when block-quoting/<li>-ing a table -- the indentation/prefix was inserted twice (bug#32277).
* | | | | Use a more specific Accepts header in ewwFederico Tedin2019-05-131-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/eww.el (eww-accept-content-types): New variable. (eww): Use it. (eww-reload): Use it. (bug#33002). Copyright-paperwork-exempt: yes
* | | | | ; * lisp/faces.el (fill-column-indicator): Fix typo.Jimmy Aguilar Mena2019-05-121-1/+1
| | | | |
* | | | | (eww-follow-link): Record the location properly when following #linksXu Chunyang2019-05-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/eww.el (eww-follow-link): Record the location properly when following #links (bug#35445).
* | | | | * lisp/emacs-lisp/packages.el: Add `all` to package-check-signatureStefan Monnier2019-05-122-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | (package-check-signature): Add `all` option. (package--check-signature-content): Adjust accordingly.
* | | | | Improve printing for named keyboard macros (Bug#35486)Noam Postavsky2019-05-122-13/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/macros.el (macros--insert-vector-macro): New function, extracted from insert-kbd-macro. (insert-kbd-macro): Use it and kmacro-extract-lambda to produce nicer expressions for macros produced by kmacro-lambda-form.