changeset 19942:b960ef5a1ecc

(viper-mouse-search-key): Fix custom type. (viper-mouse-insert-key): Likewise.
author Richard M. Stallman <rms@gnu.org>
date Mon, 15 Sep 1997 23:21:03 +0000
parents d21ea4b5978e
children 23ada3fdbc8b
files lisp/emulation/viper-mous.el
diffstat 1 files changed, 10 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emulation/viper-mous.el	Mon Sep 15 23:19:58 1997 +0000
+++ b/lisp/emulation/viper-mous.el	Mon Sep 15 23:21:03 1997 +0000
@@ -613,12 +613,11 @@
 keys down and clicking on a word with mouse button 1
 will search for that word in the buffer that was current before the click.
 This buffer may be different from the one where the click occurred."
-  ;; This does not work
-  ;; :type '(list (set :inline meta shift control)
-  ;;	       integer)
-  ;; This doesn't work either.
-  ;; :type '(set meta shift control 1 2 3)
-  :type 'sexp
+  :type '(list (set :inline t :tag "Modifiers" :format "%t: %v"
+		     (const :format "%v " meta)
+		     (const :format "%v " shift)
+		     (const control))
+	       (integer :tag "Button"))
   :set 'viper-reset-mouse-search-key
   :group 'viper-mouse)
 
@@ -630,12 +629,11 @@
 down, and clicking on a word with mouse button 2, will insert that word
 at the cursor in the buffer that was current just before the click.
 This buffer may be different from the one where the click occurred."
-  ;; This does not work.
-  ;; :type '(list (set :inline meta shift control)
-  ;;	       integer)
-  ;; This doesn't work either.
-  ;; :type '(set meta shift control 1 2 3)
-  :type 'sexp
+  :type '(list (set :inline t :tag "Modifiers" :format "%t: %v"
+		     (const :format "%v " meta)
+		     (const :format "%v " shift)
+		     (const control))
+	       (integer :tag "Button"))
   :set 'viper-reset-mouse-insert-key
   :group 'viper-mouse)