From: Katsumi Yamaoka <yamaoka@jpl.org>
To: 6349@debbugs.gnu.org
Subject: bug#6349: 24.0.50; C-a doesn't work in tty
Date: Fri, 18 Jun 2010 16:46:10 +0900 [thread overview]
Message-ID: <b4mr5k4ye9p.fsf@jpl.org> (raw)
In-Reply-To: <b4meign8c56.fsf@jpl.org>
Katsumi Yamaoka wrote:
>>>>>> Katsumi Yamaoka wrote:
>> If a long line, of which the left side is truncated, begins with
>> a wide character in the window, the `C-a' command doesn't move
>> the cursor. It happens in Emacs launched as `emacs -nw -Q'.
>> Please try this form:
>> (let ((buffer (get-buffer-create "*testing*")))
>> (pop-to-buffer buffer)
>> (erase-buffer)
>> (insert-char (make-char 'japanese-jisx0208 36 34) 256)
>> (setq truncate-lines t)
>> (end-of-line))
> Not only the C-a command but also any kind of operation that should
> set the window-hscroll to zero doesn't seem to work in tty.
[...]
Here's a workaround:
(defadvice move-beginning-of-line (after set-window-hscroll-to-zero-in-tty
activate)
"Set window-hscroll to zero in tty if point moves to bol."
(if (and (not window-system) (bolp))
(set-window-hscroll (selected-window) 0)))
next prev parent reply other threads:[~2010-06-18 7:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-04 7:55 bug#6349: 24.0.50; C-a doesn't work in tty Katsumi Yamaoka
2010-06-09 0:52 ` Katsumi Yamaoka
2010-06-18 7:46 ` Katsumi Yamaoka [this message]
2010-10-01 12:53 ` Kenichi Handa
2010-10-01 17:53 ` Eli Zaretskii
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=b4mr5k4ye9p.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=6349@debbugs.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.
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.