From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.help Subject: Re: [el-search] How to search string excluding docstring? Date: Mon, 25 Dec 2017 19:40:33 +0900 Message-ID: <2C0DCBA0-22C5-4E5C-804E-49316D49294E@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1514198359 13850 195.159.176.226 (25 Dec 2017 10:39:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 25 Dec 2017 10:39:19 +0000 (UTC) Cc: michael_heerdegen@web.de, help-gnu-emacs@gnu.org To: Chunyang Xu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 25 11:39:14 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTQA1-0002tY-OA for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Dec 2017 11:39:09 +0100 Original-Received: from localhost ([::1]:42054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTQBy-00056n-Qs for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Dec 2017 05:41:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTQBV-00056F-KO for help-gnu-emacs@gnu.org; Mon, 25 Dec 2017 05:40:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eTQBS-0004MY-Ij for help-gnu-emacs@gnu.org; Mon, 25 Dec 2017 05:40:41 -0500 Original-Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]:34137) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eTQBS-0004M2-CN for help-gnu-emacs@gnu.org; Mon, 25 Dec 2017 05:40:38 -0500 Original-Received: by mail-pf0-x236.google.com with SMTP id a90so17799485pfk.1 for ; Mon, 25 Dec 2017 02:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Il8TjbAHaC0hOAfHxKHYcf3ORLvJzW714iw5sWv5+54=; b=kp7VJwSftXLn7ivPLGYDdgC/dAdlmPe02rWJBy4FT5pmE0D/0+vkWVhF8/RRA10r60 3KbXr+OLWJ5ssoQ0Z6jKTsNs/XJ5vGakBHXk+ISFgovVnZoOHE1rvRURJXtf0nBaKxqi ApFuih8QF0WcsSnmLScFF4063MJwHiurGsLlvY41QUKlODG77eDoZ19uAw5Yzjsk6TKO REBdQ11KLKOv9fpRTU2R4slBDXtgQ5CglscYohIbVVUDOAnK8+5aZ6jWl5UrEx/xvAve fCtC47T6cfZnhoIZSsKwRzHGAQ9GtK6D6EBtCdEzFsgdpW/4hpKgvRyqiqNLYO71H3S+ JRpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Il8TjbAHaC0hOAfHxKHYcf3ORLvJzW714iw5sWv5+54=; b=V56p8D4C/YWCseGiAQCf8GCsdJ2XOocvPaM8eNphqYTyIoZ3H4sU1or9awDI2ZtZIr naMCuyvqddu7EK1fYNp5x3GH77cbsXuHeFdHn2wGWPo4rPaOxQ4taxPMTmOeLLQQb8xP v/RcGdpnAHeNh7wlkJe71NvTexcMWPEgmpsw6Hfn8TqhksrJ7svcMVVvZeTrJtwWOvlG 4oYsZSx3yJQUeGTBUA85SWpn8NsifsupRKpwugxX+Q5efPDOIlOHCIZvhLzw3dVoFLor VQKAsWfAXJyCwsw41/ybVVipE8vmqX8FYe0yMvPbEZwkVTkh9fDQHzSyj+yIzoI/Nw/l Dvwg== X-Gm-Message-State: AKGB3mJvofd0TP/hMC46G/t98+s/M4sYM5jpGQra8NExmQkR2B5IpvF3 KME6sZ4yLC5MUehC/DQR0qo= X-Google-Smtp-Source: ACJfBoszBHZitRmrVs2AQkaxZNdta1sbbGkeWZ7FYhpK20uilsYSGsGxNjtrhtraSbTxSrQlGjJJhA== X-Received: by 10.101.85.78 with SMTP id t14mr1448403pgr.362.1514198437188; Mon, 25 Dec 2017 02:40:37 -0800 (PST) Original-Received: from [192.168.24.57] (pl27304.ag0304.nttpc.ne.jp. [128.53.17.168]) by smtp.gmail.com with ESMTPSA id y14sm12916880pgs.66.2017.12.25.02.40.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Dec 2017 02:40:36 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3445.5.20) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::236 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115444 Archived-At: > On Dec 25, 2017, at 19:27, Chunyang Xu wrote: >=20 > (defun foo () > "foo docstring" > (message "foo string")) >=20 > (and (pred stringp) (guard (not (docstring-p))) (string "foo")) >=20 > but I have no idea how to define 'docstring-p'. >=20 > 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