unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5193: 23.1; single-key-description problem
@ 2009-12-12 16:03 Drew Adams
  2011-09-18  9:56 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2009-12-12 16:03 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 516 bytes --]

emacs -Q
 
The character range (128 . 4194303) is bound to `self-insert-command'.
 
(single-key-description 128) gives "\200"
(single-key-description 4194303) gives "\377"
 
However, in the former case, "\200" is a string with one character,
\200. In the latter case, "\377" is a string with four characters, \,
3, 7, and 7.
 
In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
 of 2009-07-29 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4)'
 
 

[-- Attachment #2: Type: text/html, Size: 1288 bytes --]

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

* bug#5193: 23.1; single-key-description problem
  2009-12-12 16:03 bug#5193: 23.1; single-key-description problem Drew Adams
@ 2011-09-18  9:56 ` Lars Magne Ingebrigtsen
  2011-09-19 18:52   ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-18  9:56 UTC (permalink / raw)
  To: Drew Adams; +Cc: 5193

"Drew Adams" <drew.adams@oracle.com> writes:

> The character range (128 . 4194303) is bound to `self-insert-command'.
>  
> (single-key-description 128) gives "\200"
> (single-key-description 4194303) gives "\377"
>  
> However, in the former case, "\200" is a string with one character,
> \200. In the latter case, "\377" is a string with four characters, \,
> 3, 7, and 7.

Something seems to have changed here:

(single-key-description 128) => "€"
(single-key-description 4194303) => "\301\277"

But it's essentially still the same -- the 128 is a string of one
character, and the other one is a string of 8 characters.

I have no idea whether this is a bug or a feature, though.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





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

* bug#5193: 23.1; single-key-description problem
  2011-09-18  9:56 ` Lars Magne Ingebrigtsen
@ 2011-09-19 18:52   ` Stefan Monnier
  2011-09-19 21:23     ` Andreas Schwab
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2011-09-19 18:52 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: 5193

>> The character range (128 . 4194303) is bound to `self-insert-command'.
>> (single-key-description 128) gives "\200"
>> (single-key-description 4194303) gives "\377"
>> However, in the former case, "\200" is a string with one character,
>> \200. In the latter case, "\377" is a string with four characters, \,
>> 3, 7, and 7.
> Something seems to have changed here:
> (single-key-description 128) => "€"

This change is just the result of the switch from emacs-mule in
Emacs-22 to emacs-unicode in Emacs≥23 (i.e. 128 doesn't mean the same
char any more).

> (single-key-description 4194303) => "\301\277"
> But it's essentially still the same -- the 128 is a string of one
> character, and the other one is a string of 8 characters.
> I have no idea whether this is a bug or a feature, though.

Showing the internal representation of byte characters is clearly a bug.
I.e. (single-key-description 4194303) could/should return something like
"\377" either as a single char or as 4 chars.


        Stefan





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

* bug#5193: 23.1; single-key-description problem
  2011-09-19 18:52   ` Stefan Monnier
@ 2011-09-19 21:23     ` Andreas Schwab
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2011-09-19 21:23 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Lars Magne Ingebrigtsen, 5193-done

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Showing the internal representation of byte characters is clearly a bug.

Fixed on emacs-23.

> I.e. (single-key-description 4194303) could/should return something like
> "\377" either as a single char or as 4 chars.

The four char form is just the print representation and has nothing to
do with single-key-description.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

end of thread, other threads:[~2011-09-19 21:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-12 16:03 bug#5193: 23.1; single-key-description problem Drew Adams
2011-09-18  9:56 ` Lars Magne Ingebrigtsen
2011-09-19 18:52   ` Stefan Monnier
2011-09-19 21:23     ` Andreas Schwab

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