1. 17 Oct, 2020 13 commits
    • Protesilaos Stavrou's avatar
      Update Modus themes' NEWS entry · 00c4d982
      Protesilaos Stavrou authored
      * etc/NEWS: Reword entry about new 'modus-operandi' and
      'modus-vivendi' themes.  Include reference to their manual.
      00c4d982
    • Jose Antonio Ortega Ruiz's avatar
      mixal-mode: add missed instructions · 9513aa8f
      Jose Antonio Ortega Ruiz authored
      Synchronises with latest released GNU MDK 1.2.11
      
      * mixal-mode.el (mixal-operation-codes-alist):
        Add missed instructions: SLB,SRB,JAE,JAO,JXE,JXO
      9513aa8f
    • Stefan Kangas's avatar
      Base bookmark-bmenu-mode on tabulated-list-mode (Bug#39293) · 61e51fee
      Stefan Kangas authored
      Rewriting bookmark-bmenu-mode to be based on 'tabulated-list-mode'
      allows us to greatly simplify the code in several cases.  In addition,
      we get some features for free, such as sorting by column.
      
      The only functional step backwards is that we no longer support the
      optional "inline" header line, a bookmark.el-specific feature to have
      a header without using 'header-line-format'.  This feature is believed
      to be not very useful or widely used.
      
      * lisp/bookmark.el (tabulated-list): Require.
      (bookmark-bmenu-mode): Inherit from 'tabulated-list-mode' instead of
      'special-mode' and make the necessary changes to support that.
      (bookmark-bmenu-mode-map): Inherit from 'tabulated-list-mode-map'
      instead of 'special-mode-map'.  Remove now duplicate key bindings.
      (bookmark-bmenu--revert): New function to show the bookmark list using
      'tabulated-list-mode'.
      (bookmark-bmenu-list): Simplify by using above new function.
      (bookmark-bmenu-bookmark): Adapt to 'tabulated-list-mode'.
      (bookmark-bmenu--name-predicate)
      (bookmark-bmenu--file-predicate): New functions used by
      'tabulated-list-mode' to sort.
      
      (bookmark-bmenu-set-header): Redefine as obsolete function alias for
      'tabulated-list-init-header'.
      (bookmark-bmenu-toggle-filenames, bookmark-bmenu-show-filenames)
      (bookmark-bmenu-hide-filenames, bookmark-bmenu-mark)
      (bookmark-bmenu-mark-all, bookmark-bmenu-unmark-all)
      (bookmark-bmenu-delete-all, bookmark-bmenu-unmark)
      (bookmark-bmenu-delete, bookmark-bmenu-delete-backwards): Simplify now
      that we can depend on 'tabulated-list-mode' to do more work.
      
      (bookmark-bmenu-use-header-line)
      (bookmark-bmenu-inline-header-height): Declare variables relating to
      the now unsupported "inline" header obsolete.
      (bookmark-bmenu-ensure-position)
      (bookmark-bmenu-execute-deletions): Remove code to handle "inline" header.
      
      * test/lisp/bookmark-tests.el
      (bookmark-test-bmenu-edit-annotation/show-annotation)
      (bookmark-test-bmenu-unmark, bookmark-test-bmenu-mark): Update tests
      for minor changes when using 'tabulated-list-mode'.
      61e51fee
    • Eli Zaretskii's avatar
    • Mattias Engdegård's avatar
      Add aid for finding missing dynamic variable declarations · 3217ae6e
      Mattias Engdegård authored
      Find lexical use of variables that are dynamically declared in other
      files by recording 'defvar' declarations in files that can be read
      in by the compiler in a second compilation.  This is particularly
      useful when converting code to use lexical-binding.
      
      The facility is controlled by setting environment variables:
      
       EMACS_GENERATE_DYNVARS -- set to non-empty to generate a .dynvars file
                                 corresponding to each .elc.
       EMACS_DYNVARS_FILE     -- set to the name of a .dynvars file to use
                                 as defvar information during compilation,
                                 enabling the new warnings.
      
      * lisp/emacs-lisp/bytecomp.el (byte-compile--known-dynamic-vars)
      (byte-compile--seen-defvars): New variables.
      (byte-compile-warning-types): Add lexical-dynamic warning.
      (byte-compile--load-dynvars, byte-compile--warn-lexical-dynamic):
      New functions.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-file, byte-compile--declare-var)
      (byte-compile-lambda, byte-compile-bind): Add dynamic variable loads,
      dumps and checks.
      * doc/lispref/variables.texi (Converting to Lexical Binding): Document.
      3217ae6e
    • Stefan Kangas's avatar
      39a00145
    • Stefan Kangas's avatar
      8b6b4176
    • Pierre Neidhardt's avatar
      New shell-mode command to narrow to the command under point · 9eb61be2
      Pierre Neidhardt authored
      * lisp/shell.el (shell--prompt-end-position)
      (shell--prompt-begin-position): Helper functions.
      
      * lisp/shell.el (shell-narrow-to-prompt): New command and
      keystroke (bug#41784).
      9eb61be2
    • Lars Ingebrigtsen's avatar
      Make woman ignore the new groff kerning operators · bee50664
      Lars Ingebrigtsen authored
      * lisp/woman.el (woman-decode-region): Ignore the new groff
      kerning operators (bug#42219).
      bee50664
    • Lars Ingebrigtsen's avatar
      Fix `browse-url-of-dired' · ea47bcc4
      Lars Ingebrigtsen authored
      * lisp/net/browse-url.el (browse-url-emacs): Make the
      `browse-url-of-dired' command work again after the browse-emacs
      changes (bug#42429).
      ea47bcc4
    • Lars Ingebrigtsen's avatar
      Avoid infloop in which-function-mode when a vc file has changed · 0a3d584c
      Lars Ingebrigtsen authored
      * lisp/vc/diff-mode.el (diff-find-source-location): Avoid warnings
      when called from which-function-mode and the file has changed
      (bug#42818).
      0a3d584c
    • Lars Ingebrigtsen's avatar
      Fix narrow-to-defun in f90-mode · 6d0b2a60
      Lars Ingebrigtsen authored
      * lisp/progmodes/f90.el (f90-beginning-of-subprogram): Make
      narrow-to-defun work better (bug#44042).
      6d0b2a60
    • Stefan Kangas's avatar
  2. 16 Oct, 2020 27 commits
    • Stefan Monnier's avatar
      * doc/lispref/variables.texi (Converting to Lexical Binding): New section · 4cecd67c
      Stefan Monnier authored
      Extract it from `Using Lexical Binding` and extend it a bit.
      4cecd67c
    • Stefan Monnier's avatar
      * lisp/progmodes/python.el: Teach f-strings to `font-lock` · 3b3274a8
      Stefan Monnier authored
      (python--f-string-p, python--font-lock-f-strings): New functions.
      (python-font-lock-keywords-maximum-decoration): Use them.
      3b3274a8
    • Lars Ingebrigtsen's avatar
      indent-rigidly doc string clarification · c41c1ac4
      Lars Ingebrigtsen authored
      * lisp/indent.el (indent-rigidly): Note that the command
      deactivates the mark (bug#42842).
      c41c1ac4
    • Eli Zaretskii's avatar
    • Lars Ingebrigtsen's avatar
      Make erc expand the final abbrev · d5cb3cb9
      Lars Ingebrigtsen authored
      * lisp/erc/erc.el (erc-send-current-line): Expand abbrevs at the
      end of lines (bug#42854).
      d5cb3cb9
    • Michael Albinus's avatar
      Make last change in tramp-archive-tests.el backward compatible · 6a2f56db
      Michael Albinus authored
      * test/lisp/net/tramp-archive-tests.el (ert-resource-directory-format)
      (ert-resource-directory-trim-left-regexp)
      (ert-resource-directory-trim-right-regexp, ert-resource-directory)
      (ert-resource-file): Define if they don't exist.
      6a2f56db
    • Eli Zaretskii's avatar
      8ca0b14b
    • Eli Zaretskii's avatar
      Fix documentation of Modus Themes · 2ec90560
      Eli Zaretskii authored
      * doc/misc/modus-themes.texi (Install from the archives)
      (No mixed fonts): Remove references to MELPA.
      (How do the themes look like)
      (Enable and load, Load automatically)
      (Configure options prior to loading, Customisation Options)
      (No mixed fonts, Command prompts, Mode line, Completion UIs)
      (Fringes, Line highlighting, Matching parentheses, Diffs)
      (Org mode blocks, Heading styles, Tweak colors (DIY))
      (Org user faces (DIY), Supported packages)
      (Will NOT be supported, Note for ERC escaped color sequences)
      (Note on shr colors, Note for Helm grep)
      (Note on vc-annotate-background-mode, Sources of the themes): Fix
      spelling, wording, and markup.
      2ec90560
    • Eli Zaretskii's avatar
      Revert "* doc/emacs/ack.texi (Acknowledgments): Remove now deleted files." · 871c0270
      Eli Zaretskii authored
      This reverts commit 731a26bb.
      
      We don't support rewriting history!
      People who contributed to Emacs development should have their
      contributions remain acknowledged forever, even if the files
      to which they contributed are deleted at some point.
      871c0270
    • Eli Zaretskii's avatar
      Fix file-name problems in several tests · 0b0297ad
      Eli Zaretskii authored
      * test/lisp/saveplace-tests.el
      (saveplace-test-forget-unreadable-files):  Use file-truename, to
      avoid false negatives when file names are not 'equal' as strings,
      but point to the same file.
      * test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-with-normal-env)
      (edebug-tests-run-macro):
      * test/lisp/emacs-lisp/testcover-tests.el
      (testcover-tests-markup-region, testcover-tests-run-test-case):
      Bind find-file-suppress-same-file-warnings to  a non-nil value, to
      avoid warnings about "same-file-names", at least on MS-Windows,
      due to 8+3 aliases.
      0b0297ad
    • Stefan Kangas's avatar
      Remove some Emacs 19 compat code · 9056e639
      Stefan Kangas authored
      * lisp/type-break.el (type-break-time-stamp): Remove Emacs 19
      compat code.
      9056e639
    • Stefan Kangas's avatar
      Remove some references to Emacs 18 and 19 · fd5c0889
      Stefan Kangas authored
      * doc/misc/forms.texi (Modifying Forms Contents, Error Messages):
      * lisp/arc-mode.el:
      * lisp/emacs-lisp/edebug.el (edebug-temp-display-freq-count):
      * lisp/type-break.el: Remove some references to Emacs 18 and 19.
      fd5c0889
    • Stefan Kangas's avatar
      * doc/emacs/ack.texi (Acknowledgments): Remove now deleted files. · 731a26bb
      Stefan Kangas authored
      This is in line with an ack.texi comment that says to "Remove things
      that are no longer distributed."  Most files in this list were removed
      many years ago.
      731a26bb
    • Stefan Kangas's avatar
      Fix building modus-themes Info manual · dfff410d
      Stefan Kangas authored
      * doc/misc/Makefile.in (INFO_COMMON): Add modus-themes.
      * doc/misc/modus-themes.texi: Adapt to fit Emacs conventions.
      dfff410d
    • Protesilaos Stavrou's avatar
      Update modus-operandi, modus-vivendi to 0.13.0 · ad0643e5
      Protesilaos Stavrou authored
      * etc/themes/modus-operandi-theme.el: Update to version 0.13.0.
      
      * etc/themes/modus-vivendi-theme.el: Update to version 0.13.0.
      
      * doc/misc/modus-themes.texi: Include new texinfo documentation for
      modus-operandi and modus-vivendi themes.  (Bug#43944)
      ad0643e5
    • Mattias Engdegård's avatar
    • Stefan Kangas's avatar
      ; Revert some spelling fixes · 5ab146cf
      Stefan Kangas authored
      The preference was to keep the alternative spelling here, to ensure
      the documentation matches the name of the macros.
      This reverts part of commit 95e8c7d1.
      Ref: https://lists.gnu.org/r/emacs-devel/2020-10/msg00651.html
      5ab146cf
    • Stefan Kangas's avatar
      Use new resource directory macros in tests (Bug#43792) · 1f44a776
      Stefan Kangas authored
      * test/lisp/bookmark-tests.el (bookmark-tests-data-dir):
      * test/lisp/calendar/todo-mode-tests.el (todo-test-data-dir):
      * test/lisp/net/dbus-tests.el (dbus--tests-dir):
      * test/lisp/emacs-lisp/edebug-tests.el
      (edebug-tests-sample-code-file):
      * test/lisp/emacs-lisp/package-tests.el
      (package-test-fake-contents-file):
      * test/lisp/emacs-lisp/shadow-tests.el (shadow-tests-data-directory):
      * test/lisp/emacs-lisp/testcover-tests.el
      (testcover-tests-file-dir, testcover-tests-test-cases):
      * test/lisp/mail/uudecode-tests.el (uudecode-tests-data-dir):
      * test/lisp/net/tramp-archive-tests.el
      (tramp-archive-test-resource-directory):
      * test/lisp/pcmpl-linux-tests.el (pcmpl-linux-tests-data-dir):
      * test/lisp/progmodes/cperl-mode-tests.el
      (cperl-mode-tests-data-directory):
      * test/lisp/progmodes/flymake-tests.el
      (flymake-tests-data-directory):
      * test/lisp/progmodes/ruby-mode-tests.el (ruby-mode-tests-data-dir):
      * test/lisp/saveplace-tests.el (saveplace-tests-dir):
      * test/lisp/textmodes/css-mode-tests.el (css-mode-tests-data-dir):
      Remove.
      
      * test/lisp/bookmark-tests.el (bookmark-tests-bookmark-file)
      (bookmark-tests-example-file, bookmark-tests-bookmark-file-list):
      * test/lisp/calendar/todo-mode-tests.el (todo-test-file-1)
      (todo-test-archive-1, with-todo-test, todo-test--add-file):
      * test/lisp/custom-tests.el (custom--test-theme-variables):
      * test/lisp/net/dbus-tests.el (dbus--test-introspect):
      * test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-setup-code-file):
      * test/lisp/emacs-lisp/package-tests.el (package-test-data-dir)
      (package-test-desc-from-buffer, package-test-install-single)
      (package-test-macro-compilation)
      (package-test-install-prioritized)
      (package-test-install-multifile, package-test-update-archives)
      (package-test-update-archives-async)
      (package-test-update-archives/ignore-nil-entry)
      (package-test-signed, package-x-test-upload-buffer)
      (package-x-test-upload-new-version):
      * test/lisp/emacs-lisp/shadow-tests.el (shadow-case-insensitive):
      * test/lisp/emacs-lisp/testcover-tests.el
      (testcover-tests-build-test-cases):
      * test/lisp/mail/uudecode-tests.el (uudecode-tests-encoded-str)
      (uudecode-tests-decoded-str):
      * test/lisp/net/tramp-archive-tests.el
      (tramp-archive-test-file-archive)
      (tramp-archive-test-directory):
      * test/lisp/pcmpl-linux-tests.el (pcmpl-linux-test-fs-types)
      (pcmpl-linux-test-mounted-directories):
      * test/lisp/progmodes/cperl-mode-tests.el (cperl-mode-test-bug-10483)
      (cperl-mode-test-indent-styles):
      * test/lisp/progmodes/flymake-tests.el
      (flymake-tests--call-with-fixture):
      * test/lisp/progmodes/ruby-mode-tests.el
      (ruby--indent/converted-from-manual-test):
      * test/lisp/saveplace-tests.el
      (saveplace-test-save-place-to-alist/dir)
      (saveplace-test-load-alist-from-file):
      * test/lisp/textmodes/css-mode-tests.el (css-mode-test-indent): Adjust
      to use new resource directory macros.
      1f44a776
    • Stefan Kangas's avatar
      Add ert macros to get resource file names (Bug#43792) · f52a775a
      Stefan Kangas authored
      * lisp/emacs-lisp/ert-x.el (subr-x): Require.
      (ert-resource-dir, ert-resource-file): New macros to get the file name
      of the resource directory belonging to a test.
      (ert-resource-dir-format, ert-resource-dir-trim-left-regexp)
      (ert-resource-dir-trim-right-regexp): New variables.
      f52a775a
    • Lars Ingebrigtsen's avatar
      Fix previous gnus-icalendar sanitization · 96d7e3dc
      Lars Ingebrigtsen authored
      * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event-from-ical):
      Fix previous change -- respect nil values passed in.
      96d7e3dc
    • Stephen Berman's avatar
      Adjust some tests so that they work in symlinked environs · 7543d5f1
      Stephen Berman authored
      * test/lisp/help-fns-tests.el (help-fns-test-lisp-macro)
      (help-fns-test-lisp-defsubst):
      * test/lisp/emacs-lisp/cl-generic-tests.el
      (cl-generic-tests--method-files--finds-methods): Adjust test so
      that they work in a symlinked environment (bug#43004).
      (cl-generic-tests--method-files--finds-methods): Use file-truename
      so that this works in a symlinked environment (bug#43004).
      7543d5f1
    • Lars Ingebrigtsen's avatar
      Sanitize ical data in gnus-icalendar-event-from-ical · 95d0b716
      Lars Ingebrigtsen authored
      * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event-from-ical):
      Sanitise the data before passing it on to the constructor.  This
      avoids backtraces on icals with extra, unknown slots (bug#43057).
      95d0b716
    • Basil L. Contovounesios's avatar
      Substitute command keys in button help-echo values · a950a6e6
      Basil L. Contovounesios authored
      * lisp/button.el (button--help-echo): Pass resulting string through
      substitute-command-keys for consistency with show-help-function.
      * test/lisp/button-tests.el (button-tests--map): New test keymap.
      (button--help-echo-string, button--help-echo-form)
      (button--help-echo-function): Use it to test command key
      substitution in help-echo strings (bug#43070).
      a950a6e6
    • Lars Ingebrigtsen's avatar
      Make package-install-from-buffer maybe refresh the quickstart file · 1e89dfc6
      Lars Ingebrigtsen authored
      * lisp/emacs-lisp/package.el (package-install-from-buffer):
      Refresh the quickstart file (bug#43237).  This makes this command
      more consistent with package-install.
      1e89dfc6
    • Lars Ingebrigtsen's avatar
      diff-update-on-the-fly doc string clarification · 8b4dd261
      Lars Ingebrigtsen authored
      * lisp/vc/diff-mode.el (diff-update-on-the-fly): Mention what the
      nil value does (bug#43297).
      8b4dd261
    • Lars Ingebrigtsen's avatar
      Restore vc-revision-other-window buffer-changing behaviour · 2d7d98e1
      Lars Ingebrigtsen authored
      * lisp/vc/vc.el (vc-revision-other-window): This function used to
      change the current buffer, but this was changed in the previous
      patch for indirect buffer support.  Ensure that it still does
      this, because this is what the callers expect (bug#44026).
      2d7d98e1
    • Lars Ingebrigtsen's avatar
      Doc string clarification for keep-lines · 9be54e3d
      Lars Ingebrigtsen authored
      * lisp/replace.el (keep-lines): Note that REND isn't optional if
      RSTART is given (bug#44021).
      9be54e3d