Sam Steingold
18b680cfd1
Fix bug#52467 by adding a new custom variable 'display-comint-buffer-action'
...
* lisp/window.el (display-comint-buffer-action): New `defcustom`,
defaults to 'display-buffer-same-window' for backward compatibility.
* lisp/cmuscheme.el (run-scheme, switch-to-scheme): Pass
'display-comint-buffer-action' to 'pop-to-buffer' instead
of using 'pop-to-buffer-same-window'.
* lisp/eshell/eshell.el (eshell): Likewise.
* lisp/shell.el (shell): Likewise.
* lisp/org/ol-eshell.el (org-eshell-open): Likewise.
* lisp/progmodes/inf-lisp.el (inferior-lisp): Likewise.
* lisp/progmodes/project.el (project-shell, project-eshell): Likewise.
* lisp/textmodes/tex-mode.el (tex-display-shell, tex-compile-default)
(tex-recenter-output-buffer): Pass 'display-comint-buffer-action'
to 'pop-to-buffer'.
2021-12-28 17:28:49 -05:00
Philipp Stephani
6e52becfbe
Fix test lisp/cedet/semantic/bovine/gcc-tests on macOS (Bug#52431)
...
* test/lisp/cedet/semantic/bovine/gcc-tests.el
(semantic-gcc-test-output-parser-this-machine): Also detect Apple
clang on macOS Monterey.
2021-12-28 21:07:32 +01:00
Juri Linkov
2033f950fa
* lisp/textmodes/paragraphs.el (repunctuate-sentences): Region for NO-QUERY.
...
Use region boundaries also for the case when NO-QUERY arg is non-nil
(bug#52769).
2021-12-28 21:51:54 +02:00
Juri Linkov
af92c52669
* lisp/textmodes/paragraphs.el (repunctuate-sentences): Support region.
...
Add optional args 'start' and 'end', and pass them as region boundaries
to query-replace-regexp (bug#52769).
2021-12-28 21:19:25 +02:00
Juri Linkov
e066db2381
* lisp/replace.el (replace-regexp-function): New function (bug#52558).
...
(replace-search, replace-highlight): Use it.
2021-12-28 21:14:55 +02:00
Eli Zaretskii
d3bc520513
; * lisp/term.el (term-goto-process-mark-maybe): Fix typo in doc string.
2021-12-28 20:09:42 +02:00
Eli Zaretskii
8276605efb
; * lisp/keymap.el (key-valid-p): Fix wording of doc string.
2021-12-28 20:07:54 +02:00
Eli Zaretskii
498787e511
; * doc/emacs/search.texi (Lax Search): Fix wording.
2021-12-28 20:02:07 +02:00
Eli Zaretskii
5403dcf699
; * etc/NEWS: Fix punctuation.
2021-12-28 19:53:42 +02:00
Andrea Corallo
e7699bf290
* Fix native comp for non trivial function names (bug#52833)
...
* lisp/emacs-lisp/comp.el (comp-c-func-name): Fix native compilation
for functions with function names containing non trivial
characters (bug#52833).
2021-12-28 15:59:32 +01:00
Stefan Monnier
e31facd84a
* etc/NEWS (eieio-compat): Rewrite
2021-12-28 09:44:05 -05:00
Po Lu
d257d92d17
* lwlib/xlwmenu.c (fit_to_screen): Adjust correctly for child menus.
2021-12-28 17:53:20 +08:00
Juri Linkov
a17a11df04
* lisp/vc/vc.el (vc-revert): Use generate-new-buffer, not just new buffer name
2021-12-28 10:46:40 +02:00
Po Lu
3a855c5dac
Document a problem with IBus and the C-. key
...
* etc/PROBLEMS: Document an IBus emoji panel problem.
2021-12-28 15:30:31 +08:00
Po Lu
208ae993ba
Add support for pinch events to NS
...
* lisp/face-remap.el (text-scale-pinch): Remove mistaken
assumption that angle is always 1.0 at the beginning of
a sequence.
* src/nsterm.c (- magnifyWithEvent): New function.
2021-12-28 14:07:49 +08:00
Stefan Kangas
036e88ce2f
Merge from origin/emacs-28
...
c0815aca18 Fix typos in in 'reset-language-environment'
ea65de7577 eshell-complete-parse-arguments: don't use string-match on...
2021-12-28 06:30:38 +01:00
Po Lu
b6b2f797d9
Fix menu placement on multiple-display setups when using lwlib
...
* lwlib/xlwmenu.c (fit_to_screen):
(pop_up_menu): Adjust menu position based on dimensions of the
current monitor's workarea. (bug#52809)
* src/xfns.c (x_get_monitor_attributes): Stop testing for the
RandR extension here.
(xlw_monitor_dimensions_at_pos_1):
(xlw_monitor_dimensions_at_pos): New functions.
* src/xterm.c (x_term_init): Query for the RandR extension when
connecting to a display.
* src/xterm.h (xlw_monitor_dimensions_at_pos): New prototype.
2021-12-28 10:52:38 +08:00
Stefan Monnier
1a724cc2d2
Replace uniquify.el's advice with direct calls
...
This fixes bug#1338.
* src/buffer.c (Frename_buffer): Call `uniquify--rename-buffer-advice`.
* lisp/files.el (create-file-buffer):
Call`uniquify--create-file-buffer-advice`.
* lisp/uniquify.el (uniquify--rename-buffer-advice)
(uniquify--create-file-buffer-advice): Don't add them as advice any more.
Adjust their calling convention accordingly.
2021-12-27 20:59:16 -05:00
Po Lu
0f9ec379eb
Only rely on passive device grabs on XI2
...
* src/xterm.c (xi_grab_or_ungrab_device): Remove function.
(handle_one_xevent): Stop setting non-passive grabs.
2021-12-28 09:28:04 +08:00
Stefan Kangas
fb9b7b70f5
Fix read-multiple-choice tests
...
* lisp/emacs-lisp/rmc.el (rmc--add-key-description): Fix typo.
* test/lisp/emacs-lisp/rmc-tests.el
(test-rmc--add-key-description)
(test-rmc--add-key-description/with-attributes)
(test-rmc--add-key-description/non-graphical-display): Fix tests.
2021-12-28 00:09:08 +01:00
Stefan Monnier
13ef21e84a
Fix EIEIO tests to account for eieio-compat move
...
* test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el:
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el:
Require `eieio-compat` explicitly.
* test/manual/cedet/tests/test.el (a-method, a-generic):
* doc/misc/srecode.texi (Compound Dictionary Values):
* doc/misc/ede.texi (ede-generic-project): Update sample code to use
cl-generic syntax.
2021-12-27 17:24:52 -05:00
Stefan Kangas
0fb55c8776
admin.el: Move etc/NEWS to etc/NEWS.NN in one commit
...
This should preserve git history better for git blame, etc.
* admin/admin.el (admin-git-command): New variable.
(set-version): Move etc/NEWS to etc/NEWS.NN and prompt to commit
it immediately. (Bug#52420)
2021-12-27 20:39:10 +01:00
Stefan Kangas
85cb4f419b
disabled-command: Explain what SPC means again
...
* lisp/novice.el (disabled-command-function): Explain what SPC means
again, an explanation that was lost in a recent change.
2021-12-27 20:35:17 +01:00
Stefan Kangas
e2a7e5f409
read-multiple-choice: Improve key formatting
...
* lisp/emacs-lisp/rmc.el (rmc--add-key-description): Improve
formatting of key missing in the description. Use face help-key-name
on terminals that can't display underline.
2021-12-27 20:35:00 +01:00
Juri Linkov
1f792c2bc1
* etc/NEWS: Mention completion-wrap-movement.
2021-12-27 21:15:06 +02:00
Juri Linkov
d7416e3012
* doc/emacs/search.texi (Lax Search): Add char-fold-include.
2021-12-27 21:15:06 +02:00
Juri Linkov
65cd66c7d7
* lisp/tab-bar.el (tab-bar-history-mode-map): New defvar-keymap.
2021-12-27 21:15:06 +02:00
Michael Albinus
4ab5b89de8
The temprary "session" collection might not exist in Secret Service
...
* doc/misc/auth.texi (Secret Service API):
* test/lisp/net/secrets-tests.el (secrets--test-delete-all-session-items)
(secrets-test02-collections, secrets-test03-items)
(secrets-test04-search): The temporary "session" collection might
not exist.
* lisp/net/secrets.el (secrets-struct-secret-content-type):
Remove compatibility hack.
(secrets-create-item): Adapt accordingly.
2021-12-27 19:53:00 +01:00
Michael Albinus
01df347947
Use `permission-denied' in Tramp tests, and more
...
* lisp/net/tramp-crypt.el (tramp-crypt-maybe-open-connection):
Simplify code.
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-system-info):
Adapt for "mtp" method.
* test/lisp/net/tramp-tests.el (tramp-test18-file-attributes):
Use `permission-denied' error. Simplify code.
(tramp-test24-file-acl, tramp-test26-file-name-completion):
Simplify code.
2021-12-27 19:51:58 +01:00
Eli Zaretskii
c0815aca18
Fix typos in in 'reset-language-environment'
...
* lisp/international/mule-cmds.el (reset-language-environment):
Fix a typo in 'windows-nt'. (Bug#52816)
2021-12-27 19:00:33 +02:00
Stefan Kangas
8df3a71c52
Doc fix; fix terminology in key binding functions
...
* lisp/keymap.el (keymap-set, key-valid-p):
* lisp/subr.el (define-keymap): Doc fix; improve terminology.
2021-12-27 16:24:18 +01:00
Óscar Fuentes
ea65de7577
eshell-complete-parse-arguments: don't use string-match on a list
...
When there is more than one candidate for completion, `val' is a list.
Fixes bug#52794.
* lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments): protect
use of string-match with stringp.
2021-12-27 16:05:19 +01:00
Po Lu
caa1699264
Fix precision scrolling inside terminal buffers
...
* lisp/term.el (term-goto-process-mark-maybe): Don't move point
to process mark if the event is a vertical wheel event.
2021-12-27 17:56:12 +08:00
Stefan Monnier
d65534d254
* lisp/emacs-list/eieio-compat.el: Really move to obsolete
2021-12-27 01:57:42 -05:00
Stefan Kangas
4fedbfbfca
Merge from origin/emacs-28
...
d4e2850b32 Update to Org 9.5.2-3-geb9f34
2021-12-27 06:32:28 +01:00
Po Lu
53cf2cf81b
* src/pgtkterm.c (pgtk_handle_event): Add pinch event support.
2021-12-27 12:43:50 +08:00
Stefan Kangas
f522a064cf
perl-mode: Recognize "when"/"given" keywords
...
* lisp/progmodes/perl-mode.el (perl-font-lock-keywords-2): Add
keywords "when", "given" and "default". (Bug#10560)
(perl--syntax-exp-intro-keywords): Add "printf".
* test/manual/indent/perl.perl: Add test for "when"/"given".
2021-12-27 03:19:25 +01:00
Po Lu
d9977018e0
Fix menu window persistence and entry/leave events on Lucid on XI2
...
* src/xmenu.c (x_activate_menubar): Always clear the XI2 grab on
Xt.
* src/xterm.c (handle_one_xevent): On XI2, ignore LeaveNotify
events coming from the shell widget and use `x_window_to_frame'
to find the frame when handling XI_Leave events.
2021-12-27 10:05:01 +08:00
Po Lu
2ccb156887
Fix Lucid popup menu being stuck on XI2 builds
...
* src/xmenu.c (x_activate_menubar): Make some changes
conditional on XI2.
(create_and_show_popup_menu): Clear XI2 grab before showing
popup.
* src/xterm.c (xi_grab_or_ungrab_device): Don't grab device
if popup is activated on Lucid.
2021-12-27 09:16:18 +08:00
Po Lu
736bf3aaa7
Store sign separately when accumulating precision scroll momentum
...
* lisp/pixel-scroll.el (pixel-scroll-kinetic-state): Return
vector in new format.
(pixel-scroll-accumulate-velocity): Use new sign field.
2021-12-27 09:02:20 +08:00
Kyle Meyer
d4e2850b32
Update to Org 9.5.2-3-geb9f34
2021-12-26 16:37:26 -05:00
Stefan Kangas
d4353da0ad
Use defvar-keymap in tests
...
* test/lisp/button-tests.el (button-tests--map):
* test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-keymap):
* test/lisp/help-tests.el (help-tests-remap-map)
(help-tests-major-mode-map, help-tests-minor-mode-map):
* test/lisp/kmacro-tests.el (kmacro-tests-keymap):
* test/lisp/repeat-tests.el (repeat-tests-map)
(repeat-tests-repeat-map):
* test/src/keymap-tests.el (keymap-tests-minor-mode-map)
(keymap-tests-major-mode-map): Use defvar-keymap.
2021-12-26 21:52:56 +01:00
Stefan Kangas
d8fc436bbb
Prefer the defcustom :risky property in gnus
...
* lisp/gnus/gnus-art.el (gnus-button-alist)
(gnus-header-button-alist):
* lisp/gnus/gnus-group.el (gnus-group-highlight)
(gnus-group-icon-list):
* lisp/gnus/gnus-sum.el (gnus-summary-highlight):
* lisp/gnus/mm-util.el (mm-charset-eval-alist): Prefer the
defcustom :risky property to setting 'risky-local-variable
manually.
2021-12-26 17:51:15 +01:00
Stefan Kangas
83e0acdf6e
; * lisp/subr.el (define-keymap): Fix typos.
2021-12-26 17:25:31 +01:00
Stefan Kangas
6ad79059d2
Rewrite disabled-command to use read-multiple-choice
...
* lisp/novice.el (disabled-command-function): Rewrite to use
read-multiple-choice. Use command substitutions.
2021-12-26 17:06:02 +01:00
Stefan Kangas
40dcf9c2ab
read-multiple-choice: Display "SPC" instead of " "
...
* lisp/emacs-lisp/rmc.el (rmc--add-key-description): Improve display
of the keys TAB, RET, SPC, DEL, and ESC. This fixes a bug where " "
was highlighted in the description in a confusing way.
* test/lisp/emacs-lisp/rmc-tests.el
(test-rmc--add-key-description)
(test-rmc--add-key-description/with-attributes): Update tests for the
above change.
2021-12-26 17:05:39 +01:00
Stefan Kangas
1e7786437d
read-multiple-choice: Add optional argument show-help
...
* lisp/emacs-lisp/rmc.el (rmc--show-help): Factor out new function
from read-multiple-choice.
(read-multiple-choice): Add new optional argument show-help.
* doc/lispref/commands.texi (Reading One Event): Document above new
optional argument.
2021-12-26 17:03:53 +01:00
Stefan Kangas
787030b021
read-multiple-choice: Add face when key not in name string
...
* lisp/emacs-lisp/rmc.el (rmc--add-key-description): Add face
property also when key is not in the name string.
* test/lisp/emacs-lisp/rmc-tests.el
(test-rmc--add-key-description/with-attributes)
(test-rmc--add-key-description/non-graphical-display): Update tests.
2021-12-26 17:03:36 +01:00
Stefan Kangas
68f15e815e
Factor out new function rmc--add-key-description
...
* lisp/emacs-lisp/rmc.el (rmc--add-key-description): Factor out
new function from...
(read-multiple-choice): ...here.
* test/lisp/emacs-lisp/rmc-tests.el (test-rmc--add-key-description)
(test-rmc--add-key-description/with-attributes)
(test-rmc--add-key-description/non-graphical-display): New tests.
2021-12-26 15:47:16 +01:00
Po Lu
978987f7ad
* INSTALL: Document `--with-xinput2'.
2021-12-26 21:45:33 +08:00