unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
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: Wed, 09 Jun 2010 09:52:20 +0900	[thread overview]
Message-ID: <b4mk4q9ni2j.fsf@jpl.org> (raw)
In-Reply-To: <b4meign8c56.fsf@jpl.org>

>>>>> 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.  The
following forms are expected to show the line from the beginning.

(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)
  (sit-for 0)
  (skip-chars-backward "^\n"))

(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)
  (sit-for 0)
  (if (search-backward "\n" nil 'move) (forward-char 1)))

(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)
  (sit-for 0)
  (beginning-of-line))

(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)
  (sit-for 0)
  (goto-char (line-beginning-position)))

> In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
>  of 2010-06-04 on ******
> Windowing system distributor `Fedora Project', version 11.0.10800000
> configured using `configure  '--with-x-toolkit=lucid' '--without-xim'

Thanks Fujiwara-san who also confirmed the same behavior on
NetBSD/amd64 5.0_STABLE.





  reply	other threads:[~2010-06-09  0:52 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 [this message]
2010-06-18  7:46   ` Katsumi Yamaoka
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

  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=b4mk4q9ni2j.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).