[Aquamacs-devel] Question about icons in Aquamacs 2.0
Robert Goldman
rpgoldman at sift.info
Fri Jul 30 13:44:16 UTC 2010
On 7/29/10 Jul 29 -10:18 PM, David Reitter wrote:
> Yes, I think that's a bug in AUCTeX. They don't initialize their toolbar unless tool-bar-mode is on, and that is an insufficient way to check for the presence of a toolbar. I reported this a while ago.
Quite right --- I looked into this just now.
LaTeX-maybe-install-toolbar is called in two places:
1. It's called at startup of latex-mode on xemacs and
2. It's called by tool-bar-mode-on-hook, where it is installed.
So this suggests that somehow my toolbar-modification code does not call
tool-bar-mode-on-hook.
It's tempting to just try running tool-bar-mode-on-hook in my
add-tool-bar-to-selected-frame.... I'll see if that works out.
Best,
r
> - D
>
> On Jul 29, 2010, at 9:07 PM, Robert Goldman wrote:
>
>> On 7/29/10 Jul 29 -5:14 PM, David Reitter wrote:
>>> On Jul 29, 2010, at 4:48 PM, Robert Goldman wrote:
>>>
>>>> I have just (finally) updated to Aquamacs 2.0 and it seems very spiffy!
>>>>
>>>> However, I find that one thing is worse: the tool bar in Auctex.
>>>>
>>>> I used to have a toolbar that had all the specific actions that I really
>>>> wanted to do when editing Latex, including "Latex," "Bibtex," "View," etc.
>>>
>>> You should have those - at least I get them. Try right-clicking in the toolbar to customize it. The default toolbar should be adapted to the current major mode.
>>> If that doesn't work, I would look at whether AUCTeX is loaded properly (is the menu correct, or rather minimal?). Start without customizations...
>>>
>>> Let me know when you know more!
>>
>> OK, I know more, but I'm still puzzled.
>>
>> I forgot that what I had done, because I am a keyboard guy, I turned off
>> all the toolbars. And then I turned ON the toolbars only for latex
>> buffers, because even though I'm a keyboard guy, I never managed to
>> figure out how to issue the latex, bibtex, and view commands through the
>> keyboard...
>>
>> So my emacs configuration has the following in it:
>>
>> ;;;---------------------------------------------------------------------------
>> ;;; Controlling the tool bar
>> ;;;---------------------------------------------------------------------------
>> (tool-bar-mode 0) ;in general, we want it /off/
>> (defun add-tool-bar-to-selected-frame ()
>> "Sometimes we'd like the toolbar only on specific frames."
>> (interactive)
>> (modify-frame-parameters (selected-frame) '((tool-bar-lines . 1))))
>> (defun remove-tool-bar-from-selected-frame ()
>> "Sometimes we'd like the toolbar only on specific frames."
>> (interactive)
>> (modify-frame-parameters (selected-frame) '((tool-bar-lines . 0))))
>> (defun latex-frame-p ()
>> "Is this frame one that's displaying a buffer in latex mode?"
>> (eq
>> (buffer-local-value 'major-mode
>> (window-buffer (frame-selected-window
>> (selected-frame))))
>> 'latex-mode))
>> (defun add-tool-bar-to-latex-frames ()
>> (if (latex-frame-p)
>> (add-tool-bar-to-selected-frame)
>> (remove-tool-bar-from-selected-frame)))
>> (add-hook 'window-configuration-change-hook
>> 'add-tool-bar-to-latex-frames)
>>
>> In aquamacs 1.9, this would add the right toolbar back to the latex
>> frames. However, in aquamacs 2.0, this seems to add only the /default/
>> toolbar to the aquamacs frames, not the latex-specific one. :-(
>>
>> Does anyone have a clue about how I could modify this so that it works
>> for the new aquamacs?
>>
>> Or (as seems quite possible), am I going about this all wrong, and
>> should I replace it with something far better that will achieve the same
>> purpose?
>>
>> thanks!
>> r
>
More information about the Aquamacs-devel
mailing list