Mercurial > hg > xemacs-beta
annotate lisp/gtk-select.el @ 5773:94a6b8fbd56e
Use a face, show more context around open parenthesis, #'blink-matching-open
lisp/ChangeLog addition:
2013-12-17 Aidan Kehoe <kehoea@parhasard.net>
* simple.el (blink-matching-open):
When showing the opening parenthesis in the minibiffer, use the
isearch face for it, in case there are multiple parentheses in the
text shown.
When writing moderately involved macros, it's often not enough
just to show the backquote context before the parenthesis
(e.g. @,.`). Skip over that when searching for useful context in
the same way we skip over space and tab.
* simple.el (message):
* simple.el (lmessage):
If there are no ARGS, don't call #'format. This allows extent
information to be passed through to the minibuffer.
It's probably better still to update #'format to preserve extent
info.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Tue, 17 Dec 2013 20:49:52 +0200 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
462 | 1 ;;; gtk-select.el --- Lisp interface to GTK selections. |
2 | |
3 ;; Copyright (C) 1990, 1997 Free Software Foundation, Inc. | |
4 ;; Copyright (C) 1995 Sun Microsystems. | |
5 ;; Copyright (C) 2000 Free Software Foundation | |
6 | |
7 ;; Maintainer: William Perry <wmperry@gnu.org> | |
8 ;; Keywords: extensions, dumped | |
9 | |
10 ;; This file is part of XEmacs. | |
11 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
12 ;; 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:
462
diff
changeset
|
13 ;; 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:
462
diff
changeset
|
14 ;; 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:
462
diff
changeset
|
15 ;; option) any later version. |
462 | 16 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
462
diff
changeset
|
17 ;; 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:
462
diff
changeset
|
18 ;; 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:
462
diff
changeset
|
19 ;; 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:
462
diff
changeset
|
20 ;; for more details. |
462 | 21 |
22 ;; 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:
462
diff
changeset
|
23 ;; along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
462 | 24 |
25 ;;; Synched up with: Not in FSF | |
26 | |
27 ;;; Commentary: | |
28 | |
29 ;; This file is dumped with XEmacs (when GTK support is compiled in). | |
30 ;; #### Only copes with copying/pasting text | |
31 | |
32 ;;; Code: | |
33 | |
34 (defun gtk-get-secondary-selection () | |
35 "Return text selected from some GTK window." | |
36 (get-selection 'SECONDARY)) | |
37 | |
38 (defun gtk-own-secondary-selection (selection &optional type) | |
39 "Make a secondary GTK Selection of the given argument. The argument may be a | |
40 string or a cons of two markers (in which case the selection is considered to | |
41 be the text between those markers)." | |
42 (interactive (if (not current-prefix-arg) | |
43 (list (read-string "Store text for pasting: ")) | |
44 (list (cons ;; these need not be ordered. | |
45 (copy-marker (point-marker)) | |
46 (copy-marker (mark-marker)))))) | |
47 (own-selection selection 'SECONDARY)) | |
48 | |
49 (defun gtk-notice-selection-requests (selection type successful) | |
50 "for possible use as the value of `gtk-sent-selection-hooks'." | |
51 (if (not successful) | |
52 (message "Selection request failed to convert %s to %s" | |
53 selection type) | |
54 (message "Sent selection %s as %s" selection type))) | |
55 | |
56 (defun gtk-notice-selection-failures (selection type successful) | |
57 "for possible use as the value of `gtk-sent-selection-hooks'." | |
58 (or successful | |
59 (message "Selection request failed to convert %s to %s" | |
60 selection type))) | |
61 | |
62 ;(setq gtk-sent-selection-hooks 'gtk-notice-selection-requests) | |
63 ;(setq gtk-sent-selection-hooks 'gtk-notice-selection-failures) |