From: Ost Qa via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: switching from line-mode to char-mode
Date: Sat, 18 Jun 2022 06:37:20 +0000 (UTC) [thread overview]
Message-ID: <1114336686.3062541.1655534240476@mail.yahoo.com> (raw)
In-Reply-To: 1114336686.3062541.1655534240476.ref@mail.yahoo.com
I recently updated a few machines and noticed that term.el in Emacs version 27+ forcibly submits my pasted commands to the shell sub-process when switching to char-mode (from line-mode). In prior versions of Emacs term.el didn't do this; I could further modify the command in char-mode even if it was pasted from line-mode and submit it myself by pressing enter.
I find this very inconvenient since I often copy a command from another buffer and paste it into the terminal via line-mode, then switch to char-mode so I can use bash completion to further modify the command. I understand that I could, for example, use a shell instead of ansi-term and rely on something like https://github.com/szermatt/emacs-bash-completion for completion but that solution has adverse consequences when running curses based programs.
This has bothered me so much it's caused me to load an old version of term.el by adding the following to my .emacs file:
(unless (version< emacs-version "27.0")
(load-user-file "term.el"))
Anyway... is this change to the functionality of term.el a bug or intentional? I've looked through term.el itself but I'm not an especially seasoned Emacs lisp developer and so can't infer enough from it.
Am I the only one who thinks this functionality is a step backwards?
Thanks 1e6
next parent reply other threads:[~2022-06-18 6:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1114336686.3062541.1655534240476.ref@mail.yahoo.com>
2022-06-18 6:37 ` Ost Qa via Users list for the GNU Emacs text editor [this message]
2022-06-19 18:41 ` switching from line-mode to char-mode Michael Heerdegen
2022-06-20 14:52 ` Ost Qa via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1114336686.3062541.1655534240476@mail.yahoo.com \
--to=help-gnu-emacs@gnu.org \
--cc=ost.qa@aol.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.