all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* recentf mode: point at first file / highlight (patch)
@ 2005-06-25 10:40 David Reitter
  2005-06-25 16:07 ` David Ponce
  0 siblings, 1 reply; 4+ messages in thread
From: David Reitter @ 2005-06-25 10:40 UTC (permalink / raw)


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

This patch makes recentf-open-files more comfortable: it positions  
the point on the line showing the first file (instead of the first  
line, which only contains explanations) and we turn on hl-line-mode.
Please consider applying.


[-- Attachment #2: recentf-comfort.patch --]
[-- Type: application/octet-stream, Size: 1898 bytes --]

Index: recentf.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/recentf.el,v
retrieving revision 1.38
diff -c -r1.38 recentf.el
*** recentf.el	14 Jun 2005 12:02:42 -0000	1.38
--- recentf.el	25 Jun 2005 10:37:10 -0000
***************
*** 1112,1131 ****
      ;; Insert the dialog header
      (widget-insert "Click on a file to open it. ")
      (widget-insert "Click on Cancel or type \"q\" to quit.\n\n" )
!     ;; Insert the list of files as buttons
!     (let ((recentf-open-files-item-shift ""))
!       (mapc 'recentf-open-files-item
!             (recentf-apply-menu-filter
!              recentf-menu-filter
!              (mapcar 'recentf-make-default-menu-element files))))
!     (widget-insert "\n")
!     ;; Insert the Cancel button
!     (widget-create
!      'push-button
!      :notify 'recentf-cancel-dialog
!      "Cancel")
!     (widget-setup)
!     (goto-char (point-min))))
  
  (defun recentf-open-more-files ()
    "Show a dialog buffer to open a recent file that is not in the menu."
--- 1112,1133 ----
      ;; Insert the dialog header
      (widget-insert "Click on a file to open it. ")
      (widget-insert "Click on Cancel or type \"q\" to quit.\n\n" )
!     (let ((point-start (point)))
!       ;; Insert the list of files as buttons
!       (let ((recentf-open-files-item-shift ""))
! 	(mapc 'recentf-open-files-item
! 	      (recentf-apply-menu-filter
! 	       recentf-menu-filter
! 	       (mapcar 'recentf-make-default-menu-element files))))
!       (widget-insert "\n")
!       ;; Insert the Cancel button
!       (widget-create
!        'push-button
!        :notify 'recentf-cancel-dialog
!        "Cancel")
!       (widget-setup)
!       (goto-char point-start)
!       (hl-line-mode t))))
  
  (defun recentf-open-more-files ()
    "Show a dialog buffer to open a recent file that is not in the menu."

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-06-26  8:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-25 10:40 recentf mode: point at first file / highlight (patch) David Reitter
2005-06-25 16:07 ` David Ponce
2005-06-26  4:46   ` Richard M. Stallman
2005-06-26  8:23   ` David Reitter

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.