Mercurial > hg > xemacs-beta
annotate etc/custom/example-themes/europe-theme.el @ 5751:2b8edd304c2b
Avoid throwing an error with misc-user events in isearch-pre-command-hook.
lisp/ChangeLog addition:
2013-08-05 Aidan Kehoe <kehoea@parhasard.net>
* isearch-mode.el (isearch-pre-command-hook):
If this function is called and (this-command-keys) contains
misc-user events, #'key-binding throws an error.
Eddie Corns and Alex Belits describe this happening in tracker
issue 336, and we can avoid this by catching the error and
handling the misc-user event in the same way that #'dispatch-event
does.
I haven't reproduced the actual error they describe, and welcome
testing to make sure it's gone.
Thank you Eddie, thank you Alex!
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Mon, 05 Aug 2013 13:34:27 +0100 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
4763
1de041b8edf7
Add copyright and license information to files authored by Jan Vroonhof.
Jerry James <james@xemacs.org>
parents:
398
diff
changeset
|
1 ;;; europe-theme.el --- Settings for European users |
1de041b8edf7
Add copyright and license information to files authored by Jan Vroonhof.
Jerry James <james@xemacs.org>
parents:
398
diff
changeset
|
2 |
1de041b8edf7
Add copyright and license information to files authored by Jan Vroonhof.
Jerry James <james@xemacs.org>
parents:
398
diff
changeset
|
3 ;; Copyright (C) 1999 Free Software Foundation, Inc. |
1de041b8edf7
Add copyright and license information to files authored by Jan Vroonhof.
Jerry James <james@xemacs.org>
parents:
398
diff
changeset
|
4 |
1de041b8edf7
Add copyright and license information to files authored by Jan Vroonhof.
Jerry James <james@xemacs.org>
parents:
398
diff
changeset
|
5 ;; Author: Jan Vroonhof <jan@xemacs.org> |
1de041b8edf7
Add copyright and license information to files authored by Jan Vroonhof.
Jerry James <james@xemacs.org>
parents:
398
diff
changeset
|
6 |
1de041b8edf7
Add copyright and license information to files authored by Jan Vroonhof.
Jerry James <james@xemacs.org>
parents:
398
diff
changeset
|
7 ;; This file is part of XEmacs. |
1de041b8edf7
Add copyright and license information to files authored by Jan Vroonhof.
Jerry James <james@xemacs.org>
parents:
398
diff
changeset
|
8 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
9 ;; XEmacs is free software: you can redistribute it and/or modify it |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
10 ;; under the terms of the GNU General Public License as published by the |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
11 ;; Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
12 ;; option) any later version. |
4763
1de041b8edf7
Add copyright and license information to files authored by Jan Vroonhof.
Jerry James <james@xemacs.org>
parents:
398
diff
changeset
|
13 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
14 ;; XEmacs is distributed in the hope that it will be useful, but WITHOUT |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
15 ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
16 ;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
17 ;; for more details. |
4763
1de041b8edf7
Add copyright and license information to files authored by Jan Vroonhof.
Jerry James <james@xemacs.org>
parents:
398
diff
changeset
|
18 |
1de041b8edf7
Add copyright and license information to files authored by Jan Vroonhof.
Jerry James <james@xemacs.org>
parents:
398
diff
changeset
|
19 ;; You should have received a copy of the GNU General Public License |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5231
diff
changeset
|
20 ;; along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
4763
1de041b8edf7
Add copyright and license information to files authored by Jan Vroonhof.
Jerry James <james@xemacs.org>
parents:
398
diff
changeset
|
21 |
398 | 22 ;;;autoload |
23 (deftheme europe | |
24 "Settings for European users." | |
25 :set-variable-settings | |
26 "This variable has a value appropriate for European users." | |
27 :set-variable-settings | |
28 "This has been forceed to the value appropriate for European users.") | |
29 | |
30 (custom-theme-set-variables 'europe | |
31 '(sentence-end-double-space nil) | |
32 '(ps-paper-type (quote a4))) | |
33 | |
34 (provide-theme 'europe) |