Tip: open this session closed buffer

14 views
Skip to first unread message

kheyf...@gmail.com

unread,
Sep 10, 2012, 4:33:24 AM9/10/12
to ergo...@googlegroups.com
Here's a defun:

(defun ergo-undo-close-buffer ()
  "Opens some this-session closed buffer."
  (interactive)
  (let* ((mylist (delq nil (delete-dups (mapcar 'car recently-closed-buffers))))
         (baseName (ido-completing-read "Open this session closed buffer: " mylist))
         (fileName (cdr (assoc baseName recently-closed-buffers))))
    (find-file fileName)))

it makes use of ergo's recently-closed-buffers alist.

Xah Lee

unread,
Sep 10, 2012, 5:46:25 AM9/10/12
to ergo...@googlegroups.com
very nice. Thanks a lot.

Do you mind if i blog it? Probably will put up Tuesday if ok with you.

Xah
> --
> You received this message because you are subscribed to the Google Groups
> "ErgoEmacs" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/ergoemacs/-/BmAguokVZNcJ.
> To post to this group, send email to ergo...@googlegroups.com.
> To unsubscribe from this group, send email to
> ergoemacs+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/ergoemacs?hl=en.

Boris Kheyfets

unread,
Sep 10, 2012, 5:48:25 AM9/10/12
to ergo...@googlegroups.com
No I don't mind at all. It's also here.

Boris.

Xah Lee

unread,
Sep 10, 2012, 5:59:52 AM9/10/12
to ergo...@googlegroups.com
super. Thanks a lot. Will do.

Xah
Reply all
Reply to author
Forward
0 new messages