1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 09:00:31 -08:00
Commit graph

154041 commits

Author SHA1 Message Date
Sebastian Urban
1f5fa1de7f Make where-is correctly identify aliases
* lisp/help.el (where-is): Make aliases correctly say which
function is an alias for what (bug#37325).
2022-01-28 17:27:28 +01:00
Sebastian Urban
96867f9d08 Fix manual points about tex-latex-block/latex-insert-block
* doc/emacs/text.texi (LaTeX Editing):
(LaTeX Editing): Update documentation of
tex-latex-block/latex-insert-block to what they really point to
(bug#37325).

Copyright-paperwork-exempt: yes
2022-01-28 17:12:35 +01:00
Lars Ingebrigtsen
fdc7272980 Improve the read-file-name doc string slightly
* lisp/minibuffer.el (read-file-name): Note that the semantics of
INITIAL are odd (bug#37883).
2022-01-28 17:03:14 +01:00
Michael Albinus
87c2367011 Clarify where the shell-command output goes
* lisp/simple.el (shell-command):
* doc/emacs/misc.texi (Single Shell): Clarify where the output
goes if the specified buffer isn't the current one (bug#40896).
2022-01-28 16:32:15 +01:00
Lars Ingebrigtsen
12d3c4831a Allow using dired-hide-details-mode in wdired buffers
* lisp/dired.el (dired-hide-details-mode): Also work in
wdired-mode buffers (bug#45127).

* lisp/wdired.el (wdired-mode-map): Add a key binding.
2022-01-28 15:56:05 +01:00
Lars Ingebrigtsen
bf695b937e Move native-comp-eln-load-path setting earlier again
* lisp/startup.el (normal-top-level): Move
`native-comp-eln-load-path' earlier because hooks called may need
the setting (bug#53596).
2022-01-28 15:26:39 +01:00
Lele Gaifax
70c3437ae1 Fix copyright-fix-years, use a dash to separate years in a range
Commit 7a46fa9c75, allowing en-dash as
years separator, changed the way the years range is composed taking the
separator from the `sep' variable instead of always using an hardwired
hyphen. Since the code explicitly avoid to touch (that is, extend)
existing ranges, that `sep' variable is almost always a space, or
whatever character precedes the last parsed year, thus generating a
range like "2020 2022" instead of "2020-2022".

* lisp/emacs-lisp/copyright.el (copyright-fix-years): Always use an dash
to separate years in a range.

* test/lisp/emacs-lisp/copyright-tests.el (with-copyright-fix-years-test):
(copyright-fix-years-tests--data):
(text-copyright-fix-years): New test cases (bug#53597).
2022-01-28 15:23:05 +01:00
Lars Ingebrigtsen
7ba197a163 Fix merge error in doc-view-pdf/ps->png
* lisp/doc-view.el (doc-view-pdf/ps->png): Fix merge error from
previous epub patch.
2022-01-28 14:47:15 +01:00
Po Lu
11add52bec Prevent duplicate grab setting with xwidgets
* src/xwidget.c (xwidget_show_view): Don't set passive grab if
already set.
2022-01-28 17:56:17 +08:00
Po Lu
15f8c6b11e Use the real cursor beneath the pointer on xwidgets
* src/xwidget.c (define_cursors): Make manual cursor definition
code PGTK-only.
(xw_update_cursor_for_view):
(xw_last_crossing_cursor_cb): New functions.
(xw_maybe_synthesize_crossing): Attach and disconnect cursor
signal handler where appropriate.
(xwidget_init_view): Set the default cursor to the nontext
cursor.
(Fxwidget_delete_view): Disconnect last crossing signal if
appropriate.
* src/xwidget.h (struct xwidget_view): New field
`last_crossing_cursor_signal'.
2022-01-28 16:40:40 +08:00
Po Lu
bad16c6f56 Fix xwidget build on PGTK
* src/xwidget.c (xw_forward_event_translate): Adjust calls to
`find_widget_at_pos' for recent changes.
2022-01-28 16:08:59 +08:00
Eli Zaretskii
b293e254eb ; Rename 'startup--require-comp-safetly'
* src/comp.c (maybe_defer_native_compilation):
* lisp/startup.el (startup--require-comp-safely): Rename from
'startup--require-comp-safetly'.  All callers changed.
2022-01-28 09:37:28 +02:00
Eli Zaretskii
241f2857f1 ; Fix a typo in recent documentation changes
* doc/lispref/os.texi (Startup Summary):
* doc/emacs/cmdargs.texi (Initial Options): Fix a typo.
2022-01-28 09:30:04 +02:00
Po Lu
84d4a34919 Fix duplicate scroll events without XI2
* src/xwidget.c (xwidget_button): Only generate scroll events
when the button was released.
2022-01-28 14:07:35 +08:00
Stefan Kangas
9d0833f408 Merge from origin/emacs-28
3dd47bde7a * lisp/frame.el (clone-frame): Filter out 'parent-id' (bug...
2022-01-28 06:32:22 +01:00
Po Lu
2f0d67b047 Clear xwidget passive grab whenever a drag begins
* src/xwidget.c (xv_drag_begin_cb): New function.
(xwidget_view_from_window): Attach said function to grab widget
when a grab starts.
* src/xwidget.h (struct xwidget_view): New field
`passive_grab_drag_signal'.
2022-01-28 11:08:20 +08:00
Po Lu
bc404cd8ea * src/xterm.c (handle_one_xevent): Remove obsolete workaround. 2022-01-28 10:51:33 +08:00
Po Lu
47b7ec2a3d Fix inappropriate use of killed xwidgets
* src/xwidget.c (x_draw_xwidget_webkit_view): Don't record
embedder or synthesize focus events if the widget is killed.
2022-01-28 10:48:12 +08:00
Po Lu
8471c6f06c Implement xwidget passive grabs
* src/xwidget.c (find_widget_at_pos): New parameters for
controlling whether to respect grabs.  All callers changed.
(window_coords_from_toplevel): Make work when the widget is
the toplevel.
(find_widget): Fix coding style.
(xwidget_button_1): Set and clear passive grabs if appropriate.
(xw_maybe_synthesize_crossing): Allow current_window to be NULL
if the mode is XW_CROSSING_LEFT.
2022-01-28 10:41:03 +08:00
Lars Ingebrigtsen
8eaf04de83 Add new switch --init-directory
* doc/emacs/cmdargs.texi (Initial Options): Mention it.
* lisp/startup.el (normal-top-level): Move the eln init to after
we've processed the command line arguments.
(command-line): Interpret the --init-directory switch.

* src/emacs.c (standard_args): Add.
2022-01-27 23:38:13 +01:00
Glenn Morris
53ebc1fa21 * lisp/doc-view.el (doc-view-epub-font-size): Fix type; add version.
Flagged by test-custom-opts.
2022-01-27 14:21:55 -08:00
Andrea Corallo
536a57b72c Fix potential native compiler circular dependencies during load
* lisp/startup.el (startup--require-comp-safetly): New function.
(startup--honor-delayed-native-compilations): Make use of
`startup--require-comp-safetly'.
* src/comp.c (CALL0I): New define.
(maybe_defer_native_compilation): Make use of
`startup--require-comp-safetly'.
2022-01-27 23:02:31 +01:00
Lars Ingebrigtsen
ce220524fc Fix up previous "Quit Emacs" from menu logic
* lisp/files.el (files--buffers-needing-to-be-saved): Separated
out into its own function...
(save-some-buffers): ... from here.
(save-buffers-kill-emacs): Check that we have anything to save
before prompting the user.
2022-01-27 22:26:12 +01:00
Lars Ingebrigtsen
b8ddd94aac Make the save buffers prompt from Quit Emacs menu more understandable
* lisp/files.el (save-buffers-kill-emacs): Use a much simpler (and
more understandable) prompt when exiting Emacs from the menu bar
(bug#4980).

* lisp/subr.el (use-dialog-box-p): Separate out into its own
function for reuse...
(y-or-n-p): ... from here.
2022-01-27 19:56:29 +01:00
Eli Zaretskii
10c680551e Improve detection of glyphless characters on TTY frames
* src/term.c (produce_glyphs): If the terminal can report for
which characters it has glyphs, use that to determine whether
a given character should be displayed as glyphless.
2022-01-27 20:35:22 +02:00
Juri Linkov
3dd47bde7a * lisp/frame.el (clone-frame): Filter out 'parent-id' (bug#51883). 2022-01-27 19:47:40 +02:00
Arni Magnusson
61f5ca3b27 Add setx highlighting to bat-mode
* lisp/progmodes/bat-mode.el (bat-font-lock-keywords):
(bat-font-lock-keywords): Highlight setx (bug#53568).
2022-01-27 17:12:11 +01:00
Lars Ingebrigtsen
77b4e06f8a Move some of the doc-view variables around to fix load errors 2022-01-27 17:10:13 +01:00
Daniel Nicolai
d633db5189 Add support for EPUB, CBZ, FB2 and (O)XPS extension to doc view
* doc/emacs/misc.texi (Document View): Add requirements for new
extensions (i.e. mutool).

* lisp/doc-view.el (doc-view): Additionally update preliminary comment
(doc-view-custom-set-epub-font-size): redraw image after setting
(doc-view-unoconv-program): Put code all on one line
(doc-view-doc-type): Update docstring.
(doc-view-kill-proc): Fix comment indentation
(doc-view-mode-p):
Add check for new extensions and alternative check for PDF
(doc-view-pdf/ps->png): Associate new extension with png converter
(doc-view-convert-current-doc): Handle new extensions like PDF's
(doc-view-set-doc-type): Set correct doc-type for new extensions.

* lisp/files.el (auto-mode-alist):
Associate new extension types with doc-view.
2022-01-27 17:03:38 +01:00
Lars Ingebrigtsen
b9239954b6 Tweak href/superscript fix in tex-mode
* lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1): Fix
superscripts in href in a better way.
2022-01-27 16:30:12 +01:00
Lars Ingebrigtsen
decd6f830c Revert "Don't output spurious prefixes in read-char-exclusive"
This reverts commit 701ec0bda2.

This change broke display of `C-q-' when doing the `C-q' command,
so it has to be fixed a different way.
2022-01-27 16:20:38 +01:00
Po Lu
0991e8686c Improve xwidget window ancestry calculations
* src/xwidget.c (xw_find_common_ancestor):
(xw_notify_virtual_upwards_until)
(xw_notify_virtual_downwards_until): New functions.
(xw_maybe_synthesize_crossing): Synthesize virtual events like
GTK does for non-linear changes.
2022-01-27 21:38:07 +08:00
Andreas Schwab
63255de48b * src/pdumper.c (dump_vectorlike): Handle PVEC_SYMBOL_WITH_POS. 2022-01-27 12:30:17 +01:00
Eli Zaretskii
dae4fa9986 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2022-01-27 12:57:16 +02:00
Zajcev Evgeny
9d34946e53 ; Fix typo in doc/lispref/display.texi. 2022-01-27 12:56:30 +02:00
Andrea Corallo
d0aac84b2a * Fix `startup--honor-delayed-native-compilations' for (bug#53497)
* lisp/startup.el (startup--honor-delayed-native-compilations): Don't
forget to set `comp--loadable' when `comp--delayed-sources' is empty.
2022-01-27 11:55:35 +01:00
Andrea Corallo
60cfb90d01 * Have `benchmark-run-compiled' use the native compiler when available
* lisp/emacs-lisp/benchmark.el (benchmark-run-compiled): Use native
compiler when available.
2022-01-27 11:55:21 +01:00
Stefan Kangas
a8862f313b Merge from origin/emacs-28
c9524819ea Partially revert a fill-region-as-paragraph regression
6075ea0b79 Fix 'make_lispy_position' when there's an image at EOB

# Conflicts:
#	test/lisp/textmodes/fill-tests.el
2022-01-27 09:45:49 +01:00
Stefan Kangas
82aa5be7ce ; Merge from origin/emacs-28
The following commits were skipped:

c5b0019e10 Fix copyright-find-copyright when searching from the end
ed18d08f6f Fix copyright.el comment and add a test
2022-01-27 09:07:56 +01:00
Po Lu
333e95196f * lisp/xwidget.el (xwidget-webkit-edit-mode-map): Pass C-backspace. 2022-01-27 14:07:08 +08:00
Po Lu
b89ae23636 Implement crossing event generation between windows for xwidgets on X
* src/xwidget.c (enum xw_crossing_mode): New enum.
(xwidget_motion_notify):
(xwidget_motion_or_crossing): Synthesize crossing events if the
pointer moved between different windows.
(window_coords_from_toplevel):
(xw_maybe_synthesize_crossing): New functions.
(xwidget_init_view): Initialize new field to NULL.
(Fdelete_xwidget_view): Clear last crossing window.

* src/xwidget.h (struct xwidget_view): New field
`last_crossing_window'.
2022-01-27 14:00:46 +08:00
Stefan Kangas
2b150f943b Silence byte-compiler slightly in tests
* test/src/comp-resources/comp-test-45603.el
(comp-test-45603--call-marked):
* test/src/comp-resources/comp-test-funcs.el
(comp-tests-discardn-f, comp-test-42360-f, comp-test-46824-1-f)
(comp-test-silly-frame2): Silence byte-compiler.
2022-01-27 04:25:08 +01:00
Stefan Kangas
5b931eb8ff Don't use obsolete second argument to byte-compile-file
* test/src/comp-resources/comp-test-funcs.el
(comp-test-big-interactive): Don't use obsolete second argument to
byte-compile-file.
2022-01-27 04:15:13 +01:00
Stefan Kangas
8f9f1701f6 Don't discourage auto-mode-alist entries in autoloads
* lisp/files.el (auto-mode-alist, interpreter-mode-alist): Delete
comment discouraging entries in autoload directives.  (Bug#8158)
2022-01-27 03:57:45 +01:00
Po Lu
a0fbdb5166 Improve XI2 valuator reset logic
* src/xterm.c (handle_one_xevent): Clear valuators on XI_Leave
instead of XI_Enter.
2022-01-27 10:03:56 +08:00
Po Lu
458024a3d9 * src/xterm.c (x_focus_frame): Set input focus on outer window. 2022-01-27 09:33:11 +08:00
Po Lu
7116092eaf Get rid of unnecessary draw locking in haikumenu.c
* src/haikumenu.c (Fhaiku_menu_bar_open): Stop holding the draw
lock.
2022-01-27 01:26:54 +00:00
Po Lu
824440a7c8 Apply fix for bug#52761 to GTK native input as well
* src/xgselect.c (xg_select): Apply said fix on regular GTK
builds when native input is being used.
2022-01-27 09:20:25 +08:00
Glenn Morris
6fcf7c9a83 * Makefile.in (install-etc): Remove unnecessary chown.
Not needed since this rule was changed to not use tar, 2012-05-11.
2022-01-26 16:58:21 -05:00
Lars Ingebrigtsen
0a51a85b5d Make smerge-refine-ignore-whitespace into defcustom
* lisp/vc/smerge-mode.el (smerge-refine-ignore-whitespace): Make
into defcustom (bug#12585).
2022-01-26 18:57:29 +01:00