Bug 137868 - AltGr aborts search with Ctrl-S
Summary: AltGr aborts search with Ctrl-S
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: emacs
Version: 3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact:
URL:
Whiteboard:
: 139424 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-02 13:46 UTC by Thomas Woerner
Modified: 2007-11-30 22:10 UTC (History)
4 users (show)

Fixed In Version: 21.3-20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-02-13 16:00:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Thomas Woerner 2004-11-02 13:46:14 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041016
Firefox/0.10.1

Description of problem:
Searching of a string which contains e.g. a "[" or similar is not
possible with a german keyboard. The search command is aborted as soon
as AltGr is pressed. 

AltGr is necessary for some characters on german keyboards: @, �, {,
}, [, ], \, �, ~, |, ..


This is also an issue for RHEL-4.

Version-Release number of selected component (if applicable):
emacs-21.3-17

How reproducible:
Always

Steps to Reproduce:
1. Start emacs
2. Enter search string and press AltGr
3.
    

Actual Results:  Search aborts completely.

Expected Results:  Search string contains one of the above charaters.

Additional info:

Comment 1 Jens Petersen 2004-11-02 14:01:49 UTC
What is AltGr bound to in X for you?

You say this is new in fc3?
Looking through the changelog entries since fc2, I don't see anything
that could have caused this directly.  Could it be related to some
change in xorg-x11?

Comment 2 Thomas Woerner 2004-11-02 14:24:13 UTC
Search is working for me on another box with emacs-21.3-14 and AltGr. 
After upgrading to 21.3-17 it is not working anymore.


Comment 3 Jens Petersen 2004-11-02 14:33:42 UTC
You can reproduce with "emacs -q --no-site-file"?

Comment 4 Thomas Woerner 2004-11-02 14:48:34 UTC
Yes I can. It is still not working.

"emacs -nw" is not affected.

Comment 5 Jens Petersen 2004-11-03 06:25:32 UTC
What is AltGr bound to in X for you?

Comment 6 Thomas Woerner 2004-11-11 14:14:35 UTC
xev reports this for AltGr:

KeyPress event, serial 30, synthetic NO, window 0x1800001,
    root 0xb6, subw 0x0, time 2515848786, (114,65), root:(117,841),
    state 0x0, keycode 113 (keysym 0xfe03, ISO_Level3_Shift),
same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 30, synthetic NO, window 0x1800001,
    root 0xb6, subw 0x0, time 2515849026, (114,65), root:(117,841),
    state 0x80, keycode 113 (keysym 0xfe03, ISO_Level3_Shift),
same_screen YES,
    XLookupString gives 0 bytes: 


Comment 7 Jens Petersen 2005-01-11 06:49:34 UTC
Hmm, I see no changes in the changelog between -14 and -17 that could
affect this.  You don't think it is related to xorg-x11?

Actually I just tried this with a RHEL4 beta and it seems to work fine
for me.  You can reproduce on a clean FC3 install?

Comment 8 Jens Petersen 2005-01-11 06:55:52 UTC
Btw a similar bug has been reported for xemacs: bug 144601.

Comment 9 Thomas Woerner 2005-01-11 10:55:17 UTC
I have recompiled emacs-21.3-14. This version has the same porblem as
emacs-21.3-17, but the original binary package emacs-21.3-14 does not
have the problem.

Comment 10 Jens Petersen 2005-01-11 11:12:56 UTC
Very strange... compiling on fc2 makes it work normally?

Comment 11 Thomas Woerner 2005-01-11 11:28:51 UTC
Here is the patch:

http://lists.gnu.org/archive/html/bug-gnu-emacs/2004-10/msg00150.html

It is working for me.


Comment 12 Jens Petersen 2005-01-14 06:15:52 UTC
Thanks.

However I'm having problems reproducing this now:

1) I install a fresh fc3 Personal Desktop
2) log into gnome after firstboot,
3) $ setxkbmap de
   $ emacs
4) press AltGr-8

and "[" appears without problem for me.

What am I missing?  (I don't doubt that there is a problem,
but since I can't reproduce it is hard to test the fix...:)

Comment 13 Ville Skyttä 2005-01-14 06:58:08 UTC
The problem occurs only with I-search.

Fire up emacs, hit Ctrl-S, then AltGr (no need to press anything
else).  Pressing AltGr terminates the search, so one cannot search for
something  that has eg. "[" in it.


Comment 14 Thomas Woerner 2005-01-14 13:19:20 UTC
Please have a look at the summary: "AltGr aborts search with Ctrl-S" ...

Comment 15 Jens Petersen 2005-01-14 13:53:47 UTC
Yes, thank you.  I just wanted to make sure this hasn't
been fixed in newer xorg-x11, but it seems not for fc3 yet at least.
And emacs doesn't build currently in devel...

Comment 16 Jens Petersen 2005-01-21 00:52:50 UTC
emacs-21.3-20 in rawhide should have the above fix.
Could you please test that first?  Thanks.

Comment 17 Tim Niemueller 2005-01-24 13:41:15 UTC
The problem is fixed in rawhide emacs, but xemacs still has the problem.

# rpm -q emacs xemacs
emacs-21.3-20
xemacs-21.4.16-1

Comment 18 Thomas Woerner 2005-01-24 16:47:15 UTC
emacs-21.3-20 works for me.

Comment 19 Ville Skyttä 2005-01-24 22:37:05 UTC
For XEmacs, see bug 144601; it includes an attached fix that has already been
applied upstream.

Comment 20 Jens Petersen 2005-01-25 00:23:42 UTC
Thanks.

Comment 21 Jens Petersen 2005-01-25 00:24:25 UTC
Re-opening for FC3 update.

Comment 22 Jens Petersen 2005-02-13 16:00:37 UTC
Fixed in recent movemail security update.

Comment 23 Jens Petersen 2005-02-14 05:19:53 UTC
*** Bug 139424 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.