1. 24 Feb, 2021 18 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/macroexp.el (macroexp-file-name): Work in `eval-buffer` · b7f67d43
      Stefan Monnier authored
      Rely on `current-load-list` instead of `load-file-name`.
      
      * lisp/emacs-lisp/bytecomp.el (byte-compile-close-variables):
      Change the var we override accordingly.
      b7f67d43
    • Lars Ingebrigtsen's avatar
      Improve quail-update-leim-list-file error messaging · 46b54e5b
      Lars Ingebrigtsen authored
      * lisp/international/quail.el (quail-update-leim-list-file): Give
      a better error message.
      46b54e5b
    • Lars Ingebrigtsen's avatar
      Fix warning generated by indian.el + quail.el · 8fd97b1d
      Lars Ingebrigtsen authored
      * lisp/leim/quail/indian.el (quail-define-indian-trans-package):
      Reintroduce kludge to fix automatic detection by Quail.
      8fd97b1d
    • Juri Linkov's avatar
    • Juri Linkov's avatar
      * lisp/tab-bar.el (tab-switch): New defalias to 'tab-bar-switch-to-tab'. · 24be523f
      Juri Linkov authored
      (tab-prefix-map): Bind "O" to 'tab-previous'.
      24be523f
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/macroexp.el (macroexp-file-name): New function. · 2766f9fd
      Stefan Monnier authored
      Yes, finally: a function that tells you the name of the file where
      the code is located.  Finding this name is non-trivial in practice,
      as evidenced by the "4 shift/reduce conflicts" warning when compiling
      CEDET's python.el, because its `wisent-source` got it wrong in that
      case, thinking the grammar came from `python.el` instead of
      `python-wy.el`.
      
      While at it, also made `macroexp-compiling-p` public, since it's
      useful at various places.
      
      (macroexp-compiling-p): Rename from `macroexp--compiling-p`.
      
      * lisp/emacs-lisp/bytecomp.el (byte-compile-close-variables):
      Bind `load-file-name` to nil so we can distinguish a load that calls
      the byte compiler from a byte compilation which causes a load.
      
      * lisp/cedet/semantic/wisent/python.el (wisent-python--expected-conflicts):
      Remove; it was just a workaround.
      * lisp/subr.el (do-after-load-evaluation): Avoid `byte-compile--` vars.
      * lisp/cedet/semantic/fw.el (semantic-alias-obsolete):
      Use `macroexp-compiling-p` and `macroexp-file-name`.
      * lisp/cedet/semantic/wisent/comp.el (wisent-source): Use `macroexp-file-name`
      (wisent-total-conflicts): Tighten regexp.
      * lisp/emacs-lisp/cl-lib.el (cl--compiling-file): Delete function
      and variable.  Use `macroexp-compiling-p` instead.
      * lisp/progmodes/flymake.el (flymake-log):
      * lisp/emacs-lisp/package.el (package-get-version):
      * lisp/emacs-lisp/ert-x.el (ert-resource-directory):
      Use `macroexp-file-name`.
      2766f9fd
    • Ulf Jasper's avatar
      Add options to use feed names from newticker-url-list · 654cb8e6
      Ulf Jasper authored
      * lisp/net/newst-treeview.el
        (newsticker-treeview-use-feed-name-from-url-list-in-treeview): New.
        (newsticker-treeview-use-feed-name-from-url-list-in-itemview): New.
        (newsticker--treeview-item-show): Show feed name from
        newsticker-url-list if wanted.
        (newsticker--treeview-propertize-tag): Add argument 'tooltip'.
        (newsticker--treeview-tree-get-tag): Usefeed name from
        newsticker-url-list if wanted.  (Fixes third issue in
        Bug#41376.)
      654cb8e6
    • Lars Ingebrigtsen's avatar
      Fix wisent/python.el grammar warning · 1f5ed3ed
      Lars Ingebrigtsen authored
      * lisp/cedet/semantic/wisent/python.el: Fix warning about
      shift/reduce conflicts in the Python grammar.
      1f5ed3ed
    • Lars Ingebrigtsen's avatar
      Fix warning generated by indian.el + quail.el · d56fbc37
      Lars Ingebrigtsen authored
      * lisp/leim/quail/indian.el (quail-define-indian-trans-package):
      Reintroduce kludge to fix automatic detection by Quail.
      d56fbc37
    • Lars Ingebrigtsen's avatar
      Remove the "Documentation:" line from the variable help · b0b4609b
      Lars Ingebrigtsen authored
      * lisp/help-fns.el (describe-variable): Remove the
      "Documentation:" line (bug#46702).  This makes the help text more
      compact and seems easier to read, too.
      b0b4609b
    • Lars Ingebrigtsen's avatar
      Fix Calc menu item for vector dot products · e21d6fdb
      Lars Ingebrigtsen authored
      * lisp/calc/calc-menu.el (calc-vectors-menu): Use the correct
      function `calc-times' instead of the non-existent `calc-mult'
      function (bug#46710).
      e21d6fdb
    • Doug Davis's avatar
      Interactive tag byte compilation functions in emacs-lisp-mode · b7a2b2bd
      Doug Davis authored
      * lisp/progmodes/elisp-mode.el (emacs-lisp-byte-compile)
      (emacs-lisp-byte-compile-and-load): Add interactive tagging
      (bug#46721).
      b7a2b2bd
    • Miha Rihtaršič's avatar
      Run all functions in `prefix-command-echo-keystrokes-functions' · a2a63642
      Miha Rihtaršič authored
      * lisp/simple.el (internal-echo-keystrokes-prefix): Really run all
      functions in `prefix-command-echo-keystrokes-functions' (bug#46727).
      
      Copyright-paperwork-exempt: yes
      a2a63642
    • Protesilaos Stavrou's avatar
      Use named faces in shortdoc · 7c48c83d
      Protesilaos Stavrou authored
      * shortdoc.el (shortdoc-heading): Define new face for headings.
      (shortdoc-display-group): Apply new heading face.
      (shortdoc--display-function): Use existing face for section text.
      * etc/NEWS: Document new face (bug#46748).
      7c48c83d
    • Utkarsh Singh's avatar
      Use sh-mode for PKGBUILD files · 4aa9db73
      Utkarsh Singh authored
      * lisp/files.el (auto-mode-alist): Use sh-mode for PKGBUILD files
      (bug#46660).
      
      Copyright-paperwork-exempt: yes
      4aa9db73
    • Eli Zaretskii's avatar
      Fix dangerous code in xdisp.c · ac45f314
      Eli Zaretskii authored
      * src/xdisp.c (move_it_to, display_line): Make sure ZV_BYTE is
      greater than 1 before fetching previous byte.
      ac45f314
    • Eli Zaretskii's avatar
      Better support for 'truncate-line' non-nil in the mini-window · eef185df
      Eli Zaretskii authored
      * src/xdisp.c (resize_mini_window): Resize the mini-window
      when multi-line text is displayed under	truncate-lines
      non-nil in the minibuffer.  (Bug#46718)
      eef185df
    • Protesilaos Stavrou's avatar
      Specify the Emacs version of new vc-dir faces · 91b37381
      Protesilaos Stavrou authored
      * vc-dir.el (vc-dir-header)
      (vc-dir-header-value)
      (vc-dir-directory)
      (vc-dir-file)
      (vc-dir-mark-indicator)
      (vc-dir-status-warning)
      (vc-dir-status-edited)
      (vc-dir-status-up-to-date)
      (vc-dir-status-ignored): Add version 28.1.  (Bug#46745)
      91b37381
  2. 23 Feb, 2021 15 commits
    • Juri Linkov's avatar
      Small fixes · 6172454f
      Juri Linkov authored
      * lisp/emacs-lisp/seq.el (seq-contains): Move the ‘declare’ form
      after the docstring.
      * lisp/misc.el (copy-from-above-command): Fix whitespace regexp.
      6172454f
    • Juri Linkov's avatar
      * lisp/tab-line.el (tab-line-tab-name-format-function): New defcustom. · 29c0b640
      Juri Linkov authored
      (tab-line-tab-name-format-default): New function as the default value.
      (tab-line-format-template): Funcall tab-line-tab-name-format-function.
      This is like recently added tab-bar-tab-name-format-function.
      29c0b640
    • Juri Linkov's avatar
      * lisp/tab-bar.el (tab-prefix-map): Bind "n" to 'tab-duplicate'. · 0b9fda1f
      Juri Linkov authored
      (tab-bar-separator): New function.
      (tab-bar-make-keymap-1): Use it.
      0b9fda1f
    • Ulf Jasper's avatar
    • Ulf Jasper's avatar
      Leave other windows unchanged, use search instead of re-search · 7271b114
      Ulf Jasper authored
      * lisp/net/newst-backend.el (newsticker-customize-feed): Leave other
        windws unchanged.  Use search instead of re-search.
      7271b114
    • Ulf Jasper's avatar
      Fix invalid interactive-statement · 5ae02894
      Ulf Jasper authored
      * lisp/net/newst-backend.el (newsticker-customize): Fix invalid
        interactive-statement.
      5ae02894
    • Stefan Monnier's avatar
      * test/: Use lexical-binding the few remaining files · 07235678
      Stefan Monnier authored
      * test/manual/biditest.el: Use lexical-binding.
      (biditest-generate-testfile): Remove unused var `levels`.
      
      * test/manual/image-circular-tests.el: Use lexical-binding.
      
      * test/manual/image-size-tests.el: Use lexical-binding.
      (image-size-tests): Check `fboundp` before calling `imagemagick-types`.
      
      * test/manual/redisplay-testsuite.el: Use lexical-binding.
      
      * test/manual/cedet/cedet-utests.el: Use lexical-binding.
      Use `with-current-buffer`.
      (cedet-utest): Test `fboundp` i.s.o `featurep` to silence warning.
      (srecode-map-save-file): Declare var.
      (pulse-test): Test `fboundp` before calling `pulse-available-p`.
      Declare `pulse-momentary-highlight-overlay` since it's not autoloaded.
      
      * test/manual/cedet/semantic-tests.el: Use lexical-binding.
      Use `with-current-buffer`.
      (semanticdb-ebrowse-dump): Remove unused var `ab`.
      (semanticdb-test-gnu-global): Don't use obsolete "name" arg to constructor.
      (cedet-utest-directory): Declare var.
      07235678
    • Ulf Jasper's avatar
      Add command for customizing current newsticker feed · a283996f
      Ulf Jasper authored
      * lisp/net/newst-backend.el (newsticker-customize-feed): New.
        (newsticker--insert-bytes): Add documentation string.
        (newsticker--decode-iso8601-date): Fix documentation string.
      * lisp/net/newst-treeview.el (newsticker-treeview-customize-current-feed):
        New.
        (newsticker-treeview-mode-map): Add key for new command
        'newsticker-treeview-customize-current-feed'. (Fixes second issue in
        Bug#41376.)
      a283996f
    • Michael Albinus's avatar
      ; Fix tramp.texi typos · 57084098
      Michael Albinus authored
      57084098
    • Robert Pluim's avatar
      * doc/misc/tramp.texi: Grammar/style fixes · 228fd92f
      Robert Pluim authored
      * doc/misc/tramp.texi (Overview):
      (Obtaining @value{tramp}):
      (Quick Start Guide):
      (Configuration):
      (Connection types):
      (Inline methods):
      (External methods):
      (Password handling):
      (Predefined connection information):
      (Remote shell setup):
      (Remote processes):
      (Frequently Asked Questions):
      (External packages):
      (Traces and Profiles): Grammar/style fixes.
      228fd92f
    • Robert Pluim's avatar
      * lisp/net/dictionary-connection.el: Grammar fixes · 4cb24e44
      Robert Pluim authored
      * lisp/net/dictionary-connection.el: Grammar fix
      (dictionary-connection-open): Use active voice.
      (dictionary-connection-status): Reword and improve formatting.
      4cb24e44
    • Robert Pluim's avatar
      Make message-mailto work for emacsclient · 7788129c
      Robert Pluim authored
      * doc/misc/message.texi (System Mailer Setup): Add index entry.
      Mention option to use emacsclient.
      
      * etc/NEWS: Mention emacsclient option for 'mailto:' handling.
      
      * etc/emacs-mail.desktop: Add example using emacsclient.
      
      * lisp/gnus/message.el (message-mailto): Add optional url argument
      so we can call it from emacsclient.
      7788129c
    • Alan Mackenzie's avatar
      CC Mode: Fix bug in "state cache" invalidation function. · 7ebdecfc
      Alan Mackenzie authored
      * lisp/progmodes/cc-engine.el (c-invalidate-state-cache-1): Rewrite part of
      it, following the code in c-parse-state-1, to get a proper setting of
      c-state-cache-good-pos.
      7ebdecfc
    • Stefan Kangas's avatar
      Convert some more menus to easy-menu-define · b03d9d2c
      Stefan Kangas authored
      * lisp/tar-mode.el (tar-mode-map):
      * lisp/textmodes/sgml-mode.el (sgml-mode-map, html-mode-map):
      * lisp/wdired.el (wdired-mode-map): Move menus from here...
      
      * lisp/tar-mode.el (tar-mode-immediate-menu, tar-mode-mark-menu)
      * lisp/textmodes/sgml-mode.el (sgml-mode-menu, html-mode-menu):
      * lisp/wdired.el (wdired-mode-menu): ...to here, and convert to
      easy-menu-define.
      b03d9d2c
    • Stefan Kangas's avatar
      Improve easymenu.el Commentary section · 9202106a
      Stefan Kangas authored
      * lisp/emacs-lisp/easymenu.el: Improve Commentary section.
      9202106a
  3. 22 Feb, 2021 7 commits
    • Stefan Monnier's avatar
      * lisp/progmodes/antlr-mode.el: Fix bootstrap failure · efe42c2b
      Stefan Monnier authored
      (antlr-mode): Remove compatibility code with older CC-mode.
      This somehow appears to fix the error:
      
          In antlr-mode:
          progmodes/antlr-mode.el:2426:20: Error: `c-init-language-vars' defined
              after use in (c-init-language-vars) (missing `require' of a library
              file?)
          progmodes/antlr-mode.el:2427:26: Warning: c-init-language-vars called
              with 0 arguments, but requires 1
      
      No idea what caused the error to appear after the previous patch either.
      efe42c2b
    • Lars Ingebrigtsen's avatar
      Do mode tagging in decipher.el · 97eec9db
      Lars Ingebrigtsen authored
      97eec9db
    • Lars Ingebrigtsen's avatar
      Do mode tagging in bubbles.el · 11e22452
      Lars Ingebrigtsen authored
      11e22452
    • Stefan Monnier's avatar
      * lisp/obsolete: Use lexical-binding · 79d585c2
      Stefan Monnier authored
      Use lexical-binding in all the lisp/obsolete/*.el files.
      While at it, removed redundant :group arguments and used #' to quote
      functions.  Commented out the key bindings which the #' revealed
      to lead to non-existing commands, and replaced those revealed to be obsolete.
      
      * lisp/obsolete/cl-compat.el: Use cl-lib.
      
      * lisp/obsolete/cust-print.el: Assume `defalias` exists.
      (with-custom-print): Use `declare`.
      
      * lisp/obsolete/iswitchb.el (iswitchb-init-XEmacs-trick)
      (iswitchb-xemacs-backspacekey): Remove functions.
      
      * lisp/obsolete/landmark.el (landmark, landmark-nslify-wts):
      Prefer `apply` to `eval`.
      
      * lisp/obsolete/longlines.el (longlines-mode): Don't use `add-to-list`
      on a hook.
      
      * lisp/obsolete/pgg-gpg.el (pgg-gpg-process-region): Use `clear-string`.
      
      * lisp/obsolete/pgg-pgp.el (pgg-pgp-encrypt-region): Remove oddly
      unused var `passphrase`.
      (pgg-pgp-verify-region): Declare var `jam-zcat-filename-list`.
      
      * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-encrypt-region): Remove oddly
      unused var `passphrase`.
      (pgg-pgp5-verify-region): Declare var `jam-zcat-filename-list`.
      
      * lisp/obsolete/pgg.el: Remove some XEmacs compatibility code.
      (pgg-run-at-time, pgg-cancel-timer, pgg-clear-string): Remove functions.
      Use their core equivalent instead.
      
      * lisp/obsolete/rcompile.el (remote-compile): Remove unused vars `l`,
      `l-host`, `l-user`, and `localname`.
      
      * lisp/obsolete/starttls.el (starttls-any-program-available):
      Use `define-obsolete-function-alias`.
      
      * lisp/obsolete/tls.el (tls-format-message): Delete function, use
      `format-message` instead.
      
      * lisp/obsolete/url-ns.el (url-ns-prefs): Use `with-current-buffer`
      and `dlet`.
      
      * lisp/obsolete/vip.el (vip-escape-to-emacs): Remove unused var `key`.
      (vip-command-argument, vip-read-string, ex-delete, ex-line): Remove
      unused var `conditions`.
      (ex-map): Use a closure instead of `eval`.
      (ex-set): Make it an alias of `set-variable`.
      (ex-substitute): Remove unused var `cont`.
      
      * lisp/obsolete/abbrevlist.el:
      * lisp/obsolete/bruce.el:
      * lisp/obsolete/cc-compat.el:
      * lisp/obsolete/cl-compat.el:
      * lisp/obsolete/cl.el:
      * lisp/obsolete/complete.el:
      * lisp/obsolete/crisp.el:
      * lisp/obsolete/cust-print.el:
      * lisp/obsolete/erc-compat.el:
      * lisp/obsolete/erc-hecomplete.el:
      * lisp/obsolete/eudcb-ph.el:
      * lisp/obsolete/fast-lock.el:
      * lisp/obsolete/gs.el:
      * lisp/obsolete/gulp.el:
      * lisp/obsolete/html2text.el:
      * lisp/obsolete/info-edit.el:
      * lisp/obsolete/iswitchb.el:
      * lisp/obsolete/landmark.el:
      * lisp/obsolete/lazy-lock.el:
      * lisp/obsolete/longlines.el:
      * lisp/obsolete/mailpost.el:
      * lisp/obsolete/mantemp.el:
      * lisp/obsolete/meese.el:
      * lisp/obsolete/messcompat.el:
      * lisp/obsolete/metamail.el:
      * lisp/obsolete/mouse-sel.el:
      * lisp/obsolete/nnir.el:
      * lisp/obsolete/old-emacs-lock.el:
      * lisp/obsolete/otodo-mode.el:
      * lisp/obsolete/patcomp.el:
      * lisp/obsolete/pc-mode.el:
      * lisp/obsolete/pc-select.el:
      * lisp/obsolete/pgg-def.el:
      * lisp/obsolete/pgg-gpg.el:
      * lisp/obsolete/pgg-parse.el:
      * lisp/obsolete/pgg-pgp.el:
      * lisp/obsolete/pgg-pgp5.el:
      * lisp/obsolete/pgg.el:
      * lisp/obsolete/rcompile.el:
      * lisp/obsolete/s-region.el:
      * lisp/obsolete/sb-image.el:
      * lisp/obsolete/sregex.el:
      * lisp/obsolete/starttls.el:
      * lisp/obsolete/sup-mouse.el:
      * lisp/obsolete/terminal.el:
      * lisp/obsolete/tls.el:
      * lisp/obsolete/tpu-edt.el:
      * lisp/obsolete/tpu-extras.el:
      * lisp/obsolete/tpu-mapper.el:
      * lisp/obsolete/url-ns.el:
      * lisp/obsolete/vc-arch.el:
      * lisp/obsolete/vi.el:
      * lisp/obsolete/vip.el:
      * lisp/obsolete/ws-mode.el:
      * lisp/obsolete/yow.el: Use lexical-binding.
      79d585c2
    • Lars Ingebrigtsen's avatar
      Mention the problems with newlines in Dired · 59698d92
      Lars Ingebrigtsen authored
      * doc/emacs/dired.texi (Dired Enter): Mention newlines and what to
      do about them.
      
      * lisp/dired.el (dired-listing-switches): Mention newlines
      (bug#46705).
      59698d92
    • Lars Ingebrigtsen's avatar
      Buttonize function values in help (and add a blank line) · 77e19497
      Lars Ingebrigtsen authored
      * lisp/help-fns.el (describe-variable): Add a newline for better
      readability (bug#46702).  This also has the side effect of
      buttonizing `function-references-like-this' in the "Its value is"
      part.
      
      * lisp/help-mode.el (help-make-xrefs): Adjust comments.
      77e19497
    • Basil L. Contovounesios's avatar
      abd8c9b4