unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Rene@Kyllingstad.com, cyd@gnu.org, sdl.web@gmail.com,
	emacs-devel@gnu.org
Subject: Re: insert-char as alias to ucs-insert
Date: Mon, 16 Jul 2012 21:13:02 +0200	[thread overview]
Message-ID: <874np7a5a9.fsf@zigzag.favinet> (raw)
In-Reply-To: 83a9yzbsui.fsf@gnu.org

() Eli Zaretskii <eliz@gnu.org>
() Mon, 16 Jul 2012 18:58:45 +0300

   > So this would break code that depends on ‘ucs-insert’ throwing
   > this range error.  Is there a lot of code like that in the wild?

   If there is such a code, it is already broken, because a character in
   Emacs can really have values up to #x3FFFFF.

Perhaps that code was not interested in Emacs' abilities per se,
but in filtering valid Unicode characters...

   > Regardless, it feels wrong to discard this check.

   Can you explain why?

Not really.  It's just a gut feeling that the name of the function
(includes "UCS") should not need to have to be explained away in
the documentation:

(defun ucs-insert (CHARACTER ...)
  "Insert COUNT copies of CHARACTER of the given Unicode code point.
Actually, CHARACTER can also be up to #x3FFFFF, which is not properly
Unicode, but you get the idea [insert other convulsions here]..."
   ...)

I see in another message by Stefan Monnier the idea to declare
‘ucs-insert’ obsolete, reducing confusion for stickler programmers
(like me).  That's fine, too.



  reply	other threads:[~2012-07-16 19:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-12 14:00 insert-char as alias to ucs-insert René Kyllingstad
2012-07-14  2:07 ` Leo
2012-07-14 15:57   ` Chong Yidong
2012-07-15 16:35     ` René Kyllingstad
2012-07-16  9:16       ` Chong Yidong
2012-07-16 10:31         ` Thien-Thi Nguyen
2012-07-16 15:58           ` Eli Zaretskii
2012-07-16 19:13             ` Thien-Thi Nguyen [this message]
2012-07-17 13:11             ` Jason Rumney
2012-07-16 16:14           ` Stefan Monnier

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=874np7a5a9.fsf@zigzag.favinet \
    --to=ttn@gnuvola.org \
    --cc=Rene@Kyllingstad.com \
    --cc=cyd@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=sdl.web@gmail.com \
    /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).