GNU bug report logs - #6349
24.0.50; C-a doesn't work in tty

Previous Next

Package: emacs;

Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>

Date: Fri, 4 Jun 2010 07:57:02 UTC

Severity: normal

Found in version 24.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: 6349 <at> debbugs.gnu.org
Cc: Makoto Fujiwara <makoto <at> ki.nu>
Subject: bug#6349: 24.0.50; C-a doesn't work in tty
Date: Fri, 18 Jun 2010 16:46:10 +0900
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)))




This bug report was last modified 14 years and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.