1. 04 Mar, 2019 1 commit
    • Paul Eggert's avatar
      Simplify list creation in C code · 5c2563a5
      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)
      * 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.
  2. 03 Mar, 2019 5 commits
    • Charles A. Roelli's avatar
      Merge diff-font-lock-refine and diff-auto-refine-mode into diff-refine · d6b3e5bb
      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
      * 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
      * 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
    • Alan Mackenzie's avatar
      Correct some slightly incorrect regular expressions: · 81ae2179
      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's avatar
      Fix starting temacs interactively · db3b3b35
      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.
    • Paul Eggert's avatar
      Fix typo in previous change · 8a64107f
      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:
    • Glenn Morris's avatar
      * test/lisp/progmodes/python-tests.el · 5e841bc9
      Glenn Morris authored
      (python-syntax-after-python-backspace): Expect success.
  3. 02 Mar, 2019 10 commits
  4. 01 Mar, 2019 19 commits
  5. 28 Feb, 2019 4 commits
    • Juri Linkov's avatar
      * lisp/replace.el (flush-lines): Return the number of deleted lines. · 44b7436d
      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's avatar
      Avoid rare crashes in xbacktrace · 5d60229b
      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's avatar
      Adapt test names in tramp-archive-tests.el · 0a5212b9
      Michael Albinus authored
      * test/lisp/net/tramp-archive-tests.el
      (tramp-archive-test45-delay-load): Rename.
    • Michael Albinus's avatar
      Use proper read syntax for all function names in Tramp · a80e1045
      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.
  6. 27 Feb, 2019 1 commit