[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH]: New Add defun org-mode-or-derived-mode-p
From: |
Tassilo Horn |
Subject: |
Re: [O] [PATCH]: New Add defun org-mode-or-derived-mode-p |
Date: |
Fri, 02 Sep 2011 16:59:06 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
Stefan Reichör <address@hidden> writes:
> +(defun org-mode-or-derived-mode-p ()
> + "Check if the current buffer is in Org-mode or a derived mode."
> + (if (derived-mode-p 'org-mode) t nil))
The if is superfluous. And instead of a new function, I'd rather add an
optional `derived' parameter to `org-mode-p'.
Bye,
Tassilo