have toolbar specifiers changed recently?
When I try to do
'(set-specifier default-toolbar (list (current-buffer) w3m-toolbar))'
used in w3m-update-toolbar
(defun w3m-update-toolbar ()
"Update toolbar."
(when w3m-use-toolbar
(set-specifier default-toolbar (list (current-buffer) w3m-toolbar))))
I get this traceback
Signaling: (error "Toolbar spec must be list or nil" #<buffer
"*scratch*">)
check-valid-instantiator(#<buffer "*scratch*"> toolbar)
canonicalize-spec(#<buffer "*scratch*"> toolbar nil)
byte-code("..." [specifier-type res2 noerror spec-list result rest nil throw
cann-spec-list t signal error "Invalid list format" canonicalize-spec] 5)
canonicalize-spec-list((#<buffer "*scratch*"> ...
set-specifier(#<toolbar-specifier global=([toolbar-file-icon toolbar-open t
"Open a file"] [toolbar-folder-icon toolbar-dired t "Edit a
directory"] [toolbar-disk-icon toolbar-save t "Save buffer"]
[toolbar-printer-icon toolbar-print t "Print buffer"] [toolbar-cut-icon
toolbar-cut t "Kill region"] [toolbar-copy-icon toolbar-copy t "Copy
region"] ...) fallback=((nil)) 0x186> ....
eval((set-specifier default-toolbar (list (current-buffer) w3m-toolbar)))
eval-interactive((set-specifier default-toolbar (list (current-buffer) w3m-toolbar)))
eval-last-sexp(nil)
call-interactively(eval-last-sexp)
This is how w3m-toolbar is defined.
(defvar w3m-toolbar '([w3m-toolbar-back-icon w3m-view-previous-page
(w3m-history-previous-link-available-p) "Back to Previous Page"]
[w3m-toolbar-parent-icon w3m-view-parent-page (w3m-parent-page-available-p) "Upward
to Parent Page"] [w3m-toolbar-forward-icon w3m-view-next-page
(w3m-history-next-link-available-p) "Forward to Next Page"]
[w3m-toolbar-reload-icon w3m-reload-this-page w3m-current-url "Reload This
Page"] [w3m-toolbar-open-icon w3m-goto-url t "Go to..."]
[w3m-toolbar-home-icon w3m-gohome w3m-home-page "Go to Home Page"]
[w3m-toolbar-search-icon w3m-search t "Search the Internet"]
[w3m-toolbar-image-icon w3m-toggle-inline-images t "Toggle Images"]
[w3m-toolbar-copy-icon w3m-copy-buffer t "Make a Copy of This Session"]
[w3m-toolbar-weather-icon w3m-weather t "Weather Forecast"]
[w3m-toolbar-antenna-icon w3m-antenna t "Investigate with Antenna"]
[w3m-toolbar-history-icon w3m-history t "Show a History"]
[w3m-toolbar-db-history-icon w3m-db-history t "View Arrived URLs"]))
This is XEmacs 21.4 (patch 11) on solaris.
-jeff