- 07 Dec, 2019 11 commits
-
-
Jackson Ray Hamilton authored
* lisp/progmodes/js.el (js-jsx--matching-close-tag-pos): Ignore comments and strings. * test/manual/indent/jsx-comment-string.jsx: New test.
-
Jackson Ray Hamilton authored
-
Jackson Ray Hamilton authored
-
Alan Mackenzie authored
This contrasts with the previous state where no such functions got called. This fixes bug #38406. * lisp/progmodes/cc-cmds.el (c--unsafe-post-self-insert-hook-functions): New variable. (c--call-post-self-insert-hook-more-safely-1): New function. (c--call-post-self-insert-hook-more-safely): New macro. (c-electric-pound, c-electric-brace, c-electric-slash, c-electric-star) (c-electric-semi&comma, c-electric-colon, c-electric-lt-gt, c-electric-paren): Invoke c--call-post-self-insert-hook-more-safely (which calls most of the hook post-self-insert-hook) at the end of each of the commands.
-
Michael Albinus authored
* lisp/net/tramp-integration.el (info-lookup->mode-cache) (info-lookup->topic-cache, info-lookup-alist): Declare. (ido, ivy, info-look): Adapt `tramp-integration-unload-hook'.
-
Eli Zaretskii authored
* doc/misc/semantic.texi (Parser code, Tag handling) (Semanticdb Internals, Analyzer Internals, Tools): Fix file names according to what was actually imported from the original CEDET. (Bug#38451)
-
Eli Zaretskii authored
* lisp/server.el (server-process-filter): Fix the description of "-position" command to match the reality. (Bug#38443)
-
Andrii Kolomoiets authored
* lisp/progmodes/python.el (python-pdbtrack-unset-tracked-buffer): Check if buffer `python-pdbtrack-tracked-buffer' is alive. (Bug#38413)
-
Eli Zaretskii authored
* src/keyboard.c (read_key_sequence): Modify the fix for bug#37782 so that it applies only to keyboard keys, not to other events, such as a new buffer. (Bug#38132)
-
Eli Zaretskii authored
* doc/lispref/files.texi (Saving Buffers): Remove the reference to the obsolete Fast Lock mode. (Bug#37956)
-
Eli Zaretskii authored
* lisp/ses.el (1value, noreturn): Macros deleted, as we nowadays have them in subr.el. (Bug#38514)
-
- 06 Dec, 2019 9 commits
-
-
Paul Eggert authored
Adapted from tests written by Stephen Gildea. * test/src/timefns-tests.el: (format-time-string-padding-minimal-deletes-unneeded-zeros) (format-time-string-padding-minimal-retains-needed-zeros) (format-time-string-padding-spaces) (format-time-string-padding-zeros-adds-on-insignificant-side): New tests.
-
Paul Eggert authored
This incorporates: 2019-12-06 nstrftime: better width support for %N, %z 2019-12-03 Avoid hassles caused by [[noreturn]] in C++ 2019-12-02 Fix mistakes in --enable-threads=isoc fixes from 2019-12-01 * admin/merge-gnulib (AVOIDED_MODULES): Avoid pthread-h. * lib/_Noreturn.h, lib/nstrftime.c, m4/gnulib-common.m4: * m4/timer_time.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate.
-
Michael Albinus authored
* lisp/net/tramp-integration.el (info-lookup->cache) (info-lookup->mode-value, info-lookup->other-modes) (info-lookup->topic-value, info-lookup-maybe-add-help) (info-lookup-cache): Declare. (info-look): Configure info-look.el to recognize Tramp symbols.
-
Eli Zaretskii authored
* lisp/simple.el (default-font-height, default-font-width) (default-line-height): Say in the doc strings that the default face these functions use is for the currently selected frame. * doc/lispref/display.texi (Attribute Functions) (Low-Level Font): Document more clearly the dependence of the results of 'face-font', 'default-font-width', and 'default-font-height' on the frame's definition of the default face.
-
Eli Zaretskii authored
* src/marker.c (set_marker_internal): Handle the case where POSITION is beyond PTRDIFF_MAX, which can happen if Emacs was built --with-wide-int. Bug uncovered by the recently added overlay tests.
-
Thierry Volpiatto authored
-
Thierry Volpiatto authored
`completion-pcm--hilit-commonality` so that these faces doesn't override possible already existing faces in other UIs. * lisp/minibuffer.el (completion-pcm--hilit-commonality): Use `add-face-text-property` instead of `put-text-property`.
-
Andreas Politz authored
Taken from the `feature/noverlay` branch. Suggested by Vladimir Kazanov <vekazanov@gmail.com>.
-
Paul Eggert authored
* lisp/org/org-agenda.el (org-agenda-filter): Fix unescaped literal ‘+’ in regexp. Reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-12/msg00215.html * lisp/org/org.el (org-clone-subtree-with-time-shift): Fix a regexp typo that mishandled strings like ‘\1d’, reported by the same emaikl. * lisp/progmodes/verilog-mode.el (verilog-inject-inst): Omit unnecessary ‘?’ in regexp. Reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-12/msg00217.html
-
- 05 Dec, 2019 7 commits
-
-
Eli Zaretskii authored
* src/xfaces.c (face_inherited_attr): Support also values of :inherit which are lists. (Bug#37774)
-
Eli Zaretskii authored
* lisp/jit-lock.el (jit-lock-antiblink-grace): * etc/NEWS (value): Reword the NEWS entry and the doc string.
-
Eli Zaretskii authored
* test/data/emacs-module/mod-test.c (extract_big_integer): Fix calculation of size of 'magnitude' when 'emacs_limb_t' is wider than 'unsigned long'. * test/src/emacs-module-tests.el (module--test-assertions--load-non-live-object) (module--test-assertions--call-emacs-from-gc): On MS-Windows, check also mod-test-emacs with ".exe" appended, before skipping the tests.
-
Federico Tedin authored
* lisp/simple.el (minibuffer-history-values): New function, should be used to access the minibuffer input history variable when the minibuffer might be active. If the variable is buffer-local, the previous buffer's value will be used. (goto-history-element): Use the new function to access the minibuffer history. (minibuffer-history-isearch-wrap): Use the new function to access the minibuffer history. * src/minibuf.c (read_minibuf): Switch to previous buffer temporarily before updating history list (Bug#38317). (read-from-minibuffer): Extend documentation to mention that the result of using the command will be added to the history list by default. * doc/lispref/minibuf.texi (Minibuffer History): Mention the possibility of using a buffer-local variable as history. * etc/NEWS: Announce changes.
-
Paul Eggert authored
* src/emacs-module.c (module_encode): Remove unused decl. (module_extract_big_integer): Pacify gcc -Wenum-compare.
-
Paul Eggert authored
Problems reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-12/msg00066.html * lisp/gnus/gnus-util.el (gnus-emacs-version): * lisp/mail/rfc2368.el (rfc2368-mailto-regexp): * lisp/net/tramp-sh.el (tramp-sh-inotifywait-process-filter): * lisp/obsolete/terminal.el (te-parse-program-and-args): * lisp/org/org-table.el (org-table-wrap-region): * lisp/progmodes/verilog-mode.el (verilog-inject-inst): Avoid repetition-of-repetition in regexp.
-
Philipp Stephani authored
* src/module-env-27.h: * src/emacs-module.c (module_make_big_integer): Use 'emacs_limb_t' instead of 'unsigned long' consistently
-
- 04 Dec, 2019 13 commits
-
-
Juri Linkov authored
(tab-line-format): Cache the result of tab-line-format-template in window. (tab-line-format-template): New function that returns the value to cache.
-
Juri Linkov authored
(windmove-display-default-keybindings): Bind it to '?t'. (windmove-display-in-direction): Call tab-bar-new-tab when 'dir' is 'new-tab'.
-
Juri Linkov authored
-
Juri Linkov authored
(tab-bar--tab): Use float-time instead of integer. This improves correct detection of recent tabs switched within 1 sec. (tab-bar--current-tab, tab-bar--current-tab-index) (tab-bar--tab-index, tab-bar--tab-index-by-name) (tab-bar--tab-index-recent): Add optional arg FRAME. (tab-bar-move-tab-to-frame): Add with-selected-frame for tab-bar-close-tab. (tab-bar--reusable-frames): New function. (tab-bar-get-buffer-tab): Add index to the found tab. (display-buffer-in-tab): Use `tab-name' entry instead of `name'. Add `reusable-frames' entry. (bug#38354)
-
João Távora authored
* lisp/jit-lock.el (jit-lock-antiblink-grace): New defcustom. (jit-lock--antiblink-line-beginning-position) (jit-lock--antiblink-string-or-comment): New variables (jit-lock--antiblink-post-command): New helper. (jit-lock-mode): Tweak post-command-hook and jit-lock-context-timer. * etc/NEWS: Mention jit-lock-antiblink-grace
-
Philipp Stephani authored
* src/emacs-module.c (module_encode): Remove. (module_copy_string_contents): Use encode_string_utf_8. (syms_of_module): Define symbol 'unicode-string-p'.
-
Philipp Stephani authored
-
Philipp Stephani authored
As described in the new comment added to emacs-module.c, using GMP directly in the module interface has significant downsides: it couples the module interface directly to the implementation and requires module authors to link their module against the same GMP library as Emacs itself, which is often difficult and an unnecessary burden. By picking a representation for the magnitude that often matches the one used by GMP, we can avoid overhead when converting from and to GMP in most cases. Loading the test module in test/data/emacs-module and evaluating (dotimes (_ 10000) (mod-test-double (* 2 most-negative-fixnum))) under Callgrind shows that on my (GNU/Linux) machine Emacs only spends 10% of the CPU time of mod-test-double in mpz_import and mpz_export combined, even though that function does little else. (By contrast, 30% is spent in allocate_pseudovector.) * src/emacs-module.h.in: Don't check EMACS_MODULE_GMP. Don't include gmp.h. Remove emacs_mpz structure. Instead, define type alias emacs_limb_t and macro EMACS_LIMB_MAX. * src/module-env-27.h: Change interface of extract_big_integer and make_big_integer to take a sign-magnitude representation instead of mpz_t. * src/emacs-module.c: Don't check EMACS_MODULE_GMP or EMACS_MODULE_HAVE_MPZ_T. Add a comment about the chosen implementation. (module_extract_big_integer, module_make_big_integer): Reimplement without using mpz_t in the interface. * doc/lispref/internals.texi (Module Values): Adapt function documentation and example. Stop mentioning GMP and EMACS_MODULE_GMP. * test/data/emacs-module/mod-test.c: Don't define EMACS_MODULE_GMP or EMACS_MODULE_HAVE_MPZ_T. (memory_full, extract_big_integer, make_big_integer): New helper functions, identical to example in the Info documentation. (Fmod_test_nanoseconds, Fmod_test_double): Adapt to new interface.
-
Bastien authored
-
Juanma Barranquero authored
-
Mattias Engdegård authored
Although 'push' returns the modified list, it isn't actually documented to do so, so don't rely on it. * lisp/emacs-lisp/rx.el (rx--translate-any): Add progn.
-
Bastien authored
-
Juanma Barranquero authored
* lisp/org/ob-eshell.el (eshell-send-input): Declare. (eshell-last-output-start, eshell-last-output-end) (eshell-last-input-end): Defvar. * lisp/org/org-keys.el (cl-lib): Require. (org-CUA-compatible): Move up defvaralias.
-