From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: [el-search] How to search string excluding docstring? Date: Mon, 25 Dec 2017 20:36:41 +0100 Organization: Aioe.org NNTP Server Message-ID: <868tdqmwfq.fsf@zoho.com> References: <86373znhk6.fsf@zoho.com> <86tvwenbmo.fsf@zoho.com> <86d132n0e0.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1514230731 309 195.159.176.226 (25 Dec 2017 19:38:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 25 Dec 2017 19:38:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 25 20:38:47 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 1eTYaD-0007sK-UF for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Dec 2017 20:38:46 +0100 Original-Received: from localhost ([::1]:60563 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTYc9-0001Zo-Bq for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Dec 2017 14:40:45 -0500 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: zRXoCvQ6k9fneBfYPnB6lQ.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:P7lFYQvugl9kFMw9flu+9497sIY= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:221346 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:115462 Archived-At: t wrote: >>>> Pattern match, like they have for >>>> arguments in Erlang and SML? >>> >>> Pattern match like pcase, I guess. >> >> Isn't that the same? > > No. Regexps are built to match regular > languages. Pcase is built to match > S-expressions, which are beyond regular. > Well-nested parentheses are more than > a regular language. Regexps, you mean that is what they use to implement pattern match in Erlang and SML?! Or why did you bring it up? I lost all my Erlang and SML (literally) but I found some Haskell, the most neurotic of all languages, which rely the most on pattern matching virtually all the time - here is what I mean: data Prop = DoNotCare | Pp Char instance Eq Prop where DoNotCare == DoNotCare = True Pp a == Pp b = a == b _ == _ = False a /= b = not (a == b) Is this really what you mean? Surly that isn't implemented as mere regexps?! From: http://user.it.uu.se/~embe8573/candelim/ce.hs -- underground experts united http://user.it.uu.se/~embe8573