1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-05 23:21:22 -08:00
Commit graph

153837 commits

Author SHA1 Message Date
Po Lu
7e596463be Add some menu bar help code on GNUstep
* src/nsmenu.m ([EmacsMenu menu:willHighlightItem:]): Implement
help event generation for GNUstep.
2022-01-22 21:51:46 +08:00
Po Lu
15090d7c6f Fix PGTK build with xwidgets
* src/xwidget.c: Swap some preprocessor definitions around.
Reported by Iñigo Serna <inigoserna@gmail.com>.
2022-01-22 20:28:22 +08:00
Po Lu
82f818344e Fix GNUstep build warnings
* src/nsmenu.m
([EmacsMenu menu:updateItem:atIndex:shouldCancel:])
([EmacsMenu menuHasKeyEquivalent:forEvent:target:action:])
([EmacsMenu numberOfItemsInMenu:]): New methods.
2022-01-22 20:23:34 +08:00
Lars Ingebrigtsen
a0e6e67ac1 Fix HTML target marking in shr
* lisp/net/shr.el (shr-descend): Use a marker (because we may be
altering the text later for indentation), and mark the start, not
the end of the tag (bug#53409).
(shr-tag-a): Ditto.
2022-01-22 13:14:43 +01:00
Lars Ingebrigtsen
07f32fa70a Put the old label into the future history in reftex-change-label
* lisp/textmodes/reftex-global.el (reftex-change-label): Put the
old label into the future history so that it can be edited easily
(bug#53417).
2022-01-22 13:14:43 +01:00
Lars Ingebrigtsen
bf3db92bd6 Fix the prompt in hi-lock-read-face-name
* lisp/hi-lock.el (hi-lock-read-face-name): Fix the prompt after
recent changes (bug#53255).
2022-01-22 13:14:43 +01:00
Eli Zaretskii
90bc1afe69 ; * etc/NEWS: Improve entry about Outline mode changes. 2022-01-22 13:59:58 +02:00
Matthias Meulien
c8375d8408 Fix some doc strings in outline.el
* lisp/outline.el (outline-default-state): Fix doc string.
(outline-default-rules): Fix doc string.
2022-01-22 13:52:57 +02:00
Eli Zaretskii
65c4158c3c ; * src/xdisp.c (Fbidi_find_overridden_directionality): Doc fix. 2022-01-22 13:09:31 +02:00
Lars Ingebrigtsen
bd586121ac Make the test for existing multisession variables more sensible
* lisp/emacs-lisp/multisession.el (multisession-edit-value):
Unconfuse the code.
2022-01-22 11:56:36 +01:00
Eli Zaretskii
a604e877cd ; Fix last change in 'textsec-bidi-controls-suspicious-p'. 2022-01-22 12:14:17 +02:00
Eli Zaretskii
682b6df6bf Improve detection of suspicious uses of bidi controls
* lisp/international/textsec.el
(textsec-bidi-controls-suspicious-p): New function.
(textsec-name-suspicious-p): Use it.

* test/lisp/international/textsec-tests.el (test-suspicious-name):
Enable the test that was previously failing with
'bidi-find-overridden-directionality'.
2022-01-22 11:58:05 +02:00
Po Lu
ebe334cdc2 Prevent raw bytes from being displayed as help text on Haiku
* src/haikumenu.c (digest_menu_items): Don't set encoded text
into the menu item vector.
2022-01-22 09:51:30 +00:00
Po Lu
2b72558527 Use locale coding system to decode XIM preedit text
* src/xfns.c (x_xim_text_to_utf8_unix): XIMs typically return
text in the locale coding system, so use that instead.
2022-01-22 16:16:26 +08:00
Eli Zaretskii
246557f33e Change visibility of "Undelete Frame"
* lisp/menu-bar.el (menu-bar-file-menu): Make "Undelete Frame"
always visible.  Suggested by Gregory Heytings <gregory@heytings.org>.
2022-01-22 09:06:21 +02:00
Eli Zaretskii
a51a2a13ed Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2022-01-22 09:03:11 +02:00
Po Lu
b63baeafd2 Get rid of some unnecessary code in handle_one_xevent
* src/xterm.c (handle_one_xevent): Stop mutating event->xkey.
2022-01-22 15:02:12 +08:00
Eli Zaretskii
b44505d6ec Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2022-01-22 08:26:54 +02:00
Stefan Kangas
643985e8b6 ; Merge from origin/emacs-28
The following commits were skipped:

fbc9b121e0 Fix memory-report-object-size to initialize memory-report-...
f08dfa9b53 Fix menu-bar mouse clicks in "C-h c" and "C-h k" (bug#53322)
2022-01-22 06:30:25 +01:00
Po Lu
d878c4537d Fix recent changes to visible bell code
* src/gtkutil.c (xg_create_scroll_bar):
(xg_create_horizontal_scroll_bar): Stop ensuring an X window
before the widget is realized.
(xg_update_scrollbar_pos):
(xg_update_horizontal_scrollbar_pos): Ensure such a window here
instead.
2022-01-22 10:25:06 +08:00
Po Lu
882997e830 Clean up visible bell code on X
* src/gtkutil.c (xg_create_scroll_bar):
(xg_create_horizontal_scroll_bar): Ensure that the scroll bars
have their own X windows.
* src/xterm.c (XTflash): Remove use of GDK functions for
drawing.
2022-01-22 10:12:18 +08:00
Po Lu
5672ee5663 Fix crash when the visible bell is rung but there is no cairo surface
* src/pgtkterm.c (pgtk_flash): Return if the cairo surface is
not present.  (bug#53420)
(pgtk_cr_update_surface_desired_size): Reformat comment.
2022-01-22 09:11:33 +08:00
Paul Eggert
fac8d0ac2f Avoid glitches in ELC lines in build output
* src/verbose.mk.in (have_working_info): New macro.
(AM_V_ELC, AM_V_ELN): Use 'echo' rather than $(info ...)
on buggy versions of GNU Make.
2022-01-21 14:48:56 -08:00
Paul Eggert
882bbeb1f9 Simplify AM_V_ELC setup
* src/verbose.mk.in (AM_V_ELC, AM_V_ELN): Use simpler Make ‘if’s.
2022-01-21 14:48:56 -08:00
Glenn Morris
2519c5773c * lisp/cus-start.el (polling-period): Update type.
Flagged by test-custom-opts.
2022-01-21 13:44:56 -08:00
Glenn Morris
98355833ba * src/keyboard.c (start_polling): Fix type mixup.
Flagged by --enable-check-lisp-object-type.
2022-01-21 12:12:43 -08:00
Lars Ingebrigtsen
adf00298b6 Disable background image fetching from asking for passwords
* lisp/url/url-queue.el (url-queue-start-retrieve): Inhibit
prompting for passwords from these background requests.
2022-01-21 15:22:24 +01:00
Lars Ingebrigtsen
087d031ec6 Further emake tweaks 2022-01-21 15:03:32 +01:00
Lars Ingebrigtsen
b8ffdc0694 Fix previous emake change
* admin/emake (cores): Fix typo in previous change.
2022-01-21 15:00:14 +01:00
Po Lu
88e47934d9 * src/keyboard.c (syms_of_keyboard): Fix build without input polling. 2022-01-21 21:50:06 +08:00
Lars Ingebrigtsen
62a84eea34 Improve the completion-category-overrides doc string
* lisp/minibuffer.el (completion-category-overrides): Clarify what
this variable does (bug#22324).
(completion-category-defaults): Mention the overrides variable.
2022-01-21 14:45:23 +01:00
Lars Ingebrigtsen
8d4fffb643 Remove text mistakenly added to the diff--iterate-hunks doc string
* lisp/vc/diff-mode.el (diff--iterate-hunks): Remove text added by
mistake to the doc string.
2022-01-21 14:31:11 +01:00
Lars Ingebrigtsen
d7f0a0538d Followup fix to previous message-update-smtp-method-header change
* lisp/gnus/message.el (message-update-smtp-method-header): Narrow
to the headers first.
2022-01-21 14:20:31 +01:00
Lars Ingebrigtsen
1fefb15aa8 Allow From to be part of message-hidden-headers
* lisp/gnus/message.el (message-update-smtp-method-header): Don't
bug out if the From header is part of `message-hidden-headers'
(bug#52871).
2022-01-21 14:18:19 +01:00
Eli Zaretskii
87107b05a1 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2022-01-21 14:11:22 +02:00
Jim Porter
1228ec3e1d Don't use 'eshell-eval-using-options' for 'eshell/source' or 'eshell/.'
This makes 'source' and '.' in Eshell more compatible with regular
shells, which just treat the first argument as the file to source and
all subsequent arguments as arguments to that file.

* lisp/eshell/em-script.el (eshell/source, eshell/.): Don't use
'eshell-eval-using-options'.

* etc/NEWS: Announce the change (bug#53293)
2022-01-21 13:06:34 +01:00
Jim Porter
90de226e21 Raise an error from 'eval-eval-using-options' for unknown options
* lisp/eshell/em-basic.el (eshell/echo): Add -E option.

* lisp/eshell/esh-opt.el (eshell--process-option): Raise an error if
an unknown option is encountered, even when :external is nil.

* test/lisp/eshell/esh-opt-tests.el (esh-opt-process-args-test)
(test-eshell-eval-using-options): Add test cases for this.
2022-01-21 13:06:11 +01:00
Theodor Thornhill
a133af7c7f Fix indentation in NEWS of cl-flet item
* etc/NEWS: Correct description of indentation of 'cl-flet' and
'cl-labels (bug#53410).
2022-01-21 13:04:29 +01:00
Lars Ingebrigtsen
606dfb60e3 Clarify Splitting Mail in the Gnus manual
* doc/misc/gnus.texi (Splitting Mail): Clarify what happens when
crossposting or not (bug#53307).
2022-01-21 12:48:03 +01:00
Sergey Vinokurov
fbc9b121e0 Fix memory-report-object-size to initialize memory-report--type-size
* lisp/emacs-lisp/memory-report.el (memory-report-object-size):
Allow using function directly (bug#53310).

Do not merge to master.
2022-01-21 12:43:19 +01:00
Lars Ingebrigtsen
4d866fc0f5 Interpret a "" value of EMACS_TEST_VERBOSE as "off"
* doc/misc/ert.texi (Running Tests in Batch Mode): Adjust doc.
* lisp/emacs-lisp/ert.el (ert-run-tests-batch): Allow overriding
the EMACS_TEST_VERBOSE variable by setting it to "" (bug#53313).
2022-01-21 12:32:10 +01:00
Lars Ingebrigtsen
5561d5de56 Make the edebug-all-defs user option work more reliably
* lisp/emacs-lisp/edebug.el (edebug-all-defs): This user option
has no effect unless edebug is loaded (because that loads the
advice needed for the commands in question) (bug#53331).
2022-01-21 12:26:36 +01:00
Po Lu
16c785b621 Make xwidgets work on builds that don't use Cairo drawing
* configure.ac: Check for the parts of Cairo that are needed for
xwidgets when they are enabled without cairo drawing.

* src/xterm.c:
* src/xwidget.c: Always include cairo-xlib headers when xwidgets
are enabled.
2022-01-21 19:10:05 +08:00
Lars Ingebrigtsen
7eb53e8a72 Clean up mm-display-inline-fontify slightly
* lisp/gnus/mm-view.el (mm-display-inline-fontify): Remove some
left-over compat code.
2022-01-21 12:07:31 +01:00
Lars Ingebrigtsen
502dbd1f7c Make diff--iterate-hunks more resilient
* lisp/vc/diff-mode.el (diff--iterate-hunks): Ignore malformed
hunks instead of signalling errors (bug#53343).
2022-01-21 12:07:04 +01:00
Shuguang Sun
3ffa13d0aa Use the correct converter for odf files in doc-view
* lisp/doc-view.el (doc-view-pdf/ps->png): Use the correct
converter for odf files (bug#53354).
2022-01-21 11:25:27 +01:00
Lars Ingebrigtsen
1e54833e8a Update multisession variables when editing the values
* lisp/emacs-lisp/multisession.el (multisession-edit-value):
Update multisession variables when editing the values (bug#53361).
2022-01-21 11:20:56 +01:00
Jim Porter
587edc46df Further improve determination of when commands can be invoked directly
This covers the case when a subcommand is to be invoked in more places
than before, for example when a subcommand is concatenated in an
argument.

* lisp/eshell/esh-cmd.el (eshell--find-subcommands): New fuction.
(eshell--invoke-command-directly): Use 'eshell-find-subcommands'.

* test/lisp/eshell/eshell-tests.el
(eshell-test/interp-cmd-external-concat): New test (bug#30725).
2022-01-21 10:32:00 +01:00
Eli Zaretskii
c2e28aabcc ; * etc/NEWS: Fix description of 'polling-period' change. 2022-01-21 10:17:06 +02:00
Lars Ingebrigtsen
a6ad584ac2 Adjust emake after recent changes 2022-01-21 08:55:43 +01:00