aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Fix some integer issues in regex-emacsPaul Eggert2019-03-256-225/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, remove some duplicate comments related to thread.h. * src/regex-emacs.h (struct re_registers): * src/regex-emacs.c (SIGN_EXTEND_CHAR): Remove. (TALLOC, RETALLOC): Remove. All uses replaced by usual allocators, which check for integer overflow. (extract_number): Redo without using ‘unsigned’. (CHARSET_RANGE_TABLE_EXISTS_P): Clearly return a boolean. (print_fastmap, print_partial_compiled_pattern, CHECK_INFINITE_LOOP) (regex_compile, analyze_first, bcmp_translate, mutually_exclusive_p) (re_match_2_internal): Use bool for booleans. (print_fastmap, regex_compile, execute_charset): Prefer int to unsigned where either will do. (print_double_string): Prefer ptrdiff_t to ssize_t, since the latter can in theory be narrower than the former. Use fwrite instead of repeated putchar. (emacs_re_max_failures, fail_stack_type, compile_stack_type) (re_wctype_parse, regex_compile, re_search, re_search_2) (re_match_2, re_match_2_internal, re_compile_pattern): Prefer ptrdiff_t to size_t where either will do. (union fail_stack_elt, PUSH_FAILURE_REG, POP_FAILURE_REG_OR_COUNT): Make the integer an intptr_t, not long. (GET_BUFFER_SPACE, EXTEND_BUFFER, regex_compile): Use xpalloc to simplify allocation. (regex_compile): Check for integer overflow when calculating register numbers. * src/regex-emacs.c (re_set_registers, re_match_2_internal): * src/regex-emacs.h (struct re_registers, struct re_pattern_buffer): * src/search.c (Freplace_match): Prefer ptrdiff_t to unsigned where either will do. * src/regex-emacs.h (struct re_pattern_buffer): Prefer bool_bf to unsigned where either will do.
* | | | * src/regex-emacs.c (regex_compile): Fix comments.Paul Eggert2019-03-251-4/+2
| | | |
* | | | * src/lisp.h (primary_thread): Remove unused decl.Paul Eggert2019-03-241-1/+0
| | | |
* | | | * src/Makefile.in ($(AM_V_GEN)POSIXLY_CORRECT): Use AM_V_GEN.Eli Zaretskii2019-03-231-1/+1
| | | |
* | | | Avoid compiler warning in w32proc.cEli Zaretskii2019-03-231-7/+12
| | | | | | | | | | | | | | | | | | | | * src/w32proc.c (w32_executable_type): Avoid compiler warnings about potential NULL pointer dereferencing.
* | | | Revert "Revert "Revert "Rely on conservative stack scanning to find ↵Eli Zaretskii2019-03-221-198/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "emacs_value"s""" This reverts commit 093d3e78d21d3d6c718997368ef4b31f9884401c, which reverted ee7ad83f20903208404a84b58b7a478b62924570, which reverted 3eb93c07f7a60ac9ce8a16f10c3afd5a3a31243a.
* | | | Fix misuses of NULL when talking about the NUL characterStefan Monnier2019-03-2135-118/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/subr.el (inhibit-null-byte-detection): Make it an obsolete alias. * src/coding.c (setup_coding_system): Use new name. (detect_coding): Rename null_byte_found => nul_byte_found. (detect_coding_system): Use new name. Rename null_byte_found => nul_byte_found. (Fdefine_coding_system_internal): Use new name. (syms_of_coding): Rename inhibit-null-byte-detection to inhibit-nul-byte-detection. * src/w16select.c (get_clipboard_data): null_char => nul_char. * src/json.c (check_string_without_embedded_nuls): Rename from check_string_without_embedded_nulls. (Fjson_parse_string): Adjust accordingly. * src/coding.h (enum define_coding_undecided_arg_index) (enum coding_attr_index): ...null_byte... => ...nul_byte.... * lisp/info.el (info-insert-file-contents, Info-insert-dir): * lisp/international/mule.el (define-coding-system): * lisp/vc/vc-git.el (vc-git--call): * doc/lispref/nonascii.texi (Lisp and Coding Systems): Use the new name.
* | | | Revert "Revert "Rely on conservative stack scanning to find "emacs_value"s""Eli Zaretskii2019-03-211-175/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit ee7ad83f20903208404a84b58b7a478b62924570. There was no consensus on reverting 3eb93c07f7a60ac9ce8a16f10c3afd5a3a31243a, so doing that will have to wait until the discussion ends.
* | | | Revert "Rely on conservative stack scanning to find "emacs_value"s"Philipp Stephani2019-03-211-198/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 3eb93c07f7a60ac9ce8a16f10c3afd5a3a31243a. There was no consensus for that commit, see https://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00150.html. Also, reverting this commit should fix Bug#31238.
* | | | Avoid duplicate entries in process-environment after re-dumpingEli Zaretskii2019-03-211-0/+6
| | | | | | | | | | | | | | | | | | | | * src/pdumper.c (Fdump_emacs_portable): Reset process-environment to nil. (Bug#34936)
* | | | Merge from origin/emacs-26Glenn Morris2019-03-202-11/+19
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 24b6e6e (origin/emacs-26) * etc/AUTHORS: Update. 2f22a17 * ; ChangeLog.3 update 0f523de Improve indexing of the user manual bd5795e Fix url-copy-file arglist eaa188a ; * admin/notes/bugtracker: Minor additions and updates. 5ed05fb Fix downloading updates for packages with non-ASCII descriptions e9f2d1f * etc/NEWS: Remove temporary markers. 24fc133 * doc/misc/cc-mode.texi (Config Basics): in @itemize, @asis -... 0f325d1 Don't clobber 'comint-input-autoexpand' in 'read-shell-command' bc75589 Document restrictions when setting window margins, fringes or... cc4cebf More improvements for 'read-buffer's doc string d026d9a * lisp/progmodes/cc-defs.el: Update c-version to 5.33.2 for E... 5dbf08b * src/minibuf.c (Fread_buffer): Minor doc fixes. (Bug#34749) # Conflicts: # etc/NEWS # lisp/url/url-handlers.el
| * | | Document restrictions when setting window margins, fringes or scroll barsMartin Rudalics2019-03-131-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/window.c (Fset_window_margins, Fset_window_fringes) (Fset_window_scroll_bars): In doc-strings tell that a window must be large enough to accommodate fringes, sroll bars and margins of the desired size. * doc/lispref/display.texi (Fringe Size/Pos, Scroll Bars) (Display Margins): Tell that windows must be large enough to accommodate fringes, sroll bars and margins of the desired size.
| * | | More improvements for 'read-buffer's doc stringEli Zaretskii2019-03-101-7/+7
| | | | | | | | | | | | | | | | | | | | * src/minibuf.c (Fread_buffer): Further improve the doc string. (Bug#347694)
| * | | * src/minibuf.c (Fread_buffer): Minor doc fixes. (Bug#34749)Eli Zaretskii2019-03-091-2/+3
| | | |
* | | | Fix defining keyboard macros in CUA modeEli Zaretskii2019-03-201-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emulation/cua-base.el (cua--prefix-override-replay): Push the key to replace wrapped in '(no-record . KEY)', so that it doesn't get recorded more than once. (Bug#34901) * src/keyboard.c (read_char): Handle the '(no-record . KEY)' event by substituting KEY for it. (syms_of_keyboard) <no-record>: New DEFSYM. <unread-command-events>: Update the doc string. * doc/lispref/commands.texi (Event Input Misc): Document the '(no-record . EVENT)' form.
* | | | Use ‘const’ to clarify GC markingPaul Eggert2019-03-196-36/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ‘const’ to make the GC marking code a bit clearer. This can also help the compiler in some cases, I think because GCC can now determine more often that the value of a static C variable can be cached when its address is now converted to ‘Lisp Object const *’ before escaping. * src/alloc.c (staticvec, mark_maybe_objects, mark_memory) (mark_stack, staticpro, mark_object_root_visitor) (garbage_collect_1): * src/pdumper.c (dump_ptr_referrer, dump_emacs_reloc_to_lv) (dump_emacs_reloc_to_emacs_ptr_raw, dump_root_visitor): * src/lisp.h (vcopy, struct gc_root_visitor): * src/sysdep.c (stack_overflow): * src/thread.c (mark_one_thread): * src/thread.h (struct thread_state): Use pointer-to-const instead of plain pointer in some GC-related places where either will do.
* | | | * src/fileio.c: Don't convert \r to \n just because of C-x $Stefan Monnier2019-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | (choose_write_coding_system): Setup the \r to \n conversion only if selective-display is t.
* | | | Fix 'define-charset' after dumping with pdumperEli Zaretskii2019-03-173-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/charset.h: * src/charset.c (charset_table_used): Now static. (charset_table_size): Now extern. * src/pdumper.c (dump_charset_table): Dump the entire charset_table, not just its used slots. (Bug#34826)
* | | | Define macros to abstract support for external menu/tool-barsAlexander Gramiak2019-03-1611-61/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/lisp.h (HAVE_EXT_MENU_BAR) (HAVE_EXT_TOOL_BAR): Define. *src/dispnew.c: *src/frame.c: *src/frame.h: *src/keyboard.c: *src/menu.c: *src/menu.h: *src/window.c: *src/window.h: *src/xdisp.c: *src/xfns: Use the new macros.
* | | | Improve locale and language environment setting at startupEli Zaretskii2019-03-161-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/international/mule-cmds.el (locale-language-names): Add more locales and their language environments. (set-locale-environment): Use w32-multibyte-code-page, if non-zero, as locale-coding-system. (Bug#34684) * src/w32fns.c (globals_of_w32fns) <w32-multibyte-code-page>: New variable. * etc/NEWS: Mention w32-multibyte-code-page.
* | | | Use bool for menu_items_inusePaul Eggert2019-03-153-14/+12
| | | | | | | | | | | | | | | | | | | | * src/menu.c (menu_items_inuse): Now bool, instead of a Lisp_Object that is always Qt or Qnil. All uses changed.
* | | | Reindent pdumper per usual Emacs stylePaul Eggert2019-03-112-411/+330
| | | | | | | | | | | | | | | | * src/pdumper.c, src/pdumper.h: Reindent.
* | | | Fix show-trailing-whitespace in R2L textEli Zaretskii2019-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/xdisp.c (highlight_trailing_whitespace): Allow for stretch glyphs at the left edge of R2L lines, when skipping glyphs inserted by the display engine. This unbreaks show-trailing-whitespace in R2L lines.
* | | | Fix a small pdumper memory leakPaul Eggert2019-03-111-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/pdumper.c (dump_mmap_reset): Free the private area here ... (dump_mm_heap_cb_release): ... instead of here. (dump_mmap_release_heap): Simplify by avoiding a local. (dump_mmap_contiguous): Reindent GNU style.
* | | | Rewrite minibuffer window resizing codeMartin Rudalics2019-03-114-158/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/frame.c (resize_mini_frames): New variable. * src/window.c (resize_mini_window_apply): New function. (grow_mini_window, shrink_mini_window): Remove PIXELWISE argument. Call resize_mini_window_apply to apply changes. (Fresize_mini_window_internal): Call resize_mini_window_apply to apply changes. (Qwindow__resize_mini_frame): New symbol. * src/window.h (grow_mini_window, shrink_mini_window): Adjust external declarations. * src/xdisp.c (resize_mini_window): For minibuffer-only frames call 'window--resize-mini-frame' if resize_mini_frames is non-nil. Offload parts of logic to grow_mini_window and shrink_mini_window which are now called without the PIXELWISE argument. (Vresize_mini_windows): Mention 'resize-mini-frames' in doc-string. * lisp/cus-start.el (resize-mini-frames): Add customization support. * lisp/window.el (window--resize-mini-window): Simplify code. (window--resize-mini-frame): New function. * doc/lispref/minibuf.texi (Minibuffer Windows): Describe new option 'resize-mini-frames'. * etc/NEWS: Mention new option 'resize-mini-frames'.
* | | | * src/editfns.c: Fix docstring typo.Paul Eggert2019-03-101-1/+1
| | | |
* | | | Improve binary-as-unsigned treatment (Bug#34792)Paul Eggert2019-03-101-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: * src/editfns.c (Fformat, binary_as_unsigned): Update now that we always have bignums. (syms_of_editfns) [!defined lisp_h_FIXNUMP]: Remove now-obsolete code, since lisp_h_FIXNUMP is always defined now. * test/src/editfns-tests.el (read-large-integer): Simplify, now that we can assume binary-as-unsigned defaults to nil.
* | | | Use a runtime test for timerfd on Cygwin (Bug#34618)Ken Brown2019-03-101-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | * src/atimer.c [HAVE_TIMERFD] (have_buggy_timerfd): New function. (init_atimer) Use it.
* | | | ; * src/editfns.c (Fformat): Fix last change. (Bug#34792)Eli Zaretskii2019-03-091-4/+4
| | | |
* | | | Mention `binary-as-unsigned' in `format' docstring (Bug#34792)Ivan Andrus2019-03-091-2/+4
| | | | | | | | | | | | | | | | | | | | * src/src/editfns.c (format): Update docstring to mention binary-as-unsigned (Bug#34792)
* | | | Merge from origin/emacs-26Glenn Morris2019-03-091-3/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0589de5 (origin/emacs-26) Fix markup of fake keys in the ELisp manual 82d4b98 Avoid errors in Auto Revert mode a3b1935 Mention empty strings in file name expansion, emacs lisp refe... a38da0d cc-mode.texi: Work around makeinfo alignment bug. Fix proble... 464ee80 Warn against recursive invocations of 'buffer-list-update-hoo... 60b5c10 Provide more details in doc-string of 'delete-windows-on' (Bu... f0be0f1 Improve documentation of 'delete-windows-on' f1bddc7 * lisp/frame.el (make-frame-command): Doc fix. (Bug#34715) 2848623 Avoid undefined behavior in gdb-mi.el dbf1837 * lisp/window.el (fit-frame-to-buffer): Make doc-string more ... 099ef44 Minor spelling and grammar fixes (bug#34756) 52fd400 Minor improvement of documentation of '(when CONDITION . SPEC)' f872b65 Improve documentation of 'auto-coding-functions' 04cad5e Fix visiting XML files with non-Unix EOL format a89fabe Update example major mode code in Elisp manual # Conflicts: # lisp/autorevert.el # lisp/window.el
| * | | Warn against recursive invocations of 'buffer-list-update-hook' (Bug#34765)Martin Rudalics2019-03-081-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | * src/buffer.c (Vbuffer_list_update_hook): * doc/lispref/buffers.texi (Buffer List): Warn against recursive invocations of 'buffer-list-update-hook' (Bug#34765).
* | | | Consult 'face-remapping-alist' for 'internal-border' faceEli Zaretskii2019-03-093-23/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/xterm.c (x_clear_under_internal_border) (x_after_update_window_line): * src/w32fns.c (x_clear_under_internal_border): * src/w32term.c (x_after_update_window_line): Consult 'face-remapping-alist' when using the 'internal-border' face.
* | | | Further redesign of window change functionsMartin Rudalics2019-03-093-73/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/windows.texi (Window Hooks): Revise description of window change functions. Add documentation for 'window-state-change-hook' and window state change flag. * etc/NEWS: Update entry for window change functions. * src/frame.c (Fframe_window_state_change) (Fset_frame_window_state_change): New functions. * src/frame.h (struct frame): New boolean window_state_change. (FRAME_WINDOW_STATE_CHANGE): New macro. * src/window.c (window_change_record_frames): New static boolean. (window_change_record_frame): Remove function - code moved to window_change_record. (window_change_record): Record frame changes here taking window_change_record_frames into account. (run_window_change_functions_1): Set window_change_record_frames whenever we run one of our hooks. (run_window_change_functions): Run hooks also when FRAME_WINDOW_STATE_CHANGE has been set. Run Vwindow_state_change_hook. Leave decision whether to record changes for all frames to window_change_record. (Vwindow_state_change_functions): Update doc-string. (Vwindow_state_change_hook): New normal hook.
* | | | Don't redraw the glyph on top of bar cursorsAlan Third2019-03-091-2/+3
| | | | | | | | | | | | | | | | | | | | * src/nsterm.m (ns_draw_window_cursor): Limit when we redraw the glyph.
* | | | Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacsEli Zaretskii2019-03-071-1/+1
|\ \ \ \
| * | | | Fix typo in fix for Bug#33498Paul Eggert2019-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/frame.c (delete_frame): Fix typo in previous patch, which caused GCC to complain about the use of an uninitialized variable.
* | | | | Fix OBJECT binding in conditional display specsEli Zaretskii2019-03-061-2/+2
|/ / / / | | | | | | | | | | | | | | | | | | | | * src/xdisp.c (compute_display_string_pos): Pass OBJECT1, not OBJECT to handle_display_spec, as the latter doesn't expect a window object. (Bug#34771)
* | | | In unwind_with_echo_area_buffer use set_marker_restricted_bothMartin Rudalics2019-03-061-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | * src/xdisp.c (unwind_with_echo_area_buffer): Use set_marker_restricted_both instead of set_marker_both to avoid spurious assertion failures.
* | | | Fix initialization of Vwindow_state_change_functionsMartin Rudalics2019-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | * src/window.c (Vwindow_state_change_functions): Initialize the right variable.
* | | | Remove unreliable assertion in buf_bytepos_to_charposEli Zaretskii2019-03-051-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/marker.c (buf_bytepos_to_charpos): Remove the assertion regarding bytepos always at the head byte of a multibyte sequence. For the reasons, see http://lists.gnu.org/archive/html/emacs-devel/2019-03/msg00100.html http://lists.gnu.org/archive/html/emacs-devel/2019-03/msg00102.html
* | | | Fix handling of minibuffer-only child frames (Bug#33498)Martin Rudalics2019-03-051-15/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/frames.texi (Buffer Parameters): Describe how to make a minibuffer-only child frame. (Child Frames): Describe how minbuffer child frames are deleted. * src/frame.c (delete_frame): Handle deletion of minibuffer child frames (Bug#33498). In the course, fix reassigning of 'default-minibuffer-frame' with minibuffer-only frames. * lisp/frame.el (frame-notice-user-settings): Handle creation of initial minibuffer-only child frame. (make-frame): Handle creation of frame with a minibuffer-only child frame.
* | | | Avoid assertion violations in buf_bytepos_to_charposEli Zaretskii2019-03-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | * src/marker.c (buf_bytepos_to_charpos): Disable the assertion regarding bytepos always at the head byte of a multibyte sequence.
* | | | Prevent introducing invalid scroll bar width/height values (Bug#34569)Martin Rudalics2019-03-041-20/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/frame.c (store_frame_param): Don't store invalid values for scroll_bar_width/height. (x_report_frame_params): Don't report invalid values for scroll_bar_width/height. (x_set_scroll_bar_width, x_set_scroll_bar_height): Don't set invalid values for scroll_bar_width/height.
* | | | Fix minibuffer resizing with temporarily selected frames (Bug#34317)Martin Rudalics2019-03-042-8/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/keyboard.c (command_loop_1): Resize echo area exactly only if the echo area window is the minibuffer window of the selected frame (Bug#34317). * src/xdisp.c (x_consider_frame_title): Inhibit redisplay also when restoring the selected window/frame to avoid that resize_mini_window sizes back the minibuffer window of a temporarily selected frame (Bug#34317).
* | | | * src/alloc.c (gcstat): Now static.Paul Eggert2019-03-041-1/+1
| | | |
* | | | * src/gfilenotify.c: Fix indenting.Paul Eggert2019-03-041-12/+12
| | | |
* | | | * src/font.h: Fix commentary.Paul Eggert2019-03-041-1/+1
| | | |
* | | | Simplify list creation in C codePaul Eggert2019-03-0431-191/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Fix starting temacs interactivelyEli Zaretskii2019-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)