aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Simplify xd_signature to pacify GCC 9Paul Eggert2019-05-031-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * src/dbusbind.c (xd_signature): Use simpler way to set up the subsignature. This also pacifies GCC 9 on Fedora 30 x86-64.
* | | | | Update from GnulibPaul Eggert2019-05-031-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This incorporates: 2019-05-03 Port manywarnings to GCC 9 * m4/manywarnings.m4: Copy from Gnulib.
* | | | | Add tests for remote files in auto-revert-testsMichael Albinus2019-05-035-105/+237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/autorevert.el (auto-revert-debug): New defvar. (auto-revert-notify-handler): Write traces. * lisp/filenotify.el (file-notify-debug): New defvar. (file-notify-handle-event, file-notify-callback): Write traces. * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered): Handle nil `vc-handled-backends'. * test/lisp/autorevert-tests.el (auto-revert-test-remote-temporary-file-directory): New defconst. Handle also $REMOTE_FILE_NOTIFY_LIBRARY. (auto-revert--test-enabled-remote-checked): New defvar. (auto-revert--test-enabled-remote): New defun. (auto-revert--wait-for-revert): Rewrite without timeout. (auto-revert--deftest-remote): New defmacro. (auto-revert-test01-auto-revert-several-files): (auto-revert-test02-auto-revert-deleted-file): Adapt for remote files. (auto-revert-test02-auto-revert-deleted-file): Use `auto-revert-debug' for debug messages. (auto-revert-test00-auto-revert-mode-remote) (auto-revert-test01-auto-revert-several-files-mode-remote) (auto-revert-test02-auto-revert-deleted-file-mode-remote) (auto-revert-test03-auto-revert-tail-mode-mode-remote) (auto-revert-test04-auto-revert-mode-dired-mode-remote): New tests. * test/lisp/filenotify-tests.el (file-notify--test-event-handler): Use `file-notify-debug' for debug messages.
* | | | | Fix Gnus inline attachment decoding (bug#35507)Basil L. Contovounesios2019-05-031-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Proposed by Andy Moreton <andrewjmoreton@gmail.com> and Noam Postavsky <npostavs@gmail.com>. * lisp/gnus/mm-view.el (mm-display-inline-fontify): Always decode handle text, falling back on 'undecided' coding system.
* | | | | * lisp/server.el: Cosmetic changesStefan Monnier2019-05-031-29/+24
| | | | | | | | | | | | | | | | | | | | | | | | | Remove redundant :group args. (server-temp-file-regexp): Fix ^$ to \`\'.
* | | | | Improve documentation of 'isearch-regexp-function'Eli Zaretskii2019-05-031-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/isearch.el (isearch-regexp-function): Doc fix. (Bug#35498)
* | | | | ; Fix declaration in tramp-compat.elMichael Albinus2019-05-031-2/+2
| | | | |
* | | | | Refactor update_window_begin and update_window_end hooksAlexander Gramiak2019-05-026-243/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug#35464. * src/dispnew.c (gui_update_window_begin, gui_update_window_end): New procedures implementing common functionality. * src/nsterm.m: (ns_update_window_begin, ns_update_window_end): * src/xterm.c: (x_update_window_begin, x_update_window_end): Remove in favor of only using the new generic versions. * src/w32term.c: (w32_update_window_begin, w32_update_window_end): Remove duplicated and unused code.
* | | | | xref--find-ignores-arguments: Return "" if IGNORES is nilDmitry Gutov2019-05-031-1/+2
| | | | |
* | | | | Allow project-find-regexp'ing inside an ignored dirDmitry Gutov2019-05-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/project.el (project-find-regexp): Don't pass project's ignores to project--files-in-directory. The FILES glob should be enough, and we don't want to prohibit searching inside ignored directories this way (it can be counter-intuitive).
* | | | | (xref--mouse-2): Fix not to jump to the next lineDmitry Gutov2019-05-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/xref.el (xref--mouse-2): Fix not to jump to the next line.
* | | | | Fix an "empty identifier" problemDmitry Gutov2019-05-031-12/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/xref.el (xref--read-identifier): Abort on empty input if there is no default (https://lists.gnu.org/archive/html/help-gnu-emacs/2019-05/msg00012.html).
* | | | | Fix fontification of first item in CC Mode macro without parenthesesAlan Mackenzie2019-05-022-22/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-engine.el (c-find-decl-prefix-search): Handle the new matching possibility (of a #define construct) in the new c-decl-prefix-or-start-re. (c-find-decl-spots): Allow the initial search for an in-macro starting point settle on the # of #define, to facilitate the regexp matching in c-find-decl-prefix-search. * lisp/progmodes/cc-langs.el (c-anchored-hash-define-no-parens): New lang const. (c-literal-start-regexp): Correct what was always supposed to be a "generic string" regexp element. (c-decl-prefix-or-start-re): Enhance also to match "#define <identifier>". (c-dposr-cpp-macro-depth): New lang variable and lang constant.
* | | | | * lisp/mail/footnote.el: Add TEXT and POINTERS togetherStefan Monnier2019-05-021-71/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than adding POINTERS and TEXT separately to footnote--markers-alist, add them together, so we don't need footnote--first-text-marker because the TEXT part is never nil. (footnote--insert-numbered-footnote): Return marker. (footnote--insert-text-marker, footnote--insert-pointer-marker): Delete functions. (footnote--insert-markers): New function to replace them. (footnote--insert-footnote): Adjust accordingly. Simplify pointless `unless`. (footnote--first-text-marker): Remove. Replace all calls by (cadr (car footnote--markers-alist)) or just footnote--markers-alist.
* | | | | CC Mode: Fix multiline block comments in macros.Alan Mackenzie2019-05-022-9/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particulr, handle multiline block comments whose newlines are not escaped. There is an example of this in #define EXTRA_CONTEXT_FIELDS in editfns.c. * lisp/progmodes/cc-engine.el (c-beginning-of-macro, c-end-of-macro): Enclose the loops scanning escaped newlines with outer loops which check heuristically for, respectively, a block comment ender and a block comment starter on the lines we end up on. (A rigorous syntactic check would be too slow, here.) * lisp/progmodes/cc-langs.el (c-last-c-comment-end-on-line-re) (c-last-open-c-comment-start-on-line-re): New language constants/variables.
* | | | | * lisp/mail/footnote.el: Tweak markers conventionStefan Monnier2019-05-022-55/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of using markers that are sometimes before and sometimes after the [...] and using `insert-before-markers` to make sure those that are are before stay before, always place them before, and make them "move after"so they stay with their [...] without the need for insert-before-markers. (footnote--current-regexp): Add arg to match previous style. Include the start/end "tags" in the regexp. Adjust all callers. (footnote--markers-alist): Change position of POINTERS. (footnote--refresh-footnotes, footnote--renumber) (footnote--make-hole, footnote-delete-footnote) (footnote-back-to-message): Adjust accordingly, mostly by using `looking-at` instead of `looking-back`. (footnote--make-hole): Always return footnote nb to use. (footnote-add-footnote): Simplify call accordingly. * test/lisp/mail/footnote-tests.el: New file.
* | | | | use view-mode on score file for ease of scrolling and quittingSam Steingold2019-05-021-1/+3
| | | | |
* | | | | tetris-null-map: bind "q" to `quit-window`Sam Steingold2019-05-021-0/+1
| | | | |
* | | | | Small code clean-up of file-notify-add-watchMattias Engdegård2019-05-021-63/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/filenotify.el (file-notify-add-watch): Clearly separate backend-specific code from the rest, and simplify. (file-notify--add-watch-inotify, file-notify--add-watch-kqueue) (file-notify--add-watch-w32notify, file-notify--add-watch-gfilenotify): New functions.
* | | | | * lisp/mail/footnote.el: Use dolist and hoist regexps out of loopsStefan Monnier2019-05-021-106/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (footnote--refresh-footnotes): Use pcase-dolist; compute regexp once outside of the loops. Use less confusing `literal` arg to `replace-match` and specify `fixedcase` since footnote--index-to-string already chose the proper case for us. (footnote--renumber): Use dolist; compute regexp once outside of the loops; shortcircuit when number is unchanged. (footnote--text-under-cursor): Rewrite. (footnote--make-hole): Use dolist. (footnote-add-footnote): CSE. (footnote-delete-footnote): Use dolist; compute regexp once outside of the loop. (footnote-delete-footnote): Don't renumber if there's no footnote left. (footnote-renumber-footnotes): Use dolist.
* | | | | Fix tramp-compat-file-name-quoted-pMichael Albinus2019-05-021-32/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-compat.el (tramp-compat-file-local-name) (tramp-compat-file-name-quoted-p): Declare them. (top): Do not use `eval-and-compile'. (tramp-compat-file-name-quoted-p): Check also func-arity of `file-name-quoted-p'.
* | | | | * lisp/mail/footnote.el: Consolidate the two marker-alistsStefan Monnier2019-05-011-97/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Consolidate footnote-text-marker-alist and footnote-pointer-marker-alist into a single footnote--markers-alist. (footnote--markers-alist): New var. (footnote-text-marker-alist, footnote-pointer-marker-alist): Delete vars. (footnote--refresh-footnotes, footnote--text-under-cursor) (footnote--calc-fn-alignment-column, footnote-add-footnote) (footnote-goto-footnote, footnote-back-to-message): Adjust accordingly. (footnote--make-hole, footnote-delete-footnote) (footnote-renumber-footnotes): Simplify accordingly. (footnote-cycle-style): Indicate style name in echo area. (footnote--renumber): Take a single `alist-elem` arg instead of `pointer-alist` and `text-alist`. (footnote--insert-text-marker, footnote--insert-pointer-marker): Add to footnote--markers-alist instead. (footnote--first-text-marker): New function. (footnote--get-area-point-min): Use it. footnote--goto-first): New function. (footnote--insert-footnote): Use it. (footnote-style-number): Use defvar-local.
* | | | | * lisp/mail/footnote.el: Minor simplificationsStefan Monnier2019-05-011-67/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove redundant :group args. (footnote-mode-hook): Let define-minor-mode define it. (footnote--style-p): Delete function. (footnote--index-to-string): Inline it instead, and simplify. (footnote-cycle-style): Use a pointer into the alist as the "index" instead of a number. (footnote-set-style): Use footnote-style-alist as the completion table. Prefer `assq` over `footnote--assoc-index`. (footnote--assoc-index): Delete function. (footnote--renumber): Remove first (unused) argument; Adjust all callers. (footnote--sort): Use car-less-than-car.
* | | | | Restore previous calling signature of gnus-set-infoLars Ingebrigtsen2019-05-011-1/+1
| | | | |
* | | | | * lisp/emacs-lisp/edebug.el: Better handle instrumentation of `end-of-defun`Stefan Monnier2019-05-011-51/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove redundant :group args. (edebug-read-top-level-form): Let-bind edebug-active. (edebug-active): Move before this new first use.
* | | | | * lisp/help.el (function-called-at-point): Use Elisp's forward-sexp-functionStefan Monnier2019-05-011-11/+13
| | | | |
* | | | | ; * etc/NEWS: Fix position of +++ markerBasil L. Contovounesios2019-05-011-1/+1
| | | | |
* | | | | ; Auto-commit of loaddefs files.Glenn Morris2019-05-011-56/+72
| | | | |
* | | | | Minor region-noncontiguous-p simplificationBasil L. Contovounesios2019-05-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/simple.el (region-noncontiguous-p): Don't needlessly traverse region-bounds.
* | | | | * lisp/progmodes/cc-engine.el: Silence minor compiler warningsStefan Monnier2019-04-301-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (c-restricted-<>-arglists, c-parse-and-markup-<>-arglists): Move declaration before first use. (c-after-change-unmark-raw-strings): Remove unused var `found-end`.
* | | | | Fix decode-time/encode-time roundtrip on macOSPaul Eggert2019-04-302-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/timefns.c (Fencode_time): Ignore DST flag when the zone is numeric or is a cons, as the doc string says it’s ignored in that case, and not ignoring it causes encode-time to not invert decode-time on some platforms (Bug#35502). * test/src/timefns-tests.el (encode-time-dst-numeric-zone): New test.
* | | | | * lisp/progmodes/cc-fonts.el: Silence some compiler warningsStefan Monnier2019-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | (c-font-lock-declarators): Mark `id_end` and `not-top` as unused.
* | | | | Update from GnulibPaul Eggert2019-04-306-358/+349
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * build-aux/config.guess, doc/misc/texinfo.tex: * lib/mktime-internal.h, lib/mktime.c, lib/timegm.c: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate.
* | | | | * lisp/autorevert.el (auto-revert-avoid-polling): Fix :set form.Mattias Engdegård2019-04-301-1/+2
| | | | |
* | | | | CC Mode: in certain font lock loops, check point is not beyond limit.Alan Mackenzie2019-04-301-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * /lisp/progmodes/cc-fonts.el (c-font-lock-enum-body) (autodoc-font-lock-line-markup): As part of the `while' condition, check that the previous iteration of the loop hasn't moved point past `limit', thus obviating "wrong side of point" errors in re-search-forward, etc.
* | | | | Don't poll auto-revert files that use notification (bug#35418)Mattias Engdegård2019-04-303-37/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is a waste to periodically poll files that use change notification in auto-revert mode; stop doing that. If no files need polling, turn off the periodic execution entirely to further avoid wasting power. Use a timer to inhibit immediate reversion for some time after a notification, for throttling. This change does not apply to files in global-auto-revert-mode, where polling is still necessary. It is disabled by default, and enabled by setting `auto-revert-avoid-polling' to non-nil. * lisp/autorevert.el (toplevel): Require cl-lib. (auto-revert-avoid-polling, auto-revert--polled-buffers) (auto-revert--need-polling-p, auto-revert--lockout-interval) (auto-revert--lockout-timer, auto-revert--end-lockout): New. (global-auto-revert-mode): Keep notifiers for buffers in auto-revert mode. (auto-revert-set-timer): Use auto-revert--need-polling-p. (auto-revert-notify-handler): Restart polling if notification stopped. Use new lockout timer. (auto-revert-buffers): Use auto-revert--polled-buffers and auto-revert--need-polling-p. (auto-revert-buffers-counter, auto-revert-buffers-counter-lockedout): Remove. * etc/NEWS (Changes in Specialized Modes and Packages): Describe the new auto-revert-avoid-polling variable. * doc/emacs/files.texi (Reverting): Add paragraph describing auto-revert-avoid-polling.
* | | | | Refrain from splicing anonymous faces in text propertiesStefan Monnier2019-04-291-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/font-lock.el (font-lock-prepend-text-property): Distinguish list of faces from property lists. (font-lock-ensure-function): Remove redundant code.
* | | | | * lisp/international/mule-util.el: Avoid setq; clarify meaning of -1.Stefan Monnier2019-04-291-13/+11
| | | | |
* | | | | Sync latest SKK-JISYO.LPaul Eggert2019-04-292-50/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem reported by Tsuyoshi Kitamoto (Bug#35442). * leim/SKK-DIC/README: Update to current URL. * leim/SKK-DIC/SKK-JISYO.L: Sync to current upstream version.
* | | | | Disable __attribute__ ((cold)) on MinGWPaul Eggert2019-04-291-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * src/conf_post.h (ATTRIBUTE_COLD) [__MINGW32__]: Define to empty on this platform.
* | | | | Merge from origin/emacs-26Glenn Morris2019-04-293-3/+10
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c26d452 (origin/emacs-26) * src/macfont.m (macfont_shape): Use conven... 140e7f8 Recommend using font-lock-face over face (Bug#35044) 7cb5364 Check if mouse_face_overlay was deleted (Bug#35273) # Conflicts: # src/macfont.m
| * | | | * src/macfont.m (macfont_shape): Use convenient LGLYPH_NEW.YAMAMOTO Mitsuharu2019-04-291-1/+1
| | | | |
| * | | | Recommend using font-lock-face over face (Bug#35044)Noam Postavsky2019-04-281-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/modes.texi (Precalculated Fontification): Explain advantages of using font-lock-face over face.
| * | | | Check if mouse_face_overlay was deleted (Bug#35273)Noam Postavsky2019-04-281-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/xdisp.c (note_mouse_highlight): Check if the mouse_face_overlay actually points to a buffer, before calling mouse_face_overlay_overlaps on it.
* | | | | ; Merge from origin/emacs-26Glenn Morris2019-04-290-0/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | The following commit was skipped: 531c74e Port to platforms where tputs is in libtinfow
| * | | | Port to platforms where tputs is in libtinfowPaul Eggert2019-04-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (tputs_library): Also try tinfow, ncursesw (Bug#33977). (cherry picked from commit a3d52b3057c98bce581bc94912ef3ced6fad6f14)
* | | | | Merge from origin/emacs-26Glenn Morris2019-04-295-14/+48
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | 0e8d452 ; * doc/lispref/nonascii.texi (Coding System Basics): Fix gra... 25a2ff7 ; Add missing space in custom.texi 9ec18fb * admin/admin.el (set-version): Check for increase in version... 93912ba Be more careful about indent-sexp going over eol (Bug#35286)
| * | | | ; * doc/lispref/nonascii.texi (Coding System Basics): Fix grammar.Charles A. Roelli2019-04-261-1/+1
| | | | |
| * | | | ; Add missing space in custom.texiMichael Albinus2019-04-251-1/+1
| | | | |
| * | | | * admin/admin.el (set-version): Check for increase in version length,Glenn Morris2019-04-221-4/+4
| | | | | | | | | | | | | | | | | | | | rather than a .50 version.