[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: GNU Emacs 21 and the tool-bar-button-* variables



Hi,

>> On Wed, 12 Dec 2001 23:48:22 +0100
>> Pavel@Janik.cz (Pavel Janík) said as follows:

>Is it possible to get rid of it so that users who have customized
>these variables can have the same value even in w3m buffers? On the
>other hand, we have only auto-resize-tool-bars and not
>auto-resize-tool-bar.

Thank you for your report.

I think that the following change will satisfy your point.  Is my
understanding right?

--- w3m-e21.el	2001/12/14 08:17:29	1.60
+++ w3m-e21.el	2001/12/17 10:11:01
@@ -207,10 +207,12 @@
   :type 'boolean)
 
 (defvar w3m-e21-toolbar-configurations
-  '((auto-resize-tool-bar        . t)
+  `((auto-resize-tool-bars       . t)
     (auto-raise-tool-bar-buttons . t)
     (tool-bar-button-margin      . 0)
-    (tool-bar-button-relief      . 2)))
+    ,@(and (<= emacs-major-version 21)
+	   (<= emacs-minor-version 1)
+	   '((tool-bar-button-relief . 2)))))
 
 (defun w3m-e21-setup-toolbar (keymap defs)
   (let ((configs w3m-e21-toolbar-configurations)
-- 
TSUCHIYA Masatoshi