From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#10754: define-minor-mode and doc of derived mode Date: Fri, 29 Jun 2018 11:12:40 -0400 Message-ID: References: <87po12g7x4.fsf@gmail.com> <0edf0759-1044-4c6f-b70a-addebc9078f8@default> <87in6trm00.fsf@gmail.com> <83y3ffypek.fsf@gnu.org> <87fu1lv24d.fsf@gmail.com> <87d0wpurh5.fsf@gmail.com> <87bmc9uhl0.fsf@gmail.com> <87efh1xngb.fsf@gmail.com> <87vaa3zzsu.fsf@gmail.com> <87tvpnzzjr.fsf@gmail.com> <87d0w9yae0.fsf@gmail.com> <87bmbty798.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1530286086 5774 195.159.176.226 (29 Jun 2018 15:28:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2018 15:28:06 +0000 (UTC) Cc: Stefan Monnier , 10754@debbugs.gnu.org To: John Shahid Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 29 17:28:02 2018 Return-path: Envelope-to: geb-bug-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 1fYvJZ-0001OO-SR for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jun 2018 17:28:02 +0200 Original-Received: from localhost ([::1]:42966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYvLg-0004yf-VA for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jun 2018 11:30:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYv58-0007fB-Jc for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2018 11:13:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYv54-0007ir-H4 for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2018 11:13:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60342) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYv54-0007iU-Cl for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2018 11:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fYv54-0004Hu-29 for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2018 11:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Jun 2018 15:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10754 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10754-submit@debbugs.gnu.org id=B10754.153028516816460 (code B ref 10754); Fri, 29 Jun 2018 15:13:02 +0000 Original-Received: (at 10754) by debbugs.gnu.org; 29 Jun 2018 15:12:48 +0000 Original-Received: from localhost ([127.0.0.1]:40006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYv4q-0004HQ-Aj for submit@debbugs.gnu.org; Fri, 29 Jun 2018 11:12:48 -0400 Original-Received: from mail-oi0-f46.google.com ([209.85.218.46]:37217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYv4o-0004HA-OG for 10754@debbugs.gnu.org; Fri, 29 Jun 2018 11:12:46 -0400 Original-Received: by mail-oi0-f46.google.com with SMTP id k81-v6so8750283oib.4 for <10754@debbugs.gnu.org>; Fri, 29 Jun 2018 08:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Rh2jWmFd8EtZdrVZCXdYlAcDmGeh2BWKMZ9bLiQxURQ=; b=DwoAeUY4lEaogKNh7GvIilK2MEjtNwN0aF7LTWq0SZ7g303Z36b2MWa2djHJJ2Ho7c vJEHzGBL6HRC4XJw0yb1EjM8ts5tl7UEQbp37ovU/+X7FzOXMW5iWdnhJ2ZqL2bW8fcW xU9oDddGTryGRNyG0Ze9P0KOfXqFywkrvNGZfGdiwOqEzzTU6Tu1vTHcWQx+VxFkkV5N rA9QfOwHX7HWic6mjEUtFONTk5KywyI19krtH5etFipseatl7LvfPrfnuA53z9fvr51N LdnzE7d3lqU0mjDA60cExhh07BZwDwbvxCHD0vL5YH85oRbUWGt4njYRM7yC0JY0V6W/ lpxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Rh2jWmFd8EtZdrVZCXdYlAcDmGeh2BWKMZ9bLiQxURQ=; b=NY3jmurmOpRTvitKKeHnK5P9aySPnM3rjkwNoWhOGZC2KcvN+y4lP7bMrwxZl5RFrj P5SZbFsJ8HRLpWkyJw9acc8P7dNJOfw+TINPoz1Zl4GhxCox40GkSCfrGD5bf0Z6l0Sl l1oExF06ixySnmlrqp9bNM2S84Rks6wWpWSuywRCW95D4eMpn0gJeg34DQMo5oIfSW93 N9IvDowYDaiCPmYVeKBMiu1jVNRlUc4q1/zCH0Be484Zd5WCxvVTE3YEIMpM/5K/IJy8 yXd/Le3EG/6wq82RSV1rBTMaC8dj0C2UYZysQl5EILXccIreM8fd9twjYG0yOq2XJNzL LCkg== X-Gm-Message-State: APt69E0keKcL2wJbkA0uPXtSMFEIlA3MQjXfPPVt8xWd//Fq1n3djymy XTPPh3tDOusWkOP7F6uW+czVmyeA5hZ9JEGA2Gw= X-Google-Smtp-Source: AAOMgpe3jLI/XeuM3Qhfj7CiscaxrAd0Ley5CQsbKOo6+PEu/UIr2OtBdEvpMEyLkwc586ChwXs8vRajlfOd245vSdM= X-Received: by 2002:aca:be42:: with SMTP id o63-v6mr8771401oif.22.1530285161129; Fri, 29 Jun 2018 08:12:41 -0700 (PDT) Original-Received: by 2002:a4a:3b8d:0:0:0:0:0 with HTTP; Fri, 29 Jun 2018 08:12:40 -0700 (PDT) In-Reply-To: <87bmbty798.fsf@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147964 Archived-At: On 29 June 2018 at 10:52, John Shahid wrote: > (replace-regexp-in-string "\\(\n\n\\).*\\'" The trick is that "." matches anything but a newline, using (.\\|\n\\) instead works as expected: (replace-regexp-in-string "\\(\n\n\\)\\(?:.\\|\n\\)*\\'" "\n\ndoc\\1" "foo\n\nbar\n\nbaz" nil nil 1)