unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7234: 24.0.50; strange message after text-scale-adjust
@ 2010-10-18  4:09 Kenichi Handa
  2010-10-18  7:16 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Kenichi Handa @ 2010-10-18  4:09 UTC (permalink / raw)
  To: 7234

When I start emacs as this:

% emacs -Q

and type:

  ESC : (text-scale-adjust 1) RET C-b

"(2)" is shown in the echo area.

With a file "~/temp" that contains only "abc\n", when I
start emacs as this:

% emacs -Q ~/temp

and type:

  ESC : (text-scale-adjust 1) RET C-f

"(6)" is shown.  When I type C-e instead of C-f above, "(5)"
is shown.  It seems that the number shown corresponds to the
character code of the last command.

This happesn both with emacs-23 and trunk branches.

---
Kenichi Handa
handa@m17n.org





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7234: 24.0.50; strange message after text-scale-adjust
  2010-10-18  4:09 bug#7234: 24.0.50; strange message after text-scale-adjust Kenichi Handa
@ 2010-10-18  7:16 ` Eli Zaretskii
  2010-10-18 10:55   ` Kenichi Handa
       [not found]   ` <mailman.0.1287400359.30531.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Eli Zaretskii @ 2010-10-18  7:16 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: 7234

> From: Kenichi Handa <handa@m17n.org>
> Date: Mon, 18 Oct 2010 13:09:29 +0900
> Cc: 
> 
>   ESC : (text-scale-adjust 1) RET C-b
> 
> "(2)" is shown in the echo area.
> 
>   ESC : (text-scale-adjust 1) RET C-f
> 
> "(6)" is shown.  When I type C-e instead of C-f above, "(5)"
> is shown.  It seems that the number shown corresponds to the
> character code of the last command.

That's because text-scale-adjust does at its end

    (push ev unread-command-events)))

and `push' returns its first argument.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7234: 24.0.50; strange message after text-scale-adjust
  2010-10-18  7:16 ` Eli Zaretskii
@ 2010-10-18 10:55   ` Kenichi Handa
       [not found]   ` <mailman.0.1287400359.30531.bug-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Kenichi Handa @ 2010-10-18 10:55 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 7234-done

In article <E1P7jwu-0005UJ-KX@fencepost.gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:

> > From: Kenichi Handa <handa@m17n.org>
> > Date: Mon, 18 Oct 2010 13:09:29 +0900
> > Cc: 
> > 
> >   ESC : (text-scale-adjust 1) RET C-b
> > 
> > "(2)" is shown in the echo area.
> > 
> >   ESC : (text-scale-adjust 1) RET C-f
> > 
> > "(6)" is shown.  When I type C-e instead of C-f above, "(5)"
> > is shown.  It seems that the number shown corresponds to the
> > character code of the last command.

> That's because text-scale-adjust does at its end

>     (push ev unread-command-events)))

> and `push' returns its first argument.

Ah, I see.  Thank you for the explanation.  I didn't realize
that when I typed C-f (or C-b), text-scale-adjust was not
yet finished.  It would be better that read-event call in
text-scale-adjust has some prompt:
 e.g. (read-event "+,-,0 for further adjustment: ")

Anyway, I'll close this bug.

---
Kenichi Handa
handa@m17n.org





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7234: 24.0.50; strange message after text-scale-adjust
       [not found]   ` <mailman.0.1287400359.30531.bug-gnu-emacs@gnu.org>
@ 2010-10-18 12:30     ` Miles Bader
  0 siblings, 0 replies; 4+ messages in thread
From: Miles Bader @ 2010-10-18 12:30 UTC (permalink / raw)
  To: 7234

For non-interactive use, you should probably also be using
`text-scale-set' or `text-scale-increase' instead.

-Miles

-- 
Ocean, n. A body of water covering seven-tenths of a world designed for Man -
who has no gills.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-18 12:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-18  4:09 bug#7234: 24.0.50; strange message after text-scale-adjust Kenichi Handa
2010-10-18  7:16 ` Eli Zaretskii
2010-10-18 10:55   ` Kenichi Handa
     [not found]   ` <mailman.0.1287400359.30531.bug-gnu-emacs@gnu.org>
2010-10-18 12:30     ` Miles Bader

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