1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00
Commit Graph

148927 Commits

Author SHA1 Message Date
Eric Abrahamsen
4d63a033a7 Small improvements to handling of IMAP mark search
* lisp/gnus/gnus-search.el (gnus-search-imap-handle-flag): Use a
KEYWORD search for any mark starting with a "$", so
"mark:$hasattachment" goes through as "KEYWORD $hasattachment".
2021-06-25 20:42:16 -07:00
Stefan Kangas
f2729dd8ee ; * etc/NEWS: Re-arrange two items. 2021-06-25 22:10:28 +02:00
Mattias Engdegård
52528d6a16 Print newlines as \n instead of \12 in ERT results
This makes test errors unquestionably more readable.  The change also
makes FF print as \f; other controls still use octal escapes.

* lisp/emacs-lisp/ert.el (ert--pp-with-indentation-and-newline):
Run `pp` with `pp-escape-newlines` set to `t`.
2021-06-25 19:55:27 +02:00
Stefan Kangas
db491e07a2 ; * etc/NEWS: Fix typo. 2021-06-25 18:31:26 +02:00
Lars Ingebrigtsen
9e8d8e1a03 Make (find-face-definition 'default) work more reliably
* lisp/emacs-lisp/find-func.el (find-function--defface): New
function (bug#30230).
(find-function-regexp-alist): Use it to skip past definitions
inside comments and strings.
2021-06-25 17:16:28 +02:00
Lars Ingebrigtsen
553221fc55 Fix the name of the sorted minor mode map after previous change
* lisp/bindings.el (mode-line-major-mode-keymap): Change the name
of the minor mode menu items.
2021-06-25 15:58:03 +02:00
Eli Zaretskii
6e0bff0296 Fix race conditions between Lisp threads in GTK builds
* src/xgselect.c (release_select_lock, acquire_select_lock)
[GCC >= 4.7.0]: Use '__atomic' builtins to prevent races between
threads in accessing 'threads_holding_glib_lock'.  Reported by
<dick.r.chiang@gmail.com>.  (Bug#36609)
2021-06-25 16:52:48 +03:00
Michael Albinus
2fbe17c49a Fix Tramp bug#49178
* lisp/net/tramp.el (tramp-handle-find-backup-file-name)
(tramp-handle-make-auto-save-file-name): Adapt checks.  (Bug#49178)
2021-06-25 14:18:28 +02:00
Juri Linkov
8b49e99504 * lisp/tab-bar.el (tab-bar--define-keys): Fix global-mode-string (bug#49215) 2021-06-25 12:38:27 +03:00
Stephen Berman
19f2f26994 Prevent Org mode from mistakenly changing Calendar keymap
* lisp/org/org-compat.el (org--setup-calendar-bindings): Fix logic
in test of 'org-agenda-diary-file' (bug#48199).
2021-06-25 11:11:43 +02:00
Eli Zaretskii
3c674ffcca Fix syntax-category of some punctuation characters
* lisp/textmodes/text-mode.el (text-mode-syntax-table): Don't
modify the global syntax-table just because we load text-mode.el.
This happens at loadup time, and then affects the default syntax
in all modes, not just in text-mode and its derivatives.
(Bug#49214)
2021-06-25 08:36:27 +03:00
Stefan Monnier
1c10517f01 * lisp/bindings.el (bindings--sort-menu-keymap): Add "menu" in its name
(bindings--menu-item-string): Use `pcase`.
2021-06-24 17:34:57 -04:00
Stefan Monnier
3788d2237d * lisp/emacs-lisp/cl-preloaded.el: Fix the format of props in slot-descs
(cl--plist-remove): Remove.
(cl--plist-to-alist): New function.
(cl-struct-define): Use it to convert slots's properties to the
format expected by `cl-slot-descriptor`.

* lisp/emacs-lisp/cl-extra.el (cl--describe-class-slots): Revert last
changes, not needed any more.
2021-06-24 17:32:20 -04:00
Mattias Engdegård
1283e1db9b Don't call ERT explainer on error
* lisp/emacs-lisp/ert.el (ert--expand-should-1): If the predicate form
signals an error, don't call an explainer because the arguments passed
(the error and error argument, respectively) do not make any sense to
the explainer at all.
2021-06-24 20:48:41 +02:00
Lars Ingebrigtsen
b188861af4 Attempt to make defclass documentation more legible
* lisp/emacs-lisp/cl-extra.el (cl--print-table): Attempt to make
defclass documentation more readable (bug#30998).
(cl--describe-class-slots): Ditto.
2021-06-24 20:24:43 +02:00
Lars Ingebrigtsen
bf21aba533 Fix printing of defclass documentation slots again
* lisp/emacs-lisp/cl-extra.el (cl--describe-class-slots): Fix
printing defclass slots, and retain printing of defstruct slots
(bug#30998 and bug#46662).
2021-06-24 20:13:08 +02:00
Lars Ingebrigtsen
8e6d6daacf Allow `C-u M-x dig' to ask for a query type
* lisp/net/dig.el (dig): Allow prompting for a query type
(bug#31810).
2021-06-24 18:51:38 +02:00
Alex McGrath
8db520837a Add SASL authentication to rcirc
* lisp/net/rcirc.el (rcirc-handler-AUTHENTICATE): New function
(bug#48601).
(rcirc-authenticate):
(rcirc-connect): Support sasl.
(rcirc-get-server-password, rcirc-get-server-method): New functions.
(rcirc-authinfo): Document it.
2021-06-24 18:45:08 +02:00
E. Choroba
8febca87c3 Fix highlighting in cperl-mode for "for /regex/"
* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Fix
highlighting of regexp in "print for /./;" (bug#49192).
2021-06-24 18:15:07 +02:00
Jim Porter
ed30a7290c Ignore file-missing errors during diff-refined font-locking
* lisp/vc/diff-mode.el (diff--font-lock-refined): Ignore file-missing
errors (bug#49197).
2021-06-24 18:07:25 +02:00
Lars Ingebrigtsen
f85ee6d5c7 Clarify the help in the package buffers
* lisp/emacs-lisp/package.el (package--quick-help-keys): Clarify
marking help (bug#40457).
2021-06-24 16:59:42 +02:00
Jim Porter
3665735d66 Sort the items in 'mode-line-mode-menu' before displaying the menu
* lisp/bindings.el (bindings--menu-item-string, bindings--sort-keymap):
New functions.
(mode-line-major-mode-keymap, mode-line-minor-mode-keymap):
Sort 'mode-line-mode-menu'.
2021-06-24 16:50:58 +02:00
Saroj Thirumalai
7be75f17e7 * lisp/printing.el (pr-global-menubar): Fix duplicate menu problem.
In Emacs 27.1 Print menu items were moved to a submenu of the File menu.
The Printing package (lisp/printing.el) replaces the Print menu (via the
function: pr-global-menubar).  The latter needs to be updated to reflect the
changes; otherwise, a second Print (sub)menu is created at the end of the
File menu.

Copyright-paperwork-exempt: yes
2021-06-23 23:17:03 +03:00
Mauro Aranda
006628df18 Fix defvar->defcustom conversion in ethio-util.el
* lisp/language/ethio-util.el (ethio-primary-language)
(ethio-secondary-language): Don't quote the const.
(ethio-use-three-dot-question, ethio-quote-vowel-always)
(ethio-W-sixth-always, ethio-numeric-reduction)
(ethio-java-save-lowercase): Really make them defcustom.
2021-06-23 12:08:04 -03:00
Lars Ingebrigtsen
0776ac0680 Make ethio-* variables into user options
* lisp/language/ethio-util.el (ethiopic): New group.
(ethio-primary-language, ethio-secondary-language)
(ethio-use-colon-for-colon, ethio-use-three-dot-question)
(ethio-quote-vowel-always, ethio-W-sixth-always)
(ethio-numeric-reduction, ethio-java-save-lowercase): Make into
user options (bug#33024).
2021-06-23 16:28:32 +02:00
Lars Ingebrigtsen
4b90e4f44f Revert "Sort the items in 'mode-line-mode-menu' before displaying the menu"
This reverts commit d4d6d8f335.

This approach doesn't work on certain types of keymaps, so it should be implemented in a different way.
2021-06-23 16:10:25 +02:00
Jim Porter
d4d6d8f335 Sort the items in 'mode-line-mode-menu' before displaying the menu
* lisp/bindings.el (bindings--menu-item-string, bindings--sort-keymap):
New functions.
(mode-line-major-mode-keymap, mode-line-minor-mode-keymap):
Sort 'mode-line-mode-menu'.
2021-06-23 15:02:52 +02:00
dickmao
d87b67a9e2 Clean up code in `message-replace-header'
* lisp/gnus/message.el (message-replace-header): Elide redundancy
(bug#49180).
2021-06-23 14:50:05 +02:00
dickmao
2540701f30 Fix message-replace-header after recent change
* lisp/gnus/message.el (message-replace-header): Restore else
branch removed by mistake in 989de3b824 (bug#49179).
2021-06-23 00:23:48 +02:00
Lars Ingebrigtsen
142962a8bd Give feedback to the user in dired-do-find-regexp
* lisp/dired-aux.el (dired-do-find-regexp): Give some feedback to
the user (bug#35352).
2021-06-22 17:10:19 +02:00
Lars Ingebrigtsen
3c0b50d1fc Make minor mode docstrings say what the mode "variable" is
* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Add
the mode variable (bug#36500).
(easy-mmode--mode-docstring):
(define-minor-mode): Pass in the getter.
2021-06-22 16:03:37 +02:00
Protesilaos Stavrou
e4b9e1c66c Use named face for apropos-button
* etc/NEWS: Document new face.
* lisp/apropos.el (apropos-button): Define new face.
(apropos-face): Specify face instead of hardcoding
attributes (bug#49162).
2021-06-22 15:33:26 +02:00
Peter Oliver
b16b4d730e If the daemon’s TTY is our only frame, create a new frame
* server.el (server-process-filter): If there won't be a current frame
to use, fall back to trying to create a new one (bug#11033).
2021-06-22 15:21:33 +02:00
Peter Oliver
57ec4aadc6 Advertise support for Startup Notification when built with GTK
* etc/emacsclient.desktop, etc/emacsclient.desktop: Specify
StartupNotify=true.
* configure.ac (USE_STARTUP_NOTIFICATION): New variable, yes iff
HAVE_GTK.
* Makefile.in (install-etc): Remove StartupNotify=true from
etc/*.desktop unless USE_STARTUP_NOTIFICATION (bug#48783).
2021-06-22 15:17:28 +02:00
Utkarsh Singh
00501d74d3 Make tex-compile-commands heed tex-start-options
* lisp/textmodes/tex-mode.el (tex-compile-commands): Respect
`tex-start-options' (bug#49018).
2021-06-22 15:08:07 +02:00
Eli Zaretskii
2966e3acbe Fix "make -j install"
* Makefile.in (install-eln): Depend on 'lisp', so that people
could say "make -j install" without a separate "make" step.
(Bug#49099)
2021-06-22 16:05:35 +03:00
Stephen Gildea
64dd2b1a2a time-stamp: add principled, expressive %z
* lisp/time-stamp.el (time-stamp-formatz-from-parsed-options): New
function for time zone offset formatting ("%z" variants).

* test/lisp/time-stamp-tests.el (formatz*): New unit tests to cover
the new implementation of %5z.
2021-06-21 21:30:19 -07:00
Basil L. Contovounesios
3b1d69efc3 Fix shortdoc-add-function section creation
* lisp/emacs-lisp/shortdoc.el (shortdoc-add-function): Use nconc to
actually append a new section to the list of groups while avoiding a
previous OBOE.  Push a new group to the front of shortdoc--groups
without copying it, just like define-short-documentation-group does.
(buffer): Fix copypasta in unlock-buffer example.

* test/lisp/emacs-lisp/shortdoc-tests.el (shortdoc-examples): Also
check that :no-value forms demonstrate the right function.

* doc/lispref/help.texi (Documentation Groups): Clarify that @dots
in the define-short-documentation-group arglist refer to whole
key-value pairs.  Fix typo in :eg-result-string description.
2021-06-21 16:20:22 +01:00
Lars Ingebrigtsen
09f17ac475 NEWS for tool bar "X" in *Help* buffers change (bug#49139) 2021-06-21 15:16:50 +02:00
Lars Ingebrigtsen
0377737c9b Fix prompting for large files when loading literally
* lisp/files.el (find-file-noselect): Don't include "literally" in
the "large file" prompt if we're gonna load literally anyway
(bug#49144).
2021-06-21 14:58:15 +02:00
Lars Ingebrigtsen
a1fd11a28f Make find-file-literally ignore local variables again
* lisp/files.el (find-file-noselect-1): Re-inhibit local variables
when loading a file literally (bug#49143).  This was broken by
5bedbe6b1d.
2021-06-21 14:50:59 +02:00
Alex Bochannek
624c8613e7 Refactor gnus-article-sort-by-*
* lisp/gnus/gnus-sum.el (gnus-article-sort-extract-extra): New
function (bug#49081).
(gnus-article-sort-by-recipient): Use it.
(gnus-article-sort-by-newsgroups): Ditto.
2021-06-21 14:35:48 +02:00
Lars Ingebrigtsen
9068f8f10c Further fixes for bound-and-true-p doc string
* lisp/bindings.el (bound-and-true-p): Improve doc string.
2021-06-21 14:25:40 +02:00
Andrea Corallo
a4fb5811fa * Do not attempt to write .elc files when not necessary (bug#49118)
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Do not attempt to
write .elc files when not necessary.
2021-06-21 12:20:19 +02:00
Alan Third
434c059d83 Fix GNUstep menu update crashes
* src/nsmenu.m (ns_update_menubar): close the submenus before modifying them.
([EmacsMenu close]): Make sure to close all submenus.
2021-06-20 16:53:37 +01:00
Alan Third
0bd9e78256 Fix GNUstep build warnings
* src/nsterm.h ([EmacsWindow orderedIndex]):
* src/nsterm.m ([EmacsWindow orderedIndex]): Implement orderedIndex
for use under GNUstep.
* src/nsmenu.m (free_frame_menubar):
(ns_update_menubar):
([EmacsMenu addSubmenuWithTitle:]):
([EmacsMenu addItemWithWidgetValue:attributes:]): Cast return values
to correct types.
([EmacsMenu fillWithWidgetValue:]): Move variable definition inside
relevant #ifdef block.
([EmacsMenu menuWillOpen:]):
([EmacsMenu menuDidClose:]):
([EmacsMenu confinementRectForMenu:onScreen:]):
([EmacsMenu menu:willHighlightItem:]): New functions to silence build
warnings.
* src/nsfont.m (nsfont_open): Remove pointless fabs call.
2021-06-20 16:53:37 +01:00
Michael Albinus
9e7681516f Adapt tests in tramp-archive-tests.el
* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test05-expand-file-name)
(tramp-archive-test06-directory-file-name): Adapt tests.
2021-06-20 17:50:52 +02:00
Robert Pluim
82551f243f ; Fix typo in NEWS 2021-06-20 17:11:44 +02:00
Grant Shangreaux
9bbdd3bac9 Add input methods for Lakota
The White Hat and Suggested Lakota Orthography are represented here
by three different input modes: A prefix and postfix mode for the SLO,
and a postfix mode for the White Hat orthography.
* lisp/leim/quail/latin-post.el (lakota-slo-postfix)
(lakota-white-hat-postfix):
* lisp/leim/quail/latin-pre.el (lakota-slo-prefix): New input methods.
* etc/HELLO: Call out the additions.
2021-06-20 14:04:21 +03:00
Eli Zaretskii
a17f40911e ; * lisp/help-mode.el (help-customize): Doc fix. (Bug#36767) 2021-06-20 10:01:25 +03:00