aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Correct customize type for gnus-group-customizeAndreas Schwab2019-07-021-1/+6
| | | | | | | | | | | | | | | * lisp/gnus/gnus-cus.el (gnus-extra-group-parameters): Add more group parameters used by nnimap.
* | | Correctly reindent previous line in electric-indent-modeJoão Távora2019-07-022-5/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: bug#35254 Do this even when electric-indent-inhibit is t, except when the newline insertion is being performed by electric-layout-mode. * lisp/electric.el (electric-indent-post-self-insert-function): Reindent previous line unless operating under electric-layout-mode. (electric-layout-post-self-insert-function-1): Bind electric-indent-inhibit to 'electric-layout-mode. * test/lisp/electric-tests.el (electric-layout-control-reindentation): New test.
* | | Protect Flymake from being corrupted by backendsJoão Távora2019-07-021-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | A backend building a diagnostic with a nil :type would cause Flymake to create a diagnostic without an overlay, confusing Flymake's accounting of overlays and diagnostics * lisp/progmodes/flymake.el (flymake--highlight-line): Return non-nil unconditionally.
* | | More carefully cleanup Flymake C/C++ backend's temp buffersJoão Távora2019-07-021-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes the Flymake process dies by some means that doesn't involve a sentinel call for the "exit" status, so we clean up the temporary buffer as soon as we notice it's not process-alive-p anymore. * lisp/progmodes/flymake-cc.el (flymake-cc): Broaden cleanup conditions.
* | | Don't create nil-severity diagnostics in the Flymake C/C++ backendJoão Távora2019-07-021-1/+2
| | | | | | | | | | | | | | | * lisp/progmodes/flymake-cc.el (flymake-cc--make-diagnostics): Use `:error` as a diagnostic severity.
* | | Revert "Avoid occasional confusion of Flymake C/C++ backend"João Távora2019-07-021-3/+1
| | | | | | | | | | | | | | | This reverts commit 67c3a3af1d9e2582193d5ea33b6c190e79ad56e6, which creates more problems than it solves.
* | | CC Mode: Improve handling of unbalanced stringsAlan Mackenzie2019-07-022-6/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-fonts.el (c-before-font-lock-functions): Add function c-after-change-escape-NL-in-string into value for most languages. * lisp/progmodes/cc-mode.el (c-after-change-escape-NL-in-string): New function. (c-before-change-check-unbalanced-strings): Handle the making and breaking of escaped newlines, by removal or addition of text.
* | | Better error message for C-h P RETMattias Engdegård2019-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously: package--incompatible-p: Wrong type argument: package-desc, nil Now: No package specified * lisp/emacs-lisp/package.el (describe-package): Don't use ## as input.
* | | Fix performDragOperation: diagnostic typoPaul Eggert2019-07-021-1/+1
| | | | | | | | | | | | * src/nsterm.m (performDragOperation:): Fix missing newline.
* | | Fix regex-emacs debug format glitchesPaul Eggert2019-07-011-14/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These patches affect behavior only if REGEX_EMACS_DEBUG. * src/regex-emacs.c (debug_putchar): Use unsigned for %x. (print_compiled_pattern, ENSURE_FAIL_STACK, PUSH_FAILURE_POINT) (POP_FAILURE_POINT): Use %td for ptrdiff_t. (print_compiled_pattern, regex_compile, re_match_2_internal): Put newlines at ends of lines, not at starts of next lines. Omit white space at line ends.
* | | Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacsEli Zaretskii2019-07-021-7/+13
|\ \ \
| * | | Minor changes in tramp.texiMichael Albinus2019-07-011-7/+13
| | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Obtaining Tramp): Mention file INSTALL. (Cleanup remote connections): The session timer is also deleted.
* | | | More XFIXNUM fixesEli Zaretskii2019-07-012-17/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/hbfont.c (hbfont_shape): Don't assume LGLYPH_TO is always a fixnum. * src/fontset.c (fontset_find_font): A cleaner test for matching charset_id.
* | | | Fix assertion violations in fontset_find_fontEli Zaretskii2019-07-011-1/+1
|/ / / | | | | | | | | | | | | * src/fontset.c (fontset_find_font): Don't assume REPERTORY must be a fixnum.
* | | Adjust return value of image-transforms-pEli Zaretskii2019-07-012-14/+6
| | | | | | | | | | | | | | | | | | | | | * src/image.c (Fimage_transforms_p): * doc/lispref/display.texi (Image Descriptors): image-transforms-p now returns at most (scale rotate90), even if ImageMagick is available.
* | | ; Auto-commit of loaddefs files.Glenn Morris2019-07-011-54/+86
| | |
* | | Extract gnus-collect-urls from gnus-summary-browse-urlSam Steingold2019-07-011-15/+16
| | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-sum.el (gnus-collect-urls): Extract from ... (gnus-summary-browse-url): Use it here. Extracting URLs from an article will be useful in BBDB interaction.
* | | Implement the otf_capability method for HarfBuzzYAMAMOTO Mitsuharu2019-07-016-0/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/hbfont.c: Include hb-ot.h. [HAVE_NTGUI]: Add DEF_DLL_FN and #define for hb_tag_to_string, hb_font_get_face, hb_ot_layout_table_get_script_tags, hb_ot_layout_table_get_feature_tags, hb_ot_layout_script_get_language_tags, and hb_ot_layout_language_get_feature_tags. (hbfont_init_w32_funcs) [HAVE_NTGUI]: Add LOAD_DLL_FN for them. (hbfont_otf_features, hbfont_otf_capability): New functions. * src/font.h (hbfont_otf_capability) [HAVE_HARFBUZZ]: Add extern. * src/ftcrfont.c (syms_of_ftcrfont_for_pdumper) [HAVE_HARFBUZZ]: * src/ftfont.c (syms_of_ftfont_for_pdumper) [HAVE_HARFBUZZ]: * src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper) [HAVE_HARFBUZZ]: * src/xftfont.c (syms_of_xftfont_for_pdumper) [HAVE_HARFBUZZ]: Populate otf_capability method with hbfont_otf_capability.
* | | Remove divide_doublePaul Eggert2019-06-301-15/+9
| | | | | | | | | | | | | | | | | | * src/image.c (divide_double): Remove. All uses replaced with inline equivalents. Suggested by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2019-06/msg01067.html
* | | C++ Mode: change the default doc comment style from nothing to gtkdocAlan Mackenzie2019-06-302-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also amend a pertinent regular expression. This fixes bug #11865. * lisp/progmodes/cc-vars.el (c-doc-comment-style): Insert an entry for c++-mode, namely gtkdoc. * lisp/progmodes/cc-fonts.el (gtkdoc-font-lock-keywords): Amend the regexp recognizing the introductory "/**" to allow subsequent characters on that line.
* | | ; Fix last change to profiler-reportBasil L. Contovounesios2019-06-301-0/+1
| | | | | | | | | | | | | | | * lisp/profiler.el (profiler-report): Make interactive again (bug#22114).
* | | Release Tramp 2.4.2Michael Albinus2019-06-302-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el: Bump version. * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case): Add `add-name-to-file' error message. (tramp--test-ignore-add-name-to-file-error): Make error handler more explicit about the error.
* | | Doc fixAndreas Schwab2019-06-301-2/+2
| | | | | | | | | | | | | | | | | | * doc/emacs/display.texi (Displaying Boundaries): Document display-fill-column-indicator-character, not display-fill-column-indicator-char.
* | | Fix use of undefined macroAndreas Schwab2019-06-302-48/+48
| | | | | | | | | | | | | | | | | | | | | * src/xdisp.c (append_space_for_newline): Use FRAME_FONT only inside HAVE_WINDOW_SYSTEM. (extend_face_to_end_of_line): Likewise. (syms_of_xdisp): Doc fix.
* | | Fix negation in elements of OTF feature listYAMAMOTO Mitsuharu2019-06-302-2/+2
| | | | | | | | | | | | | | | * src/ftfont.c (ftfont_get_open_type_spec): * src/macfont.m (macfont_get_open_type_spec): Take bitwise or instead of and.
* | | Fix error in mouse-set-font on GTK 3 with Harfbuzz (Bug#36288)YAMAMOTO Mitsuharu2019-06-301-11/+4
| | | | | | | | | | | | | | | | | | * src/gtkutil.c (xg_get_font) [HAVE_GTK3]: Remove type property from font spec. This effectively undoes the fix for Bug#3228, but gives consistent results overall.
* | | * src/xfns.c (x_create_tip_frame): Support inhibit-double-buffering.YAMAMOTO Mitsuharu2019-06-301-0/+4
| | |
* | | * src/xfns.c (Fx_show_tip): Call flush_frame. (Bug#34819)YAMAMOTO Mitsuharu2019-06-301-0/+1
| | |
* | | Pacify gcc and other image rotation tweaksPaul Eggert2019-06-291-74/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/image.c: No need to include <float.h> as lisp.h does that. (matrix3x3_copy): Remove; no longer needed. (divide_double): New function, to avoid undefined behavior when dividing by zero on non-IEEE hosts. (image_set_transform): Simplify transformation computation by avoiding the need to copy a matrix. Pacify gcc 9 -Wdouble-promotion and -Wmaybe-uninitialized. Avoid unnecessary assignment of width and height. Improve error reporting for unsupported native image rotation.
* | | Simplify workaround for Cygwin O_PATH bugKen Brown2019-06-292-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | Suggested by Paul Eggert (Bug#36405#22). * configure.ac (HAVE_CYGWIN_O_PATH_BUG): New AC_DEFINE, for Cygwin versions 3.0.0 through 3.0.7. * src/dired.c (O_PATH) [__CYGWIN__]: Remove #undef. (file_attributes) [HAVE_CYGWIN_O_PATH_BUG]: Don't use O_PATH.
* | | Support native image transforms on MS-WindowsEli Zaretskii2019-06-298-249/+272
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset also rearranges native image transform code for other platforms to make it cleaner, and also removes the support for native cropping. For the discussions, see https://lists.gnu.org/archive/html/emacs-devel/2019-06/msg00242.html * src/w32term.c (w32_image_rotations_p, transform): New functions. (w32_draw_image_foreground): If image rotation is requested and supported, call PlgBlt to transform the image. (w32_initialize): Populate the PlgBlt function pointer if it is supported. * src/w32term.h (w32_image_rotations_p): Add prototype. * src/dispextern.h (struct image) [HAVE_NTGUI]: New member xform. * src/image.c (compute_image_rotation): Renamed from image_set_rotation. Only compute and returns the rotation angle; leave the matrix calculation for later. Log an error message if the :rotation parameter is not a number. (image_set_crop): Function deleted. We no longer support native cropping, as one can display an image slice instead. (image_set_transform): Compute the transform matrix in its entirety here, in two variants: one for XRender and Cairo, the other for NS and MS-Windows. call compute_image_size and compute_image_rotation internally. (lookup_image) [HAVE_NATIVE_TRANSFORMS]: Call only image_set_transform. No need to pass the transform matrix to image_set_transform. (Fimage_transforms_p): Return a list of transform capabilities rather than a simple boolean. Support TTY frames as well. * src/nsimage.m (setTransform:): Don't invert the matrix, as it is already inverted in image.c. * test/manual/image-transforms-tests.el (test-cropping): State in the text that only ImageMagick supports cropping. * doc/lispref/display.texi (Image Descriptors): Update the documentation of native image transforms. (ImageMagick Images): Move the description of ':crop' here. * etc/NEWS: Minor copyedits of the feature announcement.
* | | Fix recent change in TrampShuguang Sun2019-06-293-47/+42
| | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el: * lisp/net/tramp-archive.el: * lisp/net/tramp-integration.el: Remove superfluous `progn' in `with-eval-after-load'.
* | | Cosmetic fix-up of message-forward-included-headersLars Ingebrigtsen2019-06-291-1/+1
| | | | | | | | | | | | | | | * lisp/gnus/message.el (message-forward-included-headers): Use consistent capitalization in the regexps.
* | | Fix display of fringe bitmaps for tooltips in echo areaEli Zaretskii2019-06-291-0/+9
| | | | | | | | | | | | | | | | | | * src/xdisp.c (display_line): Force redrawing of fringe bitmaps when redisplaying a minibuffer window with truncate-lines set to a non-nil value. (Bug#36308)
* | | Allow empty argument to `regexp-opt-charset'Mattias Engdegård2019-06-292-13/+36
| | | | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/regexp-opt-tests.el (regexp-opt-charset): Handle nil argument, and use regexp-quote for singletons. * lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Expand tests.
* | | Revert O_PATH change to fileio.cPaul Eggert2019-06-281-4/+0
| | | | | | | | | | | | | | | Ken Brown pointed out it wasn’t needed (Bug#36405#16): * src/fileio.c (O_PATH) [__CYGWIN__]: Remove #undef.
* | | * test/src/json-tests.el (json-serialize/object): Fix spacing.Andreas Schwab2019-06-291-2/+2
| | |
* | | Fix json-serialize/object test failurePip Cet2019-06-281-1/+2
| | | | | | | | | | | | | | | * test/src/json-tests.el (json-serialize/object): Accept failure with different code.
* | | Strength-reduce `equal', `eql', `member' and `memql'Mattias Engdegård2019-06-281-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | When comparing against symbols, turn `equal' and `eql' into `eq', and `member' and `memql' into `memq'. * lisp/emacs-lisp/byte-opt.el (byte-optimize--constant-symbol-p) (byte-optimize-equal, byte-optimize-member): New. (member, memql, equal, eql): Use new byte-optimizers.
* | | Document bookmark annotations in Emacs Manual (bug#36417)Stefan Kangas2019-06-282-4/+8
| | | | | | | | | | | | | | | * doc/emacs/regs.texi (Bookmarks): Document annotations. * lisp/bookmark.el (bookmark-use-annotations): Clarify docstring.
* | | Correct regexp matching of raw bytesMattias Engdegård2019-06-282-4/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make regexp matching of raw bytes work in all combination of unibyte and multibyte patterns and targets, as exact strings and in character alternatives (bug#3687). * src/regex-emacs.c (analyze_first): Include raw byte in fastmap when pattern is a multibyte exact string. Include leading byte in fastmap for raw bytes in character alternatives. (re_match_2_internal): Decrement the byte count by the number of bytes in the pattern character, not 1. * test/src/regex-emacs-tests.el (regexp-unibyte-unibyte) (regexp-multibyte-unibyte, regexp-unibyte-mutibyte) (regexp-multibyte-multibyte): New tests.
* | | Tramp requires Emacs 24.4Michael Albinus2019-06-2815-210/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Frequently Asked Questions): Use `with-eval-after-load'. in example. * doc/misc/trampver.texi: Set variable emacsver. * lisp/net/tramp.el (tramp-send-string, tramp-call-process) (tramp-call-process-region, tramp-process-lines): * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename) (tramp-adb-sh-fix-ls-output, tramp-adb-maybe-open-connection): * lisp/net/tramp-gvfs.el (tramp-gvfs-get-directory-attributes) (tramp-gvfs-handle-file-notify-add-watch) * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename) (tramp-do-copy-or-rename-file-out-of-band) (tramp-sh-handle-file-notify-add-watch, tramp-find-executable) (tramp-set-remote-path) (tramp-open-connection-setup-interactive-shell) (tramp-maybe-open-connection, tramp-send-command): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-file-acl, tramp-smb-handle-process-file) (tramp-smb-handle-set-file-acl) (tramp-smb-handle-start-file-process) (tramp-smb-maybe-open-connection): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-acl): (tramp-sudoedit-send-command): Use `string-join' and `string-empty-p'. * lisp/net/tramp-adb.el: * lisp/net/tramp-archive.el: * lisp/net/tramp-integration.el: * lisp/net/tramp-ftp.el: Use `with-eval-after-load'. * lisp/net/tramp-cmds.el (tramp-cleanup-connection) (tramp-cleanup-all-connections): Cancel timer. * lisp/net/tramp-compat.el (subr-x): Require. (default-toplevel-value): Don't make it a defalias. * lisp/net/tramp-gvfs.el: Use `dbus-event-error-functions'. Do not special handle `split-string'. * lisp/net/tramp.el: Require Emacs 24.4. (tramp-password-prompt-regexp): Use `password-word-equivalents'. (tramp-user-error): Use `user-error'. (tramp-replace-environment-variables): Use `substitute-env-vars'. (tramp-wait-for-regexp): Rearrange `with-current-buffer' call. (tramp-get-local-gid): Use `group-gid'. * lisp/net/trampver.el: Check for Emacs 24.4. * test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect) (tramp-test02-file-name-dissect-simplified) (tramp-test02-file-name-dissect-separate) (tramp-test03-file-name-host-rules) (tramp-test03-file-name-method-rules): Don't check for `user-error'.
* | | Doc fix for Gnus "very wide" reply commandsLars Ingebrigtsen2019-06-281-6/+18
| | | | | | | | | | | | | | | * lisp/gnus/gnus-msg.el (gnus-summary-very-wide-reply-with-original) (gnus-summary-very-wide-reply): Clarify what a "very wide reply" is.
* | | Revert "Fontify _emphasis_ in info nodes"Lars Ingebrigtsen2019-06-281-17/+0
| | | | | | | | | | | | | | | | | | This reverts commit 72963b4e82eef5767e3172f28bd9bd97f487c98a. The change incorrectly fontified whole sentences as emphasis.
* | | Include To and Cc headers when forwarding with MessageLars Ingebrigtsen2019-06-281-1/+1
| | | | | | | | | | | | | | | * lisp/gnus/message.el (message-forward-included-headers): Include more of the important headers when forwarded: To and Cc.
* | | * lisp/gnus/gnus-art.el (gnus-article-stop-animations):Michael Albinus2019-06-281-4/+1
| | | | | | | | | | | | Use `cancel-function-timers'.
* | | More readable regexp debug outputMattias Engdegård2019-06-281-10/+22
| | | | | | | | | | | | | | | | | | | | | * src/regex-emacs.c (debug_putchar): New. (print_fastmap, print_partial_compiled_pattern, print_double_string) (regex_compile): Use debug_putchar. (re_match_2_internal): Add newline.
* | | Consistently use stderr for debug output in regexp codeMattias Engdegård2019-06-281-17/+18
| | | | | | | | | | | | | | | * src/regex-emacs.c (DEBUG_PRINT, print_fastmap, print_compiled_pattern) (print_double_string, regex_compile): Print to stderr instead of stdout.
* | | Don't inhibit quit in Gnus when prefetching articlesLars Ingebrigtsen2019-06-281-2/+9
| | | | | | | | | | | | | | | * lisp/gnus/gnus-async.el (gnus-async-prefetch-next): Don't inhibit quit when running `gnus-async-prefetch-article'.
* | | * lisp/simple.el (undo): Make message less enthusiasticAlex Branham2019-06-271-1/+1
| | |