unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Bernhard Koenig" <b.a.koenig@googlemail.com>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: emacs-devel@gnu.org
Subject: Re: enhancement/wish
Date: Wed, 29 Oct 2008 03:01:26 -0400	[thread overview]
Message-ID: <de34c09f0810290001m370215edve42ee55bc81bd293@mail.gmail.com> (raw)
In-Reply-To: <de34c09f0810281340l2d5782e0n41ace2d59190a5dc@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1319 bytes --]

Hi,

the following kind of works for me now:

;; define function to add recent files button
(defun tool-bar-add-recent-files ()
  "Add toolbar button for Recent Files."
  (interactive)
  (tool-bar-add-item "~/.icons/emacs/clock" (lambda ()
                            (interactive)
                            (popup-menu (easy-menu-filter-return
                                         (recentf-make-menu-items)
                                         "Open Recent")))
                   'recent-files
                   :visible '(and (boundp 'recentf-mode) recentf-mode)
		   :help "Pop up the Recent Files menu")
)

;; write tool-bar-add-recent-files into all hooks
(add-hook 'text-mode-hook 'tool-bar-add-recent-files)
(add-hook 'LaTeX-mode-hook 'tool-bar-local-recent-files)
;(add-hook 'info-mode-hook 'tool-bar-add-recent-files)
(add-hook 'emacs-startup-hook 'tool-bar-add-recent-files)

There are still some problems with the info mode that completely
overwrites all tool-bar-map settings, don't know.

Is there any political will to add this to recentf.el? Many other
editors have this feature, so it would bring emacs up to standard
regarding toolbar features. David said that Aquamacs has it. As icon I
would suggest the attached clock.xpm, which is GLPL and it's a clock
like in Aquamacs.

Best,
Bernhard

[-- Attachment #2: clock.xpm --]
[-- Type: image/x-xpixmap, Size: 1599 bytes --]

  reply	other threads:[~2008-10-29  7:01 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-25  0:36 enhancement/wish Bernhard Koenig
2008-10-25  8:12 ` enhancement/wish Eli Zaretskii
     [not found]   ` <de34c09f0810250129m5fea708bh78e06f9219fd864@mail.gmail.com>
2008-10-25 10:25     ` enhancement/wish Eli Zaretskii
2008-10-25 15:20 ` enhancement/wish David Reitter
2008-10-25 20:21   ` enhancement/wish Bernhard Koenig
2008-10-27 23:38   ` enhancement/wish Bernhard Koenig
2008-10-28  4:12     ` enhancement/wish Eli Zaretskii
2008-10-28  5:11       ` enhancement/wish Bernhard Koenig
     [not found]         ` <4906BF50.40709@swipnet.se>
2008-10-28  8:17           ` enhancement/wish Bernhard Koenig
2008-10-28  8:38             ` enhancement/wish Bernhard Koenig
2008-10-28 16:39             ` enhancement/wish Jan Djärv
2008-10-28 20:40               ` enhancement/wish Bernhard Koenig
2008-10-29  7:01                 ` Bernhard Koenig [this message]
2008-10-29  7:26                 ` enhancement/wish Jan D.
2008-10-29  7:40                   ` enhancement/wish Bernhard Koenig
2008-10-29 11:21                     ` enhancement/wish Jan D.
2008-10-29 17:01 ` enhancement/wish Chming
2008-10-29 20:10   ` enhancement/wish Bernhard Koenig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=de34c09f0810290001m370215edve42ee55bc81bd293@mail.gmail.com \
    --to=b.a.koenig@googlemail.com \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).