unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Multi_key and dead keys under irix 6.5, emacs 21.2
@ 2003-10-31 14:24 Ingo Bremer
  2003-11-02  0:08 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Ingo Bremer @ 2003-10-31 14:24 UTC (permalink / raw)



hallo,

under sgi irix (6.5.13m) the XK_Multi_key and the dead_keys are
not working in emacs-21.2.

the reason is a difference between the run-time behaviour
of XmbLookupString and the description in the manual:

---
XLookupNone       No consistent input has been composed so
                            far.  The contents of buffer_return and
                            keysym_return are not modified, and the
                            function returns zero.
---

in fact, after pressing Multi_key ' a we have status_return == XLookupNone
AND nbytes == 1 with the correct latin1-character "á" in the buffer.
my little patch helps emacs to deal with this situation

patch for 
eamcs-21.2/src/xterm.c near line 10449


	if (status_return == XLookupNone && nbytes >0) { /* should not appear, but... 
*/
		keysym = NoSymbol;
	}
		else {
		      if (status_return == XLookupNone)
			break;
		      else if (status_return == XLookupChars)
			{
			  keysym = NoSymbol;
			  modifiers = 0;
			}
		      else if (status_return != XLookupKeySym
			       && status_return != XLookupBoth)
			abort ();
		}

best regards
i.b.

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

end of thread, other threads:[~2003-11-02  0:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-31 14:24 Multi_key and dead keys under irix 6.5, emacs 21.2 Ingo Bremer
2003-11-02  0:08 ` Richard Stallman

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