From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Behavior of with-current-buffer
Date: Wed, 15 Apr 2020 09:37:22 +0200 [thread overview]
Message-ID: <7821ac97-3e73-c38f-a5ad-6094c0c92a06@easy-emacs.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 893 bytes --]
Hi,
have a buffer connected with a Python-process, however not in
comint-mode - for speed. See upper window in attachment not-point-max.png.
In the case given "import json" was sent to this buffer by a function
‘py-fast-send-string’ which is shown partially in window below.
This function checks for a newline-char at the end of the string -
actually an extra "\n" was sent inside this or-clause.
After sending "\n", second-cursor in output-buffer is shown after the
newly inserted prompt at EOB. However, when or-clause returns, the
cursor jumps back to the position before the last prompt started, i.e.
at position before sending.
An extra (goto-char (point-max)) as shown in code would help, but
shouldn't be necessary.
Any explanation? A bug?
Thanks,
Andreas
GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.32,
cairo version 1.16.0) of 2020-04-06
[-- Attachment #2: not-point-max.png --]
[-- Type: image/png, Size: 149475 bytes --]
next reply other threads:[~2020-04-15 7:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-15 7:37 Andreas Röhler [this message]
2020-04-15 8:37 ` Behavior of with-current-buffer Andreas Röhler
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7821ac97-3e73-c38f-a5ad-6094c0c92a06@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).