[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [el-search] How to search string excluding docstring?
From: |
Jean-Christophe Helary |
Subject: |
Re: [el-search] How to search string excluding docstring? |
Date: |
Mon, 25 Dec 2017 19:40:33 +0900 |
> On Dec 25, 2017, at 19:27, Chunyang Xu <mail@xuchunyang.me> wrote:
>
> (defun foo ()
> "foo docstring"
> (message "foo string"))
>
> (and (pred stringp) (guard (not (docstring-p))) (string "foo"))
>
> but I have no idea how to define 'docstring-p'.
>
> Any tips?
The definition of a docstring is that it is located right below the defun.
Sorry I can't help much more than that...
Jean-Christophe Helary
-----------------------------------------------
@brandelune http://mac4translators.blogspot.com