1. 04 Apr, 2020 2 commits
    • Eli Zaretskii's avatar
      Support the "explore" command in gdb-mi.el · f71afd60
      Eli Zaretskii authored
      * lisp/progmodes/gdb-mi.el (gdb-control-commands-regexp): Add
      support for "explore", "explore value", and "explore type".
      Allow more than one word after control commands.
      (gdb-gdb): Decrease gdb-control-level when we get the "(gdb)"
      prompt, which signals that "explore" exited.  (Bug#40250)
    • Eli Zaretskii's avatar
      Fix face spec handling for 'default' "terminal class" · 05d365d3
      Eli Zaretskii authored
      * lisp/faces.el (face-spec-choose): Reverse order of 'defaults'
      and 'result' when generating attribute list, so that the spec for
      'default' "terminal class" is indeed overridden by the actual
      class's spec, per the documentation.  (Bug#40336)
  2. 03 Apr, 2020 13 commits
    • Stefan Monnier's avatar
      * lisp/arc-mode.el: Remove unused struct fields · fd38c9c0
      Stefan Monnier authored
      (archive--file-desc): Remove `case-fiddled`.
      Change all subtypes's constructors as their callers accordingly.
      (archive--file-desc-case-fiddled): New function.
      (archive-int-to-mode): Accept a nil input.
      Make all callers take advantage of it.
      (archive-arc-rename-entry): Use `make-string`.
      (archive-zip--file-desc): Change `pos+len` field into `pos` field.
      (archive-zip-chmod-entry): Simplify accordingly.
      (archive-zip-summarize): Don't bother with `lheader` which was not used.
      (archive-zoo--file-desc): Delete struct; use archive--file-desc instead.
      (archive-7z--file-desc): Remove `user` and `group` fields.
      Adjust constructor and its caller.
      (archive-ar-summarize): Use `archive-int-to-mode`.
    • Stefan Monnier's avatar
      * lisp/arc-mode.el: Use cl-structs rather than vectors · c640be60
      Stefan Monnier authored
      (archive--file-desc, archive--file-summary, archive-arc--file-desc)
      (archive-lzh--file-desc, archive-zip--file-desc)
      (archive-zoo--file-desc, archive-rar--file-desc)
      (archive-7z--file-desc, archive-ar--file-desc): New structs.
      (archive-get-descr, archive-mode, archive-summarize-files)
      (archive-maybe-copy, archive-extract, archive-*-write-file-member)
      (archive-expunge, archive-arc-summarize, archive-arc-rename-entry)
      (archive-lzh-summarize, archive-lzh-rename-entry, archive-lzh-ogm)
      (archive-zip-summarize, archive-zip-write-file-member)
      (archive-zip-chmod-entry, archive-zoo-summarize)
      (archive-rar-summarize, archive-7z-summarize, archive-ar-summarize)
      (archive-ar-write-file-member): Use struct constructors and accessors
      instead of `vector` and `aref`.
      (archive-calc-mode): Remove `error` arg which was always non-nil;
      adjust all callers.
      Rewrite using `string-to-number` and `file-modes-symbolic-to-number`.
    • Alan Mackenzie's avatar
      C++ Mode: recognize brace blocks without the hitherto required = sign · 9b995320
      Alan Mackenzie authored
      * lisp/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): Add code
      to recognize a literal brace expression following an array declaration for
      (c-looking-at-inexpr-block): Replace c-symbol-chars with c-symbol-char-key,
      fixing a coding error.
    • Stefan Monnier's avatar
      * lisp/arc-mode.el (archive-ar-write-file-member): New function · b318e58d
      Stefan Monnier authored
      (archive-ar--name): New funtion, extracted from `archive-ar-summarize`.
      (archive-ar-extract): Use it.
      (archive-ar-summarize): Use it.  Put the extname in the slot 0 of the
      desc vectors.
    • Stefan Monnier's avatar
      * lisp/arc-mode.el: Remove redundant `:group`s · 702a97ff
      Stefan Monnier authored
      (archive-arc, archive-lzh, archive-zip, archive-zoo): Move them
      to their corresponding defcustom.
      (archive-7z): New group, that used to be missing.
    • Stefan Monnier's avatar
      * lisp/arc-mode.el: Use lexical-binding · 9b6d252a
      Stefan Monnier authored
      (arc-insert-unibyte): Simplify.
      (archive--mode-revert): Rename from `archive-mode-revert` and adjust
      for use as an :around advice.
      (archive-mode): Use setq-local.  Use `add-function` to hook into
      (archive-summarize): Don't use `set` on a hook.
    • Robert Pluim's avatar
      Check for IPv6 servers in dns.el · 00f7744c
      Robert Pluim authored
      * lisp/net/dns.el (dns-set-servers): Set dns-servers to nil when we
      don't find any DNS servers with nslookup.  Add support for IPv6
      servers.  (Bug#40248).
      (dns-make-network-process): Check for datagram process support before
      creating a datagram process.
      (dns-query): Return nil if dns-servers is nil.
    • Robert Pluim's avatar
      Make make-{network,serial}-process handle :coding nil consistently · d08e81ce
      Robert Pluim authored
      The handling of :coding nil was different between
      make-{network,serial}-process and make-{pipe}process.  Now they all
      handle :coding nil as if :coding had not been specified.
      * process.c (Fmake_serial_process)
      (set_network_socket_coding_system): Use plist-get to check if
      :coding has been specified instead of plist-member, to ensure that
      ":coding nil" does not override coding-system-for-{read,write}.
      * network-stream-tests.el (check-network-process-coding-system-bind)
      (check-network-process-coding-system-override): New tests.
      * etc/NEWS: Describe change in make-network-process and
      make-serial-process :coding behavior.
    • Ernest N. Mamikonyan's avatar
      Update texinfo.el following changes in 'tex-start-options-string' · 463f6351
      Ernest N. Mamikonyan authored
      * lisp/textmodes/texinfo.el (texinfo-texi2dvi-options): New
      (texinfo-tex-buffer): Take 'tex-start-options' from
      'texinfo-texi2dvi-options'.  (Bug#40001)
      * etc/NEWS: Mention the new option.
      Copyright-paperwork-exempt: yes
    • Štěpán Němec's avatar
      load-library, locate-library: Use read-library-name · 2c450917
      Štěpán Němec authored
      * lisp/emacs-lisp/find-func.el (read-library-name): Add autoload
      * lisp/files.el (load-library)
      * lisp/subr.el (locate-library): Use 'read-library-name' when called
      interactively. (bug#6652 bug#6679)
    • Asher Gordon's avatar
      Fix movement commands in gomoku · 1ded4a8b
      Asher Gordon authored
      * lisp/play/gomoku.el (gomoku-mode-map): Bind cursor motion keys
      to gomoku-specific commands.
      (gomoku-point-x, gomoku-move-right, gomoku-move-left): New
      (gomoku--intangible, gomoku-move-ne, gomoku-move-se)
      (gomoku-move-nw, gomoku-move-sw): Call gomoku-move-left and
      gomoku-move-right instead of forward-char and backward-char.
      * etc/NEWS: Call out the changes.
    • Eli Zaretskii's avatar
      Improve last change · d8dae04e
      Eli Zaretskii authored
      * lisp/calendar/time-date.el (date-days-in-month): Improve the
      error message text and make sure MONTH is a number.  (Bug#40217)
    • Alex Branham's avatar
      Error out if 'date-days-in-month' is given an invalid month · f134dfa0
      Alex Branham authored
      * lisp/calendar/time-date.el (date-days-in-month): Add test for
      month validity; signal an error if it isn't.  (Bug#40217)
      * test/lisp/calendar/time-date-tests.el (test-days-in-month): Add
      a test for the new error.
  3. 02 Apr, 2020 4 commits
  4. 01 Apr, 2020 5 commits
    • Alexandre Adolphe's avatar
      Allow negative line width for :box face attribute · 34ae2d0c
      Alexandre Adolphe authored
      Separate values for box line width and height and allow both to be
      negative which makes the visual width and height of the boxed string
      unchanged (Bug#13011).
      * doc/lispref/display.texi (Face Attributes): Modify :box attribute
      description to reflect the new possibilities.
      * lisp/cus-face.el (custom-face-attributes): Set box attribute to get
      two integer to set vertical and horizontal width and modify pre-filter
      to accept dotted list of two int as valid box attribute.
      * src/dispextern.h (face): Use two int for box horizontal and vertical
      line width.
      * src/nsfont.m (nsfont_draw): Use new face attributes.
      * src/nsterm.m (ns_draw_box, ns_draw_relief): Support separated
      horizontal and vertical box line width.
      (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
      (ns_dumpglyphs_image, ns_draw_glyph_string_foreground)
      (ns_draw_composite_glyph_string_foreground): Use new face attributes.
      * src/w32term.c (w32_draw_box_rect, w32_draw_relief_rect): Support
      separated horizontal and vertical box line width.
      (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
      (x_draw_glyphless_glyph_string_foreground, x_draw_glyph_string_box)
      (x_draw_image_foreground, x_draw_image_relief)
      (w32_draw_image_foreground_1, x_draw_image_glyph_string): Use new face
      * src/xfaces.c (Sinternal_set_lisp_face_attribute, realize_x_face):
      Accept box attribute as a list of two ints.
      * src/xdisp.c (estimate_mode_line_height, produce_image_glyph)
      (produce_xwidget_glyph, x_produce_glyphs): Use new face attributes.
      * src/xterm.c (x_draw_box_rect, x_draw_relief_rect): Support separated
      horizontal and vertical box line width.
      (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
      (x_draw_glyphless_glyph_string_foreground, x_draw_glyph_string_box)
      (x_draw_image_foreground, x_draw_image_relief, x_draw_image_foreground_1)
      (x_draw_image_glyph_string): Use new face attributes.
    • Andreas Schwab's avatar
      Fix compilation with CHECK_STRUCTS · b538cd88
      Andreas Schwab authored
      * src/pdumper.c (dump_buffer): Update hash of struct buffer.
    • Glenn Morris's avatar
      ; Auto-commit of loaddefs files. · 953b5b4a
      Glenn Morris authored
    • Michael Albinus's avatar
      Avoid error messages loading trampver.el · e2165eef
      Michael Albinus authored
      * lisp/net/trampver.el (tramp-repository-branch)
      (tramp-repository-version): Bind `debug-on-error' to nil.
    • Filipp Gunbin's avatar
      javac support in compilation-parse-errors rules · 319a2a74
      Filipp Gunbin authored
      * etc/compilation.txt: Add doc and example.
      * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
      Add javac rule.
      (compilation-parse-errors): Fix file/line/col test, so that
      lambda/closure (which are valid values) don't match.
      * test/lisp/progmodes/compile-tests.el
      (compile-tests--test-regexps-data, compile-test-error-regexps): Add
  5. 31 Mar, 2020 4 commits
    • Stefan Monnier's avatar
      Remove `all_buffers` and the associated `next` field of buffers · cddf85d2
      Stefan Monnier authored
      * src/alloc.c (enum mem_type): Remove MEM_TYPE_BUFFER.
      (allocate_buffer): Allocate like any other pseudovector.
      Don't register on `all_buffers` any more.
      (live_buffer_holding, live_buffer_p): Delete functions.
      (mark_maybe_object, valid_lisp_object_p): Don't pay attention to
      MEM_TYPE_BUFFER any more.
      (garbage_collect): Only compact the live buffers.
      (mark_buffer): Mark the undo_list of dead buffers here.
      (mark_object): Buffers are normal pseudovectors now.
      (sweep_buffers): Don't do the actual sweep here, just cleanup the
      markers and only for live buffers.
      * src/buffer.c (all_buffers): Remove variable.
      (Fkill_buffer): Don't check indirect dead buffers.
      Set the undo_list before we remove ourselves from the list of live buffers.
      (Fbuffer_swap_text, Fset_buffer_multibyte): Don't check indirect dead
      (init_buffer_once): Don't set `all_buffers`.
      (init_buffer): Don't map new memory for dead buffers.
      * src/buffer.h (struct buffer): Remove `next` field.
      (FOR_EACH_BUFFER): Remove macro.
      * src/pdumper.c (dump_buffer): Don't dump the `next` field.
    • Noam Postavsky's avatar
      Don't lose point during fileloop replace (Bug#38867) · a477a7b8
      Noam Postavsky authored
      Suggested by Eric Michael Timmons <etimmons@mit.edu>.
      * lisp/fileloop.el (fileloop-initialize-replace): Save the
      match-beginning position in a variable instead of the buffer's point.
      The point may be changed by the time perform-replace is called, e.g.,
      due to switch-to-buffer-preserve-window-point.
    • Stefan Monnier's avatar
    • Glenn Morris's avatar
      Mark recently failing Tramp tests on hydra · 9f6d3a84
      Glenn Morris authored
      * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process)
      (tramp-test30-make-process, tramp-test33-environment-variables):
      Expect failure on hydra.nixos.org, since March 29 Tramp cache changes.
  6. 30 Mar, 2020 6 commits
  7. 29 Mar, 2020 6 commits
    • Juri Linkov's avatar
      * lisp/image/image-converter.el: Fix customization of image-converter. · c6e0981b
      Juri Linkov authored
      * lisp/image/image-converter.el (image-convert-p): Update
      image-converter-regexp when image-converter was customized (bug#39994).
    • Juri Linkov's avatar
      Deprecate with-displayed-buffer-window, use body-function instead (bug#39822) · 3273e2ac
      Juri Linkov authored
      * doc/lispref/display.texi (Temporary Displays):
      Remove defmac with-displayed-buffer-window.
      * doc/lispref/windows.texi (Buffer Display Action Alists):
      Add body-function.
      * lisp/window.el (with-displayed-buffer-window): Declare macro obsolete.
      (window--display-buffer): Call 'body-function' after displaying the buffer.
      * lisp/dired.el (dired-mark-pop-up):
      * lisp/files.el (save-buffers-kill-emacs):
      * lisp/minibuffer.el (minibuffer-completion-help):
      Replace with-displayed-buffer-window with with-current-buffer-window
      and add action alist entry 'body-function' with former macro body.
    • Juri Linkov's avatar
      Support state changing VC operations on directories in Dired (bug#34949) · 7a6f5a51
      Juri Linkov authored
      * lisp/dired-aux.el (dired-vc-next-action): New command.
      (dired-vc-deduce-fileset): Rename from vc-dired-deduce-fileset in vc.el.
      * lisp/dired.el (dired-mode-map): Remap vc-next-action to
      * lisp/vc/vc-dir.el (vc-dir-mark-files): New function.
      (vc-dir-refresh): Run hook vc-dir-refresh-hook.
      * lisp/vc/vc.el (vc-deduce-fileset): Rename arg 'observer' to
      'not-state-changing' and document it in docstring.
      (vc-dired-deduce-fileset): Rename to dired-vc-deduce-fileset in dired-aux.el.
      * lisp/cedet/ede.el (ede-turn-on-hook, ede-minor-mode):
      * lisp/desktop.el (desktop-minor-mode-table): Rename the long ago
      obsolete vc-dired-mode to vc-dir-mode.
    • Andreas Schwab's avatar
      Fix url-cookie.el for lexical binding · 461bd9cc
      Andreas Schwab authored
      * lisp/url/url-cookie.el (url-cookie-handle-set-cookie): Use setq
      instead of set to modify lexical binding.
    • Eli Zaretskii's avatar
      ; * src/decompress.c: Fix comment style. · f3ccfb19
      Eli Zaretskii authored
    • Eli Zaretskii's avatar
      Use hard links to Emacs executable in "make install" on MS-Windows · 1276c8e1
      Eli Zaretskii authored
      * configure.ac (LN_S_FILEONLY): Set to "/bin/ln" for MinGW