From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Emacs registers above 255 Date: Wed, 19 May 2010 16:15:34 +0200 Organization: Organization?!? Message-ID: <87sk5ovuyh.fsf@lola.goethe.zz> References: <87sk5ohtt4.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1274278564 19712 80.91.229.12 (19 May 2010 14:16:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 May 2010 14:16:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 19 16:15:59 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OEk3z-0005ax-74 for ged-emacs-devel@m.gmane.org; Wed, 19 May 2010 16:15:59 +0200 Original-Received: from localhost ([127.0.0.1]:37616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEk3y-00015E-Ax for ged-emacs-devel@m.gmane.org; Wed, 19 May 2010 10:15:58 -0400 Original-Received: from [140.186.70.92] (port=58547 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEk3r-00011U-G3 for emacs-devel@gnu.org; Wed, 19 May 2010 10:15:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEk3m-0003js-3E for emacs-devel@gnu.org; Wed, 19 May 2010 10:15:51 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:38970) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEk3l-0003jR-Pp for emacs-devel@gnu.org; Wed, 19 May 2010 10:15:46 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OEk3i-0005PH-Hz for emacs-devel@gnu.org; Wed, 19 May 2010 16:15:42 +0200 Original-Received: from p5b2c1f7f.dip.t-dialin.net ([91.44.31.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 May 2010 16:15:42 +0200 Original-Received: from dak by p5b2c1f7f.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 May 2010 16:15:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ connect(): No such file or directory Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p5b2c1f7f.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:NUnl+MO/T8bHH9sygq5+ZLhpqbg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124938 Archived-At: Štěpán Němec writes: > Hello, > > according to the documentation, registers are characters up to 255. > But the actual implementation is very simple and permits storing > "anything" in `register-alist' using `set-register'; it's just that the > UI functions use the "c" interactive spec, so you can't really enter > anything other than a character inputtable without an input method. Huh? (defun weird-check (c) (interactive "c") c) (call-interactively 'weird-check) => 265 [after inputting ĉ using an X11 input method rather than an Emacs one] > My question is: would you consider it too much of a hack if a package > used registers above 255 to not clobber the standard registers, but on > the other hand be able to use the existing infrastructure (my example > use case would be implementing Vim-compatible registers in an > emulation package)? You are assuming that a keyboard can only deliver single-byte characters, namely that Emacs is the only multi-byte capable environment on a given computer. That's simply wrong. -- David Kastrup