1. 13 Jan, 2021 6 commits
    • Stefan Kangas's avatar
      Prefer skip-unless in more tests · be9b7e83
      Stefan Kangas authored
      * test/lisp/emacs-lisp/timer-tests.el (timer-tests-debug-timer-check):
      * test/src/decompress-tests.el (zlib--decompress):
      * test/src/xml-tests.el (libxml-tests): Prefer skip-unless.
    • Eli Zaretskii's avatar
      Fix 'visual-line-mode' when 'word-wrap-by-category' is in effect · 19b169c4
      Eli Zaretskii authored
      * src/xdisp.c (move_it_in_display_line_to): Don't reset
      next_may_wrap after saving a potential wrap point.  This fixes the
      case where several characters in a row can serve as a wrap point.
    • Stefan Kangas's avatar
      Use skip-unless instead of if+message in test · aeb11da2
      Stefan Kangas authored
      * test/lisp/cedet/semantic-utest.el (semantic-utest-Javascript):
      Use skip-unless instead of if+message.
    • Stefan Kangas's avatar
      Remove some XEmacs compat code from tests · 118d6ef5
      Stefan Kangas authored
      * test/lisp/cedet/srecode-utest-getset.el
      * test/lisp/cedet/srecode-utest-template.el
      (srecode-utest-template-output): Remove XEmacs compat code.
    • Stefan Kangas's avatar
    • Mattias Engdegård's avatar
      Stabilise lunar-phase-list test (bug#45818) · 820bd0e0
      Mattias Engdegård authored
      The test reference data was produced with accidental interference from
      the system daylight saving in effect at the time.  Prevent that
      from occurring again and correct the data.
      * test/lisp/calendar/lunar-tests.el (with-lunar-test):
      Switch to UTC and make sure daylight saving adjustment is disabled.
      Use normal time presentation for maintainability.
      * test/lisp/calendar/lunar-tests.el (lunar-test-phase): Adjust to UTC.
      (lunar-test-phase-list): Adjust to UTC with correct times.
      Enable the test by removing its :unstable mark.
  2. 12 Jan, 2021 8 commits
    • Mattias Engdegård's avatar
      Fix Indian time zone test when run by Irishmen (bug#45818) · c734ba68
      Mattias Engdegård authored
      * test/lisp/calendar/solar-tests.el (solar-sunrise-sunset):
      Inhibit any attempt by confused calendar code to apply daylight saving
      correction when Irish time zone settings are in effect.  It's not
      entirely clear why this is needed but may be related to the fact that
      'IST' stands for both Irish and Indian Standard Time, and that Ireland
      uses reversed daylight saving in winter.
    • Arash Esbati's avatar
      ; Update docstring · d93de0b4
      Arash Esbati authored
      * lisp/textmodes/reftex-vars.el (reftex-label-regexps): Track the
      latest addition of "frame" environment.
    • Robert Pluim's avatar
      Only run IPv6 tests if we have an IPv6 address · 0f6c0832
      Robert Pluim authored
      * test/src/process-tests.el (ipv6-is-available): New function for
      checking whether we have a globally routable IPv6 prefix assigned.
      (lookup-family-specification): Use 'ipv6-is-available' to check for
      IPv6.  Use 'localhost' instead of 'google.com' to test
      'network-lookup-address-info' API.
      (lookup-google): Use 'ipv6-is-available' to check for
      * test/lisp/net/nsm-tests.el (nsm-ipv6-is-available): Rename to
      'ipv6-is-available', make identical to the one in
    • Robert Pluim's avatar
      Fix nsm-should-check for "google.com" failure · 6dc4fc7d
      Robert Pluim authored
      * lisp/net/nsm.el (nsm-should-check): Extract the mask from
      'network-interface-list' rather than the broadcast
      address (Bug#45798).
    • Lars Ingebrigtsen's avatar
      Add a new function 'buffer-line-statistics' · 792ba719
      Lars Ingebrigtsen authored
      * src/fns.c (Fbuffer_line_statistics): New function.
    • Lars Ingebrigtsen's avatar
      Add a new variable `inhibit-interaction' · ca024b05
      Lars Ingebrigtsen authored
      * doc/lispref/elisp.texi (Top): Add a link.
      * doc/lispref/errors.texi (Standard Errors): Mention the new error.
      * doc/lispref/minibuf.texi (Minibuffers): Add a link.
      (Inhibiting Interaction): New node.
      * src/data.c (syms_of_data): Define the `inhibited-interaction' error.
      * src/lisp.h: Export the barfing function.
      * src/lread.c (Fread_char, Fread_event, Fread_char_exclusive):
      Barf if inhibited.
      * src/minibuf.c (barf_if_interaction_inhibited): New function.
      (Fread_from_minibuffer, Fread_no_blanks_input): Barf if inhibited.
      (syms_of_minibuf): Define the `inhibit-interaction' variable.
    • Glenn Morris's avatar
      Update substitute-command-keys tests, again · d191f158
      Glenn Morris authored
      * test/lisp/help-tests.el (help-tests-substitute-command-keys/keymaps)
      Update following recent minibuffer changes.
    • Brian Leung's avatar
      comint-read-input-ring: Simplify last commit · 78ef0a72
      Brian Leung authored
      * lisp/comint.el (comint-read-input-ring): It is not necessary to use
        `goto-char' again since we have already moved point to the desired
        location (bug#45797).
  3. 11 Jan, 2021 13 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/eieio-base.el: Silence warnings in last change · d8936322
      Stefan Monnier authored
      (eieio-persistent-make-instance): Quote the `eieio-named` class name.
      (eieio-named): Move before `eieio-persistent`.
    • Eric Ludlam's avatar
      cedet/ede/auto.el: · bb4399f6
      Eric Ludlam authored
      (ede-calc-fromconfig): New method.  Support functions in addition to
      string matchers.
      (ede-dirmatch-installed, ede-do-dirmatch):
      Use `ede-calc-fromconfig' to do conversion.
      Author: Eric Ludlam <zappo@gnu.org>
    • Eric Ludlam's avatar
      eieio-base.el: · 002f9dc0
      Eric Ludlam authored
      (eieio-persistent-make-instance): Save the backward compatible 'name'
      of objects saved in the file, and if the newly loaded class inherits
      from 'eieio-named', restore the name of the object.
      Author: Eric Ludlam <zappo@gnu.org>
    • Eric Abrahamsen's avatar
      Fix possible prepending of "TEXT" to IMAP searches · fcf8ad61
      Eric Abrahamsen authored
      * lisp/gnus/gnus-search.el (gnus-search-imap-search-keys): Add missing
      keys "old", "new", "or" and "not".
      (gnus-search-run-search): In addition, don't touch the query if it
      starts with a parenthesis. Consider just getting rid of this
      convenience altogether.
    • Stephen Leake's avatar
    • Lars Ingebrigtsen's avatar
    • Brian Leung's avatar
      Make comint-read-input-ring skip uninteresting text in .zsh_history · d0d5e40a
      Brian Leung authored
      * lisp/comint.el (comint-read-input-ring): Simplify (bug#45606).
      * lisp/shell.el (shell-mode): Add "~/.zsh_history".
      * lisp/comint.el (comint-read-input-ring): Bind
      `comint-input-ring-file-prefix' in anticipation of a buffer switch.
      * lisp/comint.el (comint-read-input-ring): Skip the separator.
      Because re-search-backward moves point to the beginning of the match,
      and since we don't want the separator appearing in the output, we skip
      over it.
      This is required to properly detect instances of the value that zsh
      uses for `comint-input-ring-file-prefix'; if the
      `comint-input-ring-file-prefix' is ':potato', the subsequent
      invocation `looking-at' sees '\n:potato' for all entries after the one
      at the very beginning of the history file.
    • Anticrisis's avatar
      Add a failing test for bug#44834 · 26ed7c73
      Anticrisis authored
      * test/lisp/progmodes/tcl-tests.el (tcl-mode-namespace-indent-2):
      New, failing test (bug#44834).
      (tcl-mode-function-name-3): Fix names of the tests so that they're
      actually run.
      Copyright-paperwork-exempt: yes
    • Leon Vack's avatar
      Support using auth-source for NickServ passwords in ERC · 42e72f4a
      Leon Vack authored
      * lisp/etc/erc-services.el (erc-nickserv-passwords): Document that
      the passwords are only used when erc-prompt-for-nickserv-password
      is nil.
      * (erc-use-auth-source-for-nickserv-password): New customizable
      variable to enable checking auth-source for NickServ passwords.
      * (etc-nickserv-get-password): New function to handle the lookup
      of the NickServ password from both auth-source and the
      erc-nickserv-passwords variable.
      * (erc-nickserv-call-identify-function): Use new
      erc-nickserv-get-password function to lookup NickServ passwords.
      * (erc-nickserv-identify-autodetect, erc-nickserv-identify-on-connect,
      erc-nickserv-identify-on-nick-change): Call
      erc-nickserv-call-identify-function when
      erc-use-auth-source-for-nickserv-password is set.
      * etc/NEWS: Document change (bug#45340).
    • Alexandre Duret-Lutz's avatar
      Fix problem with non-ASCII characters in nnmaildir · 6129ebf4
      Alexandre Duret-Lutz authored
      * lisp/gnus/nnmaildir.el (nnmaildir-request-article): Enable
      multipart 8bit-content-transfer-encoded files to be displayed
      correctly by reading as `raw-text' instead of having Emacs
      (incorrectly) decode the files (bug#44307).
      Copyright-paperwork-exempt: yes
    • Pedro Andres Aranda Gutierrez's avatar
      Add `flat-button' to custom-face-attributes · e694f61f
      Pedro Andres Aranda Gutierrez authored
      * lisp/cus-face.el (custom-face-attributes): Add `flat-button'
    • Robert Pluim's avatar
    • Robert Pluim's avatar
      Ensure HAVE_GMP is reflected in emacs_config_features · 62e3750a
      Robert Pluim authored
      * configure.ac: Move HAVE_GMP setting before emacs_config_features
      setting (Bug#45771).
  4. 10 Jan, 2021 13 commits
    • Dmitry Gutov's avatar
      New command xref-quit-and-pop-marker-stack · 17bd0395
      Dmitry Gutov authored
      * lisp/progmodes/xref.el (xref-quit-and-pop-marker-stack):
      New command.
      (xref--xref-buffer-mode-map): Binding for it.
    • Phillip Lord's avatar
      Allow evaluation of tests from local source repository · fb32f928
      Phillip Lord authored
      * etc/w32-feature.el (w32-feature-load-tests): Add new command
    • Philipp Stephani's avatar
      Fix build breakage if Lisp_Object is not a primitive type. · 45abd52f
      Philipp Stephani authored
      * src/minibuf.c (choose_minibuf_frame): Don't compare Lisp_Objects
      with '!='.  Use 'EQ' instead.
    • Philipp Stephani's avatar
      Add functions to open a file without quitting. · 94344d13
      Philipp Stephani authored
      In some situations, e.g. when the Lisp machinery isn't available, we
      can't quit.  Don't check the quit flags in such situations, in case
      they contain garbage.
      * src/sysdep.c (emacs_open_noquit, emacs_openat_noquit): New variants
      of 'emacs_open' and 'emacs_openat' that don't check the quit flags.
      * src/emacs.c (main, Fdaemon_initialized):
      * src/pdumper.c (pdumper_load):
      * src/w32term.c (w32_initialize):
      * src/buffer.c (mmap_init):
      * src/callproc.c (emacs_spawn): Use them where we can't quit.
    • Alan Mackenzie's avatar
      Fix incompleteness in the implementation of minibuffer-follows-selected-frame · c7c154bb
      Alan Mackenzie authored
      In particular, add a new value to the variable, and fix several bugs apparent
      with the implementation up till now.
      * doc/emacs/mini.texi (Basic Minibuffer): Add a description of the new
      non-nil, non-t value of minibuffer-follows-selected-frame.
      * doc/emacs/trouble.texi (Quitting): Add a description of how C-g handles
      recursive minibuffers when typed in one which isn't the most nested.
      * doc/lispref/minibuf.texi (Intro to Minibuffers): Add an @dfn for "active
      (Minibuffer Commands): Document that exit-minibuffer throws an error when not
      invoked from the innermost Minibuffer.
      (Recursive Mini): Amend the description of the visibility of outer level
      (Minibuffer Misc): In the description of the minibuffer hooks, replace "the
      minibuffer" with "a minibuffer".
      * etc/NEWS (Entry announcing minibuffer-follows-selected-frame): Add a
      description of the new non-nil, non-t value.
      * lisp/cus-start.el (top level): make the customize entry for
      minibuffer-follows-selected-frame a choice between three entries.
      * lisp/minibuffer.el (exit-minibuffer): throw an error when we're not in the
      most nested minibuffer.
      (top level): Bind C-g to abort-minibuffers in minibuffer-local-map.
      * lisp/window.el (window-deletable-p): return the symbol `frame' when (amongst
      other things) minibuffer-follows-selected-frame is t.
      * src/eval.c (internal_catch): Add a mechanism to (throw 'exit t) repeatedly
      when the throw currently being processed doesn't terminate the current
      * src/lisp.h (this_minibuffer_depth): New extern declaration
      (minibuf_level): extern declaration moved here from window.h.
      * src/minibuf.c (minibuffer_follows_frame, minibuf_stays_put)
      (minibuf_moves_frame_when_opened): New and amended functions to query the
      value of minibuffer-follows-selected-frame.
      (choose_minibuf_frame): check (minibuf > 1) in place of (minibufer > 0) at a
      particular place.  At another place, check that an alleged frame is so and is
      live.  Before selecting a non-miniwindow on a different frame, ensure it
      really is a different frame.
      (move_minibuffer_onto_frame): Stack up all recursive minibuffers on the target
      frame.  Check the minibuf_window isn't in the old frame before setting that
      frame's miniwindow to an inactive minibuffer.
      (Finnermost_minibuffer_p, Fabort_minibuffers): New primitives.
      (this_minibuffer_depth): New function.
      (read_minibuf): Record the calling frame in a variable, and switch back to it
      after the recursive edit has terminated normally, using
      select-frame-set-input-focus.  Stack up all the recursive minibuffers on the
      miniwindow where a new minibuffer is being opened.  After the recursive edit,
      switch the selected window away from the expired minibuffer's window.
      (nth_minibuffer): New function.
      (minibuffer-follows-selected-frame): Change from a DEFVAR_BOOL to a
      * src/window.c (decode_next_window_args): Set *minibuf to w's mini-window's
      content when that content is a minibuffer.
      * src/window.h (minibuf_level) Declaration moved from here to lisp.h.
    • Lars Ingebrigtsen's avatar
      Respect message-forward-ignored-headers more · a583c723
      Lars Ingebrigtsen authored
      * lisp/gnus/message.el (message-forward-ignored-headers): Clarify
      doc string once again.
      (message-forward-make-body-mime): Remove headers when not
      encrypted (bug#45631).
      (message-forward-make-body): Pass in correct values.
    • Glenn Morris's avatar
      Default python-shell-interpreter to python3 · fa686f09
      Glenn Morris authored
      * lisp/progmodes/python.el (python-shell-interpreter): Default to
      python3 (bug#45655).
    • David Edmondson's avatar
      Fix example in the Gnus manual · 6858b747
      David Edmondson authored
      * doc/misc/gnus.texi (Score Variables): In the example showing how to
      use a list of functions for gnus-score-find-score-files-find-function,
      return a list of strings from the lambda rather than trying to call
      the string as a function (bug#45673).
    • Lars Ingebrigtsen's avatar
      Specify precedence in .authinfo files · 9717ba93
      Lars Ingebrigtsen authored
      * doc/misc/auth.texi (Help for users): Mention placing more
      specific entries first (bug#45711).
    • Lars Ingebrigtsen's avatar
      Improve fill-region-as-paragraph when there's a fill prefix · e186af26
      Lars Ingebrigtsen authored
      * lisp/textmodes/fill.el (fill-region-as-paragraph): Try to
      improve how line breaks are set on unbreakable text with a fill
      prefix area that has spaces within (bug#45720).
    • k3tu0isui's avatar
      Make font locking work in mercury-mode · 918a5eae
      k3tu0isui authored
      * lisp/progmodes/prolog.el (prolog-font-lock-keywords): Work in
      all modes derived from prolog-mode (bug#45747).
      (mercury-mode): Set up variables based on the Prolog system (bug#45747).
      Copyright-paperwork-exempt: yes
    • Basil L. Contovounesios's avatar
      Hyperlink symbol names without word syntax in Help · 25dadca0
      Basil L. Contovounesios authored
      * lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2)
      (lisp-cl-font-lock-keywords-2): Allow single-character symbol names.
      * lisp/help-mode.el (help-xref-symbol-regexp): Also match symbol
      names starting with symbol syntax (bug#6601, bug#24309).
      * test/lisp/help-mode-tests.el (help-mode-tests-xref-button): Test
      hyperlink creation for function names without symbol syntax.
    • Omar Polo's avatar
      Add support for 'process-attributes' on OpenBSD · 4c55eeee
      Omar Polo authored
      * src/sysdep.c (make_lisp_timeval):
      (system_process_attributes): Implement for OpenBSD (bug#45729).