emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-ido-switchb
@ 2008-12-18 21:04 Chris Leyon
  2008-12-18 22:09 ` org-ido-switchb Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Leyon @ 2008-12-18 21:04 UTC (permalink / raw)
  To: emacs org-mode mailing list

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

I recently switched from iswitchb to ido, but I missed org-iswitchb.
So I wrote an ido version.

[-- Attachment #2: org-ido-switchb.el --]
[-- Type: application/octet-stream, Size: 619 bytes --]

(defun org-ido-switchb (&optional arg)
  "Use `org-ido-completing-read' to prompt for an Org buffer to switch to.
With a prefix argument, restrict available to files.
With two prefix arguments, restrict available buffers to agenda files."
  (interactive "P")
  (let ((blist (cond ((equal arg '(4))  (org-buffer-list 'files))
                     ((equal arg '(16)) (org-buffer-list 'agenda))
                     (t                 (org-buffer-list)))))
    (switch-to-buffer
     (org-ido-completing-read "Org buffer: "
                              (mapcar 'buffer-name blist)
                              nil t))))

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

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: org-ido-switchb
  2008-12-18 21:04 org-ido-switchb Chris Leyon
@ 2008-12-18 22:09 ` Carsten Dominik
  2008-12-19  3:27   ` org-ido-switchb Chris Leyon
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2008-12-18 22:09 UTC (permalink / raw)
  To: Chris Leyon; +Cc: emacs org-mode mailing list

Hi Chris,

can I add this to Org-mode?

- Carsten

On Dec 18, 2008, at 10:04 PM, Chris Leyon wrote:

> I recently switched from iswitchb to ido, but I missed org-iswitchb.
> So I wrote an ido version.
> <org-ido-switchb.el>_______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: org-ido-switchb
  2008-12-18 22:09 ` org-ido-switchb Carsten Dominik
@ 2008-12-19  3:27   ` Chris Leyon
  2008-12-19  8:39     ` org-ido-switchb Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Leyon @ 2008-12-19  3:27 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs org-mode mailing list

On Thu, Dec 18, 2008 at 5:09 PM, Carsten Dominik <dominik@science.uva.nl> wrote:
> Hi Chris,
> can I add this to Org-mode?
> - Carsten

Of course.  It's just your org-iswitchb function with the
unwind-protect & iswitchb-mode stuff taken out.

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

* Re: org-ido-switchb
  2008-12-19  3:27   ` org-ido-switchb Chris Leyon
@ 2008-12-19  8:39     ` Carsten Dominik
  0 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2008-12-19  8:39 UTC (permalink / raw)
  To: Chris Leyon; +Cc: emacs org-mode mailing list


[-- Attachment #1.1: Type: text/plain, Size: 326 bytes --]

Thanks!

- Carsten

On Dec 19, 2008, at 4:27 AM, Chris Leyon wrote:

> On Thu, Dec 18, 2008 at 5:09 PM, Carsten Dominik <dominik@science.uva.nl 
> > wrote:
>> Hi Chris,
>> can I add this to Org-mode?
>> - Carsten
>
> Of course.  It's just your org-iswitchb function with the
> unwind-protect & iswitchb-mode stuff taken out.


[-- Attachment #1.2: Type: text/html, Size: 764 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2008-12-19  8:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-18 21:04 org-ido-switchb Chris Leyon
2008-12-18 22:09 ` org-ido-switchb Carsten Dominik
2008-12-19  3:27   ` org-ido-switchb Chris Leyon
2008-12-19  8:39     ` org-ido-switchb Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).