aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | * configure.ac: Set HAVE_XFT to no for summary if HAVE_CAIRO is yes.YAMAMOTO Mitsuharu2019-06-251-0/+2
| | |
* | | * lisp/svg.el: Prepare for distribution via GNU ELPAStefan Monnier2019-06-241-8/+42
| | | | | | | | | | | | | | | | | | | | | Add a Version: and Package-Requires:. Don't require subr-x. Bring Commentary: from the GNU ELPA version of the package. (svg-remove): Don't use when-let*.
* | | Tweaks to html modeEric Abrahamsen2019-06-241-10/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/sgml-mode.el (sgml-attributes): Add the "class" and "id" attributes when needed. (html-mode-map): Add the `html-div' and `html-span' commands to the `html-quick-keys' map. (html-ordered-list, html-unordered-list, html-paragraph): Use the "\n" element properly. (html-div, html-span): New HTML skeletons.
* | | rectangle--pos-cols shouldn't move pointLars Ingebrigtsen2019-06-241-27/+28
| | | | | | | | | | | | | | | * lisp/rect.el (rectangle--pos-cols): Don't move point while calculating the values (bug#25777).
* | | Fix MS-Windows build as followup to pdumper executable lookupEli Zaretskii2019-06-245-1/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/w32.c (w32_my_exename): New function. * src/w32.h (w32_my_exename): Add prototype. * src/emacs.c (load_pdump_find_executable) [WINDOWSNT]: Find the actual file name of the program without looking along PATH, by calling w32_my_exename. * nt/mingw-cfg.site (ac_cv_func_canonicalize_file_name) (ac_cv_func_realpath, gl_cv_func_realpath_works): Disable testing. * nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_canonicalize-lgpl): Set to true.
* | | Make C-l in iimage-mode call recenter-top-bottomLars Ingebrigtsen2019-06-241-1/+1
| | | | | | | | | | | | | | | | | | * lisp/iimage.el (iimage-recenter): Call `recenter-top-bottom' instead of `recenter', since that's the default function for `C-l' (bug#27610). Suggested by Arne Frederic Maria Döring.
* | | Improve error handling in TrampMichael Albinus2019-06-243-119/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-compat.el (ls-lisp): Require. * lisp/net/tramp.el (ls-lisp-use-insert-directory-program): Don't declare. (tramp-current-connection): Adapt docstring. (tramp-debug-message): Adapt function names. (tramp-error, tramp-run-real-handler): Let-bind `signal-hook-function'. (tramp-signal-hook-function): New defun. (tramp-debug-on-error, tramp-condition-case-unless-debug): Remove. (tramp-file-name-handler): Handle `tramp-current-connection'. Let-bind `signal-hook-function'. Use `unwind-protect' instead of `tramp-condition-case-unless-debug'. (tramp-handle-insert-directory): Don't require ls-lisp. (tramp-process-actions): Check, that `tramp-password-save-function' is non-nil. (tramp-equal-remote): Handle the case both files are local. * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case): Do not bind `tramp-debug-on-error'. (tramp--test-ignore-make-symbolic-link-error): Make error handler more explicit about the error.
* | | Fix up key bindings in previous tabulated-list patchLars Ingebrigtsen2019-06-241-2/+2
| | | | | | | | | | | | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map): Actually use `w'/`c' as described in previous patch.
* | | Add new commands to widen/narrow tabulated list columnsLars Ingebrigtsen2019-06-243-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/buffers.texi: Document widen/contracting commands in tabulated list mode. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map): Add keystrokes. (tabulated-list-widen-current-column): New command. (tabulated-list-narrow-current-column): Ditto. The code was written by Boruch Baum and then tweaked by Drew Adams (bug#32106) before some white-space changes before the commit.
* | | Remove -q from zstd invocationLars Ingebrigtsen2019-06-241-1/+1
| | | | | | | | | | | | | | | * lib-src/etags.c (compressors): -q isn't necessary since standard output goes to /dev/null. From Michael Albinus (bug#33919).
* | | NEWS fix up for Zstandard patchesLars Ingebrigtsen2019-06-241-4/+0
| | | | | | | | | | | | | | | * etc/NEWS: tramp-archive is a new feature, so no need to say that specific parts of it are new. From Michael Albinus.
* | | Fix up Zstandard/tramp patch slightlyLars Ingebrigtsen2019-06-241-3/+3
| | | | | | | | | | | | | | | * lisp/net/tramp-archive.el (tramp-archive-suffixes): Fix tzst suffix. From Michael Albinus (bug#33919).
* | | Add Zstandard compression support for TrampAlexander Gramiak2019-06-244-7/+15
| | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-archive.el (tramp-archive-suffixes) (tramp-archive-compression-suffixes): Add zstd compression suffixes. * lisp/net/tramp-sh.el (tramp-inline-compress-commands): Add zstd (de)compression commands.
* | | Add Zstandard compression support for diredAlexander Gramiak2019-06-242-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/dired-aux.el (dired-compress-file-suffixes): Add suffixes for zstd compressed tarballs and other files. (dired-compress-file): Treat options found in `dired-compress-file-suffixes' as arguments instead of part of the program name.
* | | Add Zstandard compression support for etagsAlexander Gramiak2019-06-243-2/+6
| | | | | | | | | | | | | | | | | | * lib-src/etags.c: (compressors): Add zstd support. (print_language_names): Report zstd support. * doc/man/etags.1: Update doc.
* | | Fix pdumper executable-finding codeDaniel Colascione2019-06-241-25/+137
| | | | | | | | | | | | | | | | | | * src/emacs.c: (load_pdump_find_executable): New function. (load_pdump): Use it.
* | | * doc/misc/auth.texi (The Unix password store): Complete rewriteDamien Cassou2019-06-241-10/+61
| | |
* | | * etc/NEWS: Describe changes to auth-source-passDamien Cassou2019-06-241-0/+19
| | |
* | | * lisp/auth-source-pass.el: Version 5.0.0Damien Cassou2019-06-241-1/+1
| | |
* | | Refactoring of auth-source-passDamien Cassou2019-06-242-241/+349
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/auth-source-pass.el (auth-source-pass--find-match): Refactor by moving some code to auth-source-pass--disambiguate. (auth-source-pass--disambiguate) (auth-source-pass--entries-matching-suffix): New function. (auth-source-pass--find-match-unambiguous) (auth-source-pass--select-from-entries) (auth-source-pass--entry-reducer): Refactor to simplify and improve logging. (auth-source-pass--matching-entries) (auth-source-pass--accumulate-matches): Remove. * test/lisp/auth-source-pass-tests.el: Complete rewrite to facilitate maintenance. (auth-source-pass--have-message-containing): Remove. (auth-source-pass--have-message-matching) (auth-source-pass--explain--have-message-matching) (auth-source-pass--explain-match-entry-p) (auth-source-pass--includes-sorted-entries) (auth-source-pass--explain-includes-sorted-entries) (auth-source-pass--explain-match-any-entry-p) (auth-source-pass--matching-entries) (auth-source-pass-match-entry-p) (auth-source-pass-match-any-entry-p): New function.
* | | * lisp/auth-source-pass.el: Add Keith Amidon to authorsKeith Amidon2019-06-241-0/+1
| | |
* | | Minimize entry parsing in auth-source-passKeith Amidon2019-06-242-192/+281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this commit, while searching for the most applicable entry password-store entries were decrypted and parsed to ensure they were valid. The entries were parsed in the order they were found on the filesystem and all applicable entries would be decrypted and parsed, which varied based on the contents of the password-store and the entry to be found. This is fine when the GPG key is cached and each entry can be decrypted without user interaction. However, for security some people have their GPG on a hardware token like a Yubikey setup so that they have to touch a sensor on the toke for every cryptographic operation, in which case it becomes inconvenient as each attempt to find an entry requires a variable number of touches of the hardware token. The implementation already assumes that names which contain more of the information in the search key should be preferred so there is an ordering of preference of applicable entries. If the decrypt and parsing is removed from the initial identification of applicable entries in the store then in most cases a single decrypt and parse of the most preferred entry will suffice, improving the experience for hardware token users that require interaction with the token. This commit implements that strategy. It is in spirit a refactor of the existing code. * lisp/auth-source-pass.el (auth-source-pass--matching-entries): New function, generate an ordered list of regular expression matchers for all possible names that could be in the password-store for the entry to be found and then makes a pass over the password-store entry names accumulating the matching entries in a list after the regexp that matched. This implementation ensures the password-store entry list still only has to be scanned once. (auth-source-pass--find-match-unambiguous): Use it to obtain candidate entries and then parse them one by one until an entry containing the desired information is located. When complete, return the parsed data of the entry instead of the entry name so that the information can be used directly to construct the auth-source response. (auth-source-pass--build-result): Update accordingly. (auth-source-pass--find-match): Update docstring accordingly. (auth-source-pass--select-one-entry) (auth-source-pass--entry-valid-p) (auth-source-pass--find-all-by-entry-name) (auth-source-pass--find-one-by-entry-name): Remove. (auth-source-pass--select-from-entries) (auth-source-pass--accumulate-matches) (auth-source-pass--entry-reducer) (auth-source-pass--generate-entry-suffixes) (auth-source-pass--domains) (auth-source-pass--name-port-user-suffixes): New functions. * test/lisp/auth-source-pass-tests.el: One test case was added to the test suite to verify that only the minimal number of entries are parsed in common cases. The auth-source-pass-only-return-entries-that-can-be-open test case had to be re-implemented because the function it was used eliminated as the functionality is provided elsewhere. All the other fairly substantial changes to the test suite are the result of mechanical changes that were required to adapt to auth-source-pass--find-match returning the data from a parsed password-store entry instead of the entry name.
* | | Split out the attribute retrieval form auth-source-pass-getKeith Amidon2019-06-241-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminate the need to repeatedly retrieve and parse the data for the entry. This is generally a good thing since it eliminates repetitions of the same crypto and parsing operations. It is especially valuable when protecting an entry with a yubikey with touch required for crypto operations as it eliminates the need to touch the yubikey sensor for each attribute retrieved. * lisp/auth-source-pass.el (auth-source-pass-get): Extract some code to `auth-source-pass--get-attr'. (auth-source-pass--get-attr): New function to get a field value from a parsed entry. (auth-source-pass--build-result): Make use of `auth-source-pass--get-attr` to avoid repeated parsing.
* | | Fix auth-source-pass to search for hostname:port/usernameKeith Amidon2019-06-242-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | auth-source-pass supports entries with username either prefixed to the hostname with an @ as separator or in a subdirectory under the hostname. This was true when there was no port or service included in the name, but got broken with the introduction of auth-source-pass-port-separator. * lisp/auth-source-pass.el (auth-source-pass--find-match-unambiguous): Fix to match hostname:port/username. * test/lisp/auth-source-pass-tests.el: Add corresponding tests.
* | | Add auth-source-pass-port-separator optionIku Iwasa2019-06-242-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/auth-source-pass.el (auth-source-pass-port-separator): New option to specify separator between host and port, default to colon (":"). (auth-source-pass--find-match-unambiguous): Adapt to make use of the new variable. * test/lisp/auth-source-pass-tests.el: Add corresponding tests.
* | | Add auth-source-pass-filename optiongalaunay2019-06-241-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/auth-source-pass.el (auth-source-pass) (auth-source-pass-filename): Add option to specify a customized password-store path. (auth-source-pass--read-entry) (auth-source-pass-entries): Use the new option instead of hard-coded `~/.password-store'.
* | | * lisp/auth-source-pass.el (auth-source-pass-get): Add autoloadDamien Cassou2019-06-241-0/+1
| | |
* | | * lisp/auth-source-pass.el: Version 4.0.2Damien Cassou2019-06-241-1/+1
| | |
* | | Fix auth-source-pass to return nil if no entry foundMagnus Henoch2019-06-242-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/auth-source-pass.el (auth-source-pass-search): If there is no matching entry, auth-source-pass-search should return nil, not (nil). This lets auth-source fall back to other backends in the auth-sources list. * test/lisp/auth-source-pass-tests.el: Add corresponding test. Copyright-paperwork-exempt: yes
* | | Fix locating pdump by symlinkDaniel Colascione2019-06-2315-32/+1130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/merge-gnulib (GNULIB_MODULES): Add canonicalize-lgpl module * build-aux/config.guess, build-aux/gitlog-to-changelog, build-aux/update-copyright, lib/canonicalize-lgpl.c, lib/gnulib.mk.in, lib/malloca.c, lib/malloca.h, lib/pathmax.h, m4/canonicalize.m4, m4/double-slash-root.m4, m4/gnulib-comp.m4, m4/malloca.m4, my/pathmax.4: copy from GNUlib or regenerate from update * src/emacs.c: find dump by canonical path
* | | Document syntax-ppss-contextLars Ingebrigtsen2019-06-242-0/+9
| | | | | | | | | | | | | | | | | | | | | * doc/lispref/syntax.texi (Parser State): Document it. * lisp/emacs-lisp/syntax.el (syntax-ppss-context): Add a doc string (bug#32504).
* | | Autojoin channels with same name on different servers in ercMartin Kletzander2019-06-231-0/+4
| | | | | | | | | | | | | | | | | | | | | * lisp/erc/erc-join.el (erc-autojoin-channels): Join channels with the same name on different servers (bug#32723). Copyright-paperwork-exempt: yes
* | | (if-let): Improve docstring by mentioning let*Alex Branham2019-06-231-2/+3
| | | | | | | | | | | | | | | * lisp/emacs-lisp/subr-x.el (if-let): Clarify that if-let is like let*, not like let (bug#33550).
* | | Fix auto-revert resizing in image modeCarlos Pita2019-06-231-6/+4
| | | | | | | | | | | | | | | | | | * lisp/image-mode.el (image-transform-properties): Get image parameters right after reverting; in particular, compute the correct max size (bug#33631).
* | | Don’t line-buffer stderrPaul Eggert2019-06-231-6/+0
| | | | | | | | | | | | | | | | | | * src/sysdep.c (init_standard_fds) [DOS_NT]: Don’t line-buffer stderr. This reverts 2019-06-20T07:32:17!eggert@cs.ucla.edu. See: https://lists.gnu.org/r/emacs-devel/2019-06/msg00882.html
* | | Check validity of rx submatch-n numberMattias Engdegård2019-06-231-0/+2
| | | | | | | | | | | | * lisp/emacs-lisp/rx.el (rx-submatch): Type and range check (Bug#34373).
* | | Optional space and unit in `file-size-human-readable' (bug#35756)Mattias Engdegård2019-06-234-23/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To improve readability of strings produced by `file-size-human-readable', add two optional arguments: - SPACE, to provide a string (typically a space or non-breaking space) to put between the number and unit. For compatibility, the default is an empty string. - UNIT, a string to use as unit. For compatibility, the default is "B" in `iec' mode and the empty string otherwise. Also fix a glitch with small numbers in `iec' mode which caused a stray "i" in the result. * lisp/files.el (file-size-human-readable): Add optional SPACE and UNIT arguments and handle small numbers correctly. (files--ask-user-about-large-file, warn-maybe-out-of-memory): Call with `iec' and space. * test/lisp/files-tests.el (files-test-file-size-human-readable): New test. * lisp/url/url-http.el (url-http-simple-after-change-function) (url-http-content-length-after-change-function): Call with `iec' and space. * etc/NEWS (Lisp Changes): Mention the change.
* | | (hfy-fontify-buffer): Inhibit read onlyMichael Brumlow2019-06-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/htmlfontify.el (hfy-fontify-buffer): Inhibit read only to enable the function to work with text that comes from buffers that put read-only text properties on things (bug#35025). Copyright-paperwork-exempt: yes
* | | Document Winner mode user optionsMauro Aranda2019-06-231-1/+11
| | | | | | | | | | | | | | | | | | * doc/emacs/windows.texi (Window Convenience): Add documentation for the user options winner-dont-bind-my-keys, winner-ring-size and winner-boring-buffers (bug#35146).
* | | src/bytecode.c (exec_byte_code) Unroll Blist3 and Blist4Alexander Gramiak2019-06-231-2/+2
| | | | | | | | | | | | | | | * src/bytecode.c (exec_byte_code): Unroll Blist3 and Blist4 (bug#35321).
* | | Add NEWS entry for new command gnus-summary-browse-urlEric Abrahamsen2019-06-231-0/+5
| | | | | | | | | | | | * etc/NEWS: It is documented in the manual.
* | | Make ls-lisp--dired ape dired-noselect more closelyDrew Adams2019-06-231-0/+2
| | | | | | | | | | | | | | | | | | * lisp/ls-lisp.el (ls-lisp--dired): Emulate the behaviour of non-ls-lisp.el dired better by defaulting to default-directory as dired-noselect does (bug#35390).
* | | Add a Code: tag to subr.elVan L2019-06-231-1/+1
| | | | | | | | | | | | * lisp/subr.el: Add a Code: tag comment (bug#35595).
* | | Remove outdate comment about an utf-8 cookie that was removed in 2015Lars Ingebrigtsen2019-06-231-2/+0
| | |
* | | Handle 'code' tag in shr.elNick Drozd2019-06-232-1/+8
| | | | | | | | | | | | | | | * etc/NEWS: Announce change in shr behavior (bug#36247). * lisp/net/shr.el: Add 'code' tag handling.
* | | New command gnus-summary-browse-urlEric Abrahamsen2019-06-232-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-sum.el (gnus-summary-browse-url): New command for browsing URLs from the article buffer from the summary buffer. (gnus-summary-mode-map): Bind to "w". (gnus-summary-article-map): And to "A w". * doc/misc/gnus.texi (Article Commands): Document.
* | | Improve error handling in tramp-gvfsMichael Albinus2019-06-232-243/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-gvfs.el (tramp-gvfs-get-directory-attributes) (tramp-gvfs-get-root-attributes) (tramp-gvfs-handle-file-attributes): Don't ignore errors. (tramp-make-goa-name): New defun. (tramp-gvfs-get-remote-prefix): Use it. (tramp-gvfs-maybe-open-connection): Raise user errors in case of. Check also, that GOA accounts are proper. (tramp-get-goa-accounts): Cache connection property. * lisp/net/tramp.el (tramp-handle-file-equal-p) (tramp-handle-file-in-directory-p): Use `tramp-equal-remote'.
* | | ; * src/image.c: Minor copyedits of native transform commentary.Eli Zaretskii2019-06-231-5/+5
| | |
* | | Document what the `t' value for HIST in `read-string' meansLars Ingebrigtsen2019-06-231-2/+6
| | | | | | | | | | | | | | | | | | * src/minibuf.c (syms_of_minibuf): Say that `t' means "no history" (bug#36324). (Fread_from_minibuffer): Say the same for HIST.
* | | Split up and add tests for two page.el functionsSimen Heggestøyl2019-06-232-26/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/page.el (page--count-lines-page): New function extracted from `count-lines-page'. (count-lines-page): Extract main logic into `page--count-lines-page'. (page--what-page); New function extracted from `what-page'. (what-page): Extract main logic into `page--what-page'. * test/lisp/textmodes/page-tests.el (page-tests-count-lines-page) (page-tests-what-page): New tests for `page--count-lines-page' and `page--what-page'. (Bug#36009)