[Bug 858430] New: Error in .gnu-emacs prevents cua - mode from apropriate function
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=858430 https://bugzilla.novell.com/show_bug.cgi?id=858430#c0 Summary: Error in .gnu-emacs prevents cua - mode from apropriate function Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: X11 Applications AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dieter.jurzitza@t-online.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=574101) --> (http://bugzilla.novell.com/attachment.cgi?id=574101) patching /etc/skel/.gnu-emacs in order to get marking back to work as expected User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 When working with cua-mode one always could mark areas downwards by pressing the shift key and Down in parallel. The same was true if one was pressing both the shift key and Up. Starting with openSUSE 13.1, the new emacs does not allow to do this any more. The culprit can be found in two lines in the file .gnu-emacs (which in fact were there since a long time but did not cause any issues, probably because cua-mode has been modified to not reassign the corresponding keys any more): (global-set-key [S-up] 'previous-line) (global-set-key [S-down] 'next-line) commenting them out fixes the problem - and honestly, I do not see any sense for a declaration like the above, because the down - key provides the functionality, so why assign shift-down the same as down ... Reproducible: Always Steps to Reproduce: 1. load cua - mode in emacs 2. try to mark an area by pressing up/down and shift in parallel 3. Actual Results: Area is not marked Expected Results: Area should be marked -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=858430 https://bugzilla.novell.com/show_bug.cgi?id=858430#c Xiyuan Liu <xyliu@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyliu@suse.com AssignedTo|bnc-team-screening@forge.pr |werner@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=858430 https://bugzilla.novell.com/show_bug.cgi?id=858430#c1 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Dr. Werner Fink <werner@suse.com> 2014-01-15 11:53:42 UTC --- Fixed -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=858430 https://bugzilla.novell.com/show_bug.cgi?id=858430#c2 --- Comment #2 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-01-15 13:00:21 CET --- This is an autogenerated message for OBS integration: This bug (858430) was mentioned in https://build.opensuse.org/request/show/213975 Factory / emacs https://build.opensuse.org/request/show/213976 13.1 / emacs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=858430 https://bugzilla.novell.com/show_bug.cgi?id=858430#c3 Dieter Jurzitza <dieter.jurzitza@t-online.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #3 from Dieter Jurzitza <dieter.jurzitza@t-online.de> 2014-01-17 19:54:58 UTC --- Sorry, I discovered today that I have to reopen .... though I have the corresponding solution right at hand :-) It is not enough to comment the two lines mentioned above, but the two lines above those two have to be commented out, too. This is related to: ;; (global-set-key [S-left] 'backward-char) ;; (global-set-key [S-right] 'forward-char) as they prevent CUA-Mode from marking text when pressing shift - left and shift- right. I discovered that today. Would highly appreciate if you could fix (comment ... ) them, too. Thank you for looking into this, take care Dieter Jurzitza -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=858430 https://bugzilla.novell.com/show_bug.cgi?id=858430#c4 --- Comment #4 from Benjamin Brunner <bbrunner@suse.com> 2014-01-23 11:03:22 CET --- Thanks for figuring this out. Werner, is this change ok for you? If yes, I'll add it to the running update. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=858430 https://bugzilla.novell.com/show_bug.cgi?id=858430#c5 --- Comment #5 from Dr. Werner Fink <werner@suse.com> 2014-01-23 10:12:31 UTC --- (In reply to comment #4) Yes this is OK just go further, thanks a lot! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=858430 https://bugzilla.novell.com/show_bug.cgi?id=858430#c6 --- Comment #6 from Benjamin Brunner <bbrunner@suse.com> 2014-01-23 13:15:04 CET --- Thanks both of you. I have added the suggested changes to dot.gnu-emacs and update the changes file. Changed emacs.changes -- Do not reassign S-up and S-down anymore (bnc#858430) +- Do not reassign S-left, S-right, S-up and S-down anymore (bnc#858430) Changed dot.gnu-emacs @@ -422,8 +422,8 @@ ; (global-set-key [C-up] 'previous-line) ; (global-set-key [C-down] 'next-line) ;; - (global-set-key [S-left] 'backward-char) - (global-set-key [S-right] 'forward-char) +; (global-set-key [S-left] 'backward-char) +; (global-set-key [S-right] 'forward-char) ; (global-set-key [S-up] 'previous-line) ; (global-set-key [S-down] 'next-line) ;; -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com