- 04 Mar, 2019 1 commit
-
-
Paul Eggert authored
The main new thing here is that C code can now say ‘list (a, b, c, d, e, f)’ instead of ‘listn (CONSTYPE_HEAP, 6, a, b, c, d, e, f)’, thus relieving callers of the responsibility of counting arguments (plus, the code feels more like Lisp). The old list1 ... list5 functions remain, as they’re probably a bit faster for small lists. * src/alloc.c (cons_listn, pure_listn): New functions. (listn): Omit enum argument. All callers changed to use either new ‘list’ or ‘pure_list’ macros. * src/charset.c (Fdefine_charset_internal): * src/coding.c (detect_coding_system) (Fset_terminal_coding_system_internal): * src/frame.c (frame_size_history_add, adjust_frame_size): * src/gtkutil.c (xg_frame_set_char_size): * src/keyboard.c (command_loop_1): * src/nsfns.m (frame_geometry): * src/widget.c (set_frame_size): * src/xfaces.c (Fcolor_distance): * src/xfns.c (frame_geometry): * src/xterm.c (x_set_window_size_1): * src/xwidget.c (Fxwidget_size_request): Prefer list1i, list2i, etc. to open-coding them. * src/charset.c (Fset_charset_priority): * src/nsterm.m (append2): * src/window.c (window_list): * src/xfaces.c (Fx_list_fonts): Use nconc2 instead of open-coding it. * src/eval.c (eval_sub, backtrace_frame_apply): * src/kqueue.c (kqueue_generate_event): * src/nsterm.m (performDragOperation:): * src/pdumper.c (Fpdumper_stats): * src/w32.c (init_environment): Prefer list1, list2, etc. to open-coding them. * src/font.c (font_list_entities): Parenthesize to avoid expanding new ‘list’ macro. * src/gtkutil.c (GETSETUP): Rename from MAKE_FLOAT_PAGE_SETUP to get lines to fit. Move outside the ‘list’ call, since it’s now a macro. * src/keymap.c (Fmake_keymap): Simplify. * src/lisp.h (list, pure_list): New macros. (list1i): New function.
-
- 03 Mar, 2019 5 commits
-
-
Charles A. Roelli authored
This change was discussed in Bug#32991. * admin/gitmerge.el (gitmerge-resolve): Bind 'diff-refine' instead of 'diff-auto-refine-mode' to nil. * doc/emacs/files.texi (Diff Mode): Explain 'diff-refine' instead of 'diff-auto-refine-mode' in the documentation of 'diff-hunk-next' and 'diff-hunk-prev'. Mention in the documentation of 'diff-refine-hunk' that refining is already done by default. * etc/NEWS (Diff mode): Explain renamed 'diff-refine' variable and mention deprecation and disabling of 'diff-auto-refine-mode'. * lisp/vc/diff-mode.el (diff-font-lock-refine): Rename to 'diff-refine' and allow choices nil, 'font-lock' and 'navigation'. (diff-auto-refine-mode): Disable it by default, make it obsolete and make it set 'diff-refine' appropriately to keep backward compatibility. (diff-hunk-next, diff-hunk-prev): Adapt to rename of diff-auto-refine-mode and ensure that refining only happens when calling these commands interactively. (diff--font-lock-refined): Adapt to rename of diff-font-lock-refine. * lisp/vc/smerge-mode.el (smerge-next, smerge-prev): Check that 'diff-refine' is set instead of checking 'diff-auto-refine-mode' when deciding whether to refine a conflict.
-
Alan Mackenzie authored
* lisp/progmodes/cc-awk.el (c-awk-harmless-char-re) (c-awk-harmless-line-char-re, c-awk-_-harmless-nonws-char-re): [...\\\\...] -> [...\\...]. * lisp/progmodes/cc-engine.el (c-literal-limits): "*/" -> "\\*/". * lisp/progmodes/cc-mode.el (c-after-change-re-mark-unbalanced-strings): "\\\r" -> "\r".
-
Eli Zaretskii authored
* src/dispnew.c (init_display_interactive): Don't call init_faces_initial if we aren't initialized, since tty-set-up-initial-frame-faces is not available then. This restores the ability to start "temacs -nw" and also avoids bad crashes in "emacs -nw" if the pdumper file is not found. (Bug#34707)
-
Paul Eggert authored
* src/alloc.c (memory_full_cons_threshold): Move to after definition of struct cons_block. Problem reported by Basil L. Contovounesios in: https://lists.gnu.org/r/emacs-devel/2019-03/msg00067.html
-
Glenn Morris authored
(python-syntax-after-python-backspace): Expect success.
-
- 02 Mar, 2019 10 commits
-
-
Paul Eggert authored
* src/alloc.c (memory_full_cons_threshold): Now const. (memory_full): Omit no-longer-needed initialization.
-
Paul Eggert authored
* src/alloc.c (staticpro) [ENABLE_CHECKING]: Check for duplicates. * src/keyboard.c (syms_of_keyboard): Define while-no-input-ignore-events and inhibit--record-char here ... (syms_of_keyboard_for_pdumper): ... instead of here. This avoids duplicates in staticvec.
-
Alan Mackenzie authored
* src/marker.c (buf_bytepos_to_charpos): Add an eassert to check that the parameter bytepos is at the beginning of a character or EOB.
-
Eli Zaretskii authored
* lisp/dnd.el (dnd-get-local-file-uri): Always return nil on MS-Windows, as this method cannot possibly work there: URIs that begin with the local system's name are UNCs, where the //SERVER part cannot be removed. (Bug#34675)
-
Phillip Lord authored
This reverts commit 7b31de4d.
-
Phillip Lord authored
This reverts commit d52bc534.
-
Phillip Lord authored
This reverts commit 27fffb27.
-
Mattias Engdegård authored
When regexp-opt is called with an empty list of strings, return a regexp that doesn't match anything instead of the empty string (Bug#20307). * doc/lispref/searching.texi (Regular Expression Functions): * etc/NEWS: Document the new behaviour. * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Return a never-match regexp for empty inputs.
-
Mattias Engdegård authored
The rx `or' form may reorder its arguments in an unpredictable way, contrary to user expectation, since it sometimes uses `regexp-opt'. Add a NOREORDER option to `regexp-opt' for preventing it from producing a reordered regexp (Bug#34641). * doc/lispref/searching.texi (Regular Expression Functions): * etc/NEWS (Lisp Changes in Emacs 27.1): Describe the new regexp-opt NOREORDER argument. * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Add NOREORDER. Make no attempt at regexp improvement if the set of strings contains a prefix of another string. (regexp-opt--contains-prefix): New. * lisp/emacs-lisp/rx.el (rx-or): Call regexp-opt with NOREORDER. * test/lisp/emacs-lisp/rx-tests.el: Test rx `or' form match order.
-
Eli Zaretskii authored
* src/indent.c (Fvertical_motion): Get out of overlay strings with embedded newlines even if moving within the same screen line. See https://github.com/emacs-lsp/lsp-mode/issues/677 for more details. Fix test for IT_CHARPOS being at the beginning of the accessible portion of the buffer.
-
- 01 Mar, 2019 19 commits
-
-
Stefan Monnier authored
-
Stefan Monnier authored
-
Alan Mackenzie authored
Also fix some anomalies in the handling of byte positions in regexp-emacs.c This fixes bug #34525. * src/intervals.c (SET_PARENT_POSITION): New macro. (update_interval): When moving to an interval's parent, set that parent's ->position field, to maintain the consistency of the tree. * src/intervals.h (struct interval): Amend the comment describing when ->position is valid. * src/pdumper.c: Update the hash associated with struct interval. * src/regex-emacs.c: (re_match_2_internal): Only invoke POINTER_TO_OFFSET on a known character boundary. Only perform arithmetic on character positions, not on byte positions. Correct the argument to an invocation of UPDATE_SYNTAX_TABLE_FORWARD by adding 1 to it (in case wordend:). * src/syntax.c: (update_syntax_table): Remove the now redundant code that set the ->position field of all parents of the interval found by update_interval.
-
Glenn Morris authored
The following commit was skipped: 5ec7ca14 (origin/emacs-26) ; Auto-commit of loaddefs files.
-
Glenn Morris authored
9df1365f Fix a typo in the Calc manual f3dab022 Minor improvement in cross-references of the ELisp manual 560c84b6 Fix last change on 'compilation-parse-errors'
-
Glenn Morris authored
The following commit was skipped: 1dff0973 Backport: js--re-search-backward-inner: Fix infloop
-
Glenn Morris authored
dee3cdc5 Minor improvement for docs of completion c86d4191 ; * src/image.c (imagemagick_load, svg_load): Fix typos in co... 6d46fa96 Disable the timerfd interface on Cygwin 3707ea43 Fix a typo in the doc string of 'regex-opt' d9905d5c Document bash 5.0.0 misbehavior in tramp.texi (Bug#34192) # Conflicts: # doc/misc/tramp.texi
-
Paul Eggert authored
This should help future improvements where these stats can be bignums that do not fit into intmax_t. * src/alloc.c (struct gcstat, gcstat): New type and static var, to package up GC statistics into one C object. It replaces ... (total_free_intervals, total_intervals, total_strings) (total_free_strings, total_string_bytes, total_vectors) (total_vector_slots, total_free_vector_slots): ... these removed static vars. All uses changed. (garbage_collect_1): Accept a struct gcstat *, not a void * which was not used anymore anyway. Return a bool indicating success, instead of a Lisp object. All callers changed. (garbage_collect): New function. All C callers of Fgarbage_collect changed to use it, since none of them use the return value. Now, only Lisp code uses Fgarbage_collect. (Fgarbage_collect): No longer noinline. Cons up the return value here, not in garbage_collect_1.
-
Glenn Morris authored
-
Glenn Morris authored
-
Eli Zaretskii authored
* doc/misc/calc.texi (Algebraic Tutorial): Fix parentheses in @example. (Bug#34689)
-
Eli Zaretskii authored
* doc/lispref/modes.texi (Minor Mode Conventions): Add cross-references to related major-mode descriptions. (Bug#34678)
-
Eli Zaretskii authored
* src/keyboard.c (read_char): Don't inject quit-char after longjmp if while-no-input is in effect. (Bug#34535)
-
Tobias Bading authored
* lisp/progmodes/compile.el (compilation-parse-errors): Fix previous change in this function. (Bug#34479) Copyright-paperwork-exempt: yes
-
Evan Moses authored
* lisp/progmodes/python.el (python-font-lock-keywords-level-2) (python-font-lock-keywords-maxiumum-decoration): Add 'breakpoint' to the list of builtins, it's new as of Python 3.7. Copyright-paperwork-exempt: yes
-
Eli Zaretskii authored
* lisp/loadhist.el (file-dependents): * lisp/apropos.el (apropos-library): * lisp/help-fns.el (help-fns--autoloaded-p, help--loaded-p): * lisp/emacs-lisp/package.el (package--list-loaded-files): Don't assume 'load-history' elements must have a string as their 'car'. (Bug#34462)
-
Alan Mackenzie authored
-
Eli Zaretskii authored
-
Federico Tedin authored
* src/xfaces.c (NEAR_SAME_COLOR_THRESHOLD): Macro deleted. (load_face_colors): Compare against face_near_same_color_threshold instead of NEAR_SAME_COLOR_THRESHOLD. (syms_of_xfaces) <face-near-same-color-threshold>: New variable. (Bug#34001) * etc/NEWS: Announce the change.
-
- 28 Feb, 2019 4 commits
-
-
Juri Linkov authored
When called interactively, also print the number. (Bug#34520) * doc/emacs/search.texi (Other Repeating Search): Update flush-lines that prints the number of deleted lines.
-
Eli Zaretskii authored
* src/eval.c (backtrace_thread_p, backtrace_top): Don't segfault in "xbacktrace" if called before the specpdl machinery is initialized in pdumped Emacs.
-
Michael Albinus authored
* test/lisp/net/tramp-archive-tests.el (tramp-archive-test39-make-nearby-temp-file) (tramp-archive-test42-file-system-info) (tramp-archive-test45-auto-load) (tramp-archive-test45-delay-load): Rename.
-
Michael Albinus authored
* lisp/net/tramp.el: * lisp/net/tramp-adb.el: * lisp/net/tramp-archive.el: * lisp/net/tramp-cache.el: * lisp/net/tramp-cmds.el: * lisp/net/tramp-compat.el: * lisp/net/tramp-ftp.el: * lisp/net/tramp-gvfs.el: * lisp/net/tramp-integration.el: * lisp/net/tramp-rclone.el: * lisp/net/tramp-sh.el: * lisp/net/tramp-smb.el: * lisp/net/tramp-sudoedit.el: * test/lisp/net/tramp-archive-tests.el: * test/lisp/net/tramp-tests.el: Use proper read syntax for all function names.
-
- 27 Feb, 2019 1 commit
-
-
Paul Eggert authored
* lisp/net/eww.el (eww-display-html): Escape NUL as � as this is more appropriate for HTML.
-