aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | For SVG, 8192 is the new 256Paul Eggert2019-05-182-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prefer librsvg for display of splash.svg When both librsvg and Imagemagick are available, Emacs should prefer librsvg to render SVG images. However, Emacs was using Imagemagick to render its own splash.svg file because image-type-from-file-header returned nil for that file. * lisp/image.el (image-type-from-buffer) (image-type-from-file-header): Look at the first 8192 bytes of the image, not just the first 256. For Emacs’s own splash.svg file, image-type-header-regexps needs to look at 939 bytes. 8192 bytes is a reasonable number nowadays given typical file system design. * test/lisp/image-tests.el (image-tests--emacs-images-directory): New contant. (image-type-from-file-header-test): New test.
* | | | | Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsMichael Albinus2019-05-183-10/+60
|\ \ \ \ \
| * | | | | CC Mode: Handle several consecutive noise macros in declaration contexts.Alan Mackenzie2019-05-181-4/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the bug scenario, the second and subsequent noise macros with parentheses were getting font-lock-type-face. * lisp/progmodes/cc-engine.el (c-end-of-token) (c-forward-noise-clause-not-macro-decl): New functions. (c-find-decl-prefix-search): Handle noise macros by skipping over them. (c-forward-decl-or-cast-1): In the loop checking for types, skip over all consecutive noise macros with parens, not just one.
| * | | | | Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacsEli Zaretskii2019-05-181-0/+1
| |\ \ \ \ \
| | * | | | | Fix missing declaration in gnus-sum.elBastien2019-05-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-sum.el (gnus-tmp-name): Declare var.
| * | | | | | Fix display of images on MS-Windows broken by a recent commitEli Zaretskii2019-05-181-6/+6
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/image.c (initialize_image_type): Test if the type is in Vlibrary_cache up front, and return true without calling the 'init' method if the type was already initialized.
* | | | | | Bug#35769Michael Albinus2019-05-181-14/+20
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-sh.el: (tramp-maybe-open-connection): Arrange `process-environment' that it doesn't work for local processes. (Bug#35769)
* | | | | Suppress compiler warnings for older Emacsen in tramp-tests.elMichael Albinus2019-05-181-28/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory): Add error name to test. (tramp-test30-make-process, tramp-test45-unload): Suppress compiler warnings from older Emacsen.
* | | | | Require less packages in TrampMichael Albinus2019-05-185-18/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-compat.el (format-spec): Do not require advice, cl-lib, custom, password-cache, timer and ucs-normalize. * lisp/net/tramp-gvfs.el: Do not require zeroconf. Declare zeroconf-* functions. (tramp-gvfs-enabled): Autoload `zeroconf-init'. * lisp/net/tramp-sh.el: Do not require dired. * lisp/net/tramp.el (tramp-get-debug-buffer): Do not require outline. (tramp-file-name-for-operation): Extend docstring. (tramp-parse-netrc): Do not require netrc. Autoload `netrc-parse'.
* | | | | Don't use file notification on non-file buffersMattias Engdegård2019-05-185-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow non-file buffers to declare that notification on their default-directory is sufficient to know when auto-revert updates are required by setting the new variable `buffer-auto-revert-by-notification' to non-nil. If nil, the default, then auto-revert will poll those buffers instead. (bug#35418). Currently, only Dired sets that variable. * lisp/autorevert.el (auto-revert-buffers): Modify condition for using notification. * lisp/files.el (buffer-auto-revert-by-notification): New variable. * lisp/dired.el (dired-mode): Set buffer-auto-revert-by-notification. * doc/emacs/arevert-xtra.texi (Non-File Buffers): Document new variable. * etc/NEWS (Changes in Specialized Modes and Packages): Describe new variable.
* | | | | (epa-file-decode-and-insert): Byte compilation warning fixLars Ingebrigtsen2019-05-181-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/epa-file.el (epa-file-decode-and-insert): Remove superfluous call to `string-to-multibyte string'.
* | | | | * lisp/net/tramp.el (tramp-interrupt-process): Return proper value.Michael Albinus2019-05-181-3/+2
| | | | |
* | | | | ; Add comment in tramp-archive.elMichael Albinus2019-05-181-0/+2
| | | | |
* | | | | Remove usage of string-as-unibyte in arc-modeEli Zaretskii2019-05-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/arc-mode.el (archive-l-e): Encode with utf-8-emacs-unix instead of using string-as-unibyte.
* | | | | Fix visiting and saving UTF-16 encoded XML filesEli Zaretskii2019-05-182-4/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/international/mule.el (sgml-xml-auto-coding-function): When the 'enncoding' tag specifies a UTF-16 encoding, enforce saving the buffer with BOM, per the XML spec. (xml-find-file-coding-system): Recognize UTF-16 encodings with BOM. (Bug#35766) (Bug#8282) * lisp/international/mule-cmds.el (select-safe-coding-system): Don't consider UTF-16 encodings with and without BOM as "different", so as not to annoy users with redundant questions about mismatch between the XML/SGML header and the selected explicit encoding.
* | | | | Mitigate byte-compile warning in arc-modeLars Ingebrigtsen2019-05-181-25/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/arc-mode.el (byte-after): Remove defsubst. Replace all calls to byte-after with get-byte throughout the file, because byte-after gave compilation warnings.
* | | | | (hexl-insert-multibyte-char): Avoid using `string-as-unibyte'Eli Zaretskii2019-05-181-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/hexl.el (hexl-insert-multibyte-char): Avoid using `string-as-unibyte' in the fallback case.
* | | | | (dirtrack-toggle, dirtrackp): Remove obsolete aliasesLars Ingebrigtsen2019-05-181-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/dirtrack.el (dirtrack-toggle, dirtrackp): Remove function/variable aliases declared obsolete in Emacs 23.1 (and that issued a byte-compile warning).
* | | | | Clean up and simplify image-type setupPaul Eggert2019-05-174-366/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also fixes an unlikely hang involving a circular image description. * src/dispextern.h (struct image.type): Now pointer-to-const. * src/image.c (struct image_type.init) [!WINDOWSNT]: Omit. (IMAGE_TYPE_INIT): New macro. (image_types): Now a small array-of-const, not a pointer. (CACHE_IMAGE_TYPE): Remove; the code’s simpler without it. (ADD_IMAGE_TYPE): Remove this macro, replacing with ... (add_image_type): ... this equivalent function. All uses changed. (define_image_type): Remove. All uses removed. (valid_image_p): Use FOR_EACH_TAIL_SAFE to avoid Emacs hanging if the user creates a circular description of an image. (xbm_type, xpm_type, pbm_type, png_type, jpeg_type, tiff_type) (gif_type, imagemagick_type, svg_type, gs_type): Remove; now done by image_types. (init_imagemagick_functions): Remove decl of nonexistent function. (gs_clear_image): Remove; all uses replaced by image_clear_image. (initialize_image_type): New function, which captures a lot of the previously-scattered WINDOWSNT ifdefs. (lookup_image_type): Use it. (reset_image_types): Remove. All uses removed. (syms_of_image): Don’t worry about ignoring image_types for pdumper, since it’s a constant now.
* | | | | * lisp/gnus/gnus-sum.el (gnus-tmp-thread): New varStefan Monnier2019-05-171-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The recent change to use lexical-binding introduced a bug because gnus-summary-line-format-alist refers to variable `thread` which is now lexical and hence not available there any more. Replace it with a dynamically scoped var `gnus-tmp-thread` as was already done with all other vars. (gnus-summary-line-format-alist): Use it instead of `thread`. (gnus-summary-prepare-threads): Bind it around call to (eval gnus-summary-line-format-spec).
* | | | | Move Info-edit-* commands from info.el to obsolete/info-edit.elLars Ingebrigtsen2019-05-172-59/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/info.el: Move Info-edit-* commands to obsolete/info-edit.el. * lisp/obsolete/info-edit.el: New file.
* | | | | Use cl-assert instead of assert in ps-print.elLars Ingebrigtsen2019-05-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/ps-print.el (ps-begin-job): Use cl-assert instead of assert and require cl-lib.
* | | | | (ps-begin-job): Remove two unneeded string-as-unibyte callsLars Ingebrigtsen2019-05-171-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/ps-print.el (ps-begin-job): Remove two unneeded string-as-unibyte calls to avoid byte compilation warnings.
* | | | | Fix a recent commit in select.elEli Zaretskii2019-05-171-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/select.el (gui-get-selection): Revert a recent incorrect change. Add a comment explaining what we are trying to do with C_STRING and why. (xselect--encode-string): Add a comment explaining what we are trying to do with C_STRING and why.
* | | | | Remove obsolete example functions from imenu.elLars Ingebrigtsen2019-05-171-92/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/imenu.el (imenu-example--create-c-index) (imenu-example--function-name-regexp-c) (imenu-example--create-lisp-index) (imenu-example--lisp-extract-index-name): Remove functions (and internal variables used by those functions) declared obsolete in Emacs 23.2. The functions gave compilation warnings.
* | | | | Remove unused internal function completion-pcm--optimize-patternLars Ingebrigtsen2019-05-171-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/minibuffer.el (completion-pcm--optimize-pattern): Remove unused internal function (that signalled a compilation warning).
* | | | | * lisp/gnus: Remove assumptions about mail-header being a vectorStefan Monnier2019-05-175-91/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use `mail-header-p` and `make-full-mail-header` instead of `vectorp` and `vector`, respectively. * lisp/gnus/message.el (message-cite-original-1, message-reply) (message-followup): * lisp/gnus/gnus-sum.el (gnus-get-newsgroup-headers): Use make-full-mail-header instead of `vector`. (gnus--dummy-mail-header): New const, using make-full-mail-header. (gnus-update-summary-mark-positions): Use it instead of an immediate vector. (gnus-set-mode-line, gnus-summary-article-pseudo-p) (gnus-summary-article-subject, gnus-summary-insert-subject) (gnus-summary-find-subject, gnus-summary-goto-subject) (gnus-summary-limit-to-age, gnus-summary-find-matching) (gnus-summary-mark-article-as-unread, gnus-summary-mark-article) (gnus-summary-save-article): * lisp/gnus/gnus.el (gnus-news-group-p): Use mail-header-p instead of vectorp.
* | | | | Declare fileloop-continue in dired-aux to avoid warningLars Ingebrigtsen2019-05-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/dired-aux.el (fileloop-continue): Declare to avoid compilation warning. `fileloop-initialize-search' (used before -continue) will load fileloop.el.
* | | | | Avoind string-as-multibyte in ps-output-string-primLars Ingebrigtsen2019-05-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/ps-print.el (ps-output-string-prim): Avoid `string-as-multibyte', and encode as utf-8 instead if multibyte.
* | | | | (gui-get-selection): Avoid using `string-to-multibyte'Lars Ingebrigtsen2019-05-171-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/select.el (gui-get-selection): Avoid using `string-to-multibyte' -- instead encode as `eight-bit' if the string is unibyte.
* | | | | Declare two w32 functions to avoid byte compilation warningsLars Ingebrigtsen2019-05-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/w32-fns.el (w32-version, w32-read-registry): Declare these functions to avoid byte compilation warnings. The functions should be loaded when `w32--os-description' is called, as far as I can tell.
* | | | | 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.