From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 01 20:16:17 2017 Received: (at submit) by debbugs.gnu.org; 2 Apr 2017 00:16:17 +0000 Received: from localhost ([127.0.0.1]:56120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuTBp-0004ms-Da for submit@debbugs.gnu.org; Sat, 01 Apr 2017 20:16:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuTBn-0004md-SR for submit@debbugs.gnu.org; Sat, 01 Apr 2017 20:16:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cuTBh-0008Bw-Sb for submit@debbugs.gnu.org; Sat, 01 Apr 2017 20:16:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59822) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cuTBh-0008Bg-PO for submit@debbugs.gnu.org; Sat, 01 Apr 2017 20:16:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuTBg-0002cI-OO for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 20:16:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cuTBd-00084b-Hg for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 20:16:08 -0400 Received: from homie.mail.dreamhost.com ([208.97.132.208]:48534 helo=homiemail-a38.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cuTBd-00081U-83 for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 20:16:05 -0400 Received: from homiemail-a38.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTP id 5F13010AFBD for ; Sat, 1 Apr 2017 17:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type: content-transfer-encoding; s=jidanni.org; bh=xAGt4CrSZmty/kIDG0C mffi7TLQ=; b=J0049YCp/rNa+sJ+kE/InBPIo0WhJ9bmVpeXgbEmc7y3kEgJVt9 gh83OgTZqkhgjsJAcYaYWi5dOA/KfXtEgxEY81wzHnwhwQ9Z168C1qMVvikL0v58 VG5NpEWSV20kEPT4ojVEvJcWo8OVMI8glOWw2I0awD+2LWts3+LONXws= Received: from jidanni.org (114-41-6-60.dynamic.hinet.net [114.41.6.60]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTPSA id 154E410AFB8 for ; Sat, 1 Apr 2017 17:16:02 -0700 (PDT) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs Subject: time-stamp-pattern examples unclear Date: Sun, 02 Apr 2017 06:30:37 +0800 Message-ID: <877f33zroy.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) time-stamp-pattern is a variable defined in =E2=80=98time-stamp.el=E2=80=99= . ... This string has four parts, each of which is optional. ... Examples: "-10/" "-9/^Last modified: %%$" "@set Time-stamp: %:b %:d, %:y$" "newcommand{\\\\timestamp}{%%}" Please say Examples: This only has the first part: "-10/" This has the first part, followed by the second and maybe? the third part= : "-9/^Last modified: %%$" This has the second part followed by the ??th part: "@set Time-stamp: %:b %:d, %:y$" This has the ??nd part followed by the ??th part: "newcommand{\\\\timestamp}{%%}" From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 26 06:40:56 2019 Received: (at 26335) by debbugs.gnu.org; 26 Jul 2019 10:40:56 +0000 Received: from localhost ([127.0.0.1]:40927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqxeh-0002fB-Rt for submit@debbugs.gnu.org; Fri, 26 Jul 2019 06:40:56 -0400 Received: from quimby.gnus.org ([80.91.231.51]:59410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqxeg-0002ez-6J for 26335@debbugs.gnu.org; Fri, 26 Jul 2019 06:40:54 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqxeb-0005XU-Ia; Fri, 26 Jul 2019 12:40:51 +0200 From: Lars Ingebrigtsen To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#26335: time-stamp-pattern examples unclear References: <877f33zroy.fsf@jidanni.org> Date: Fri, 26 Jul 2019 12:40:49 +0200 In-Reply-To: <877f33zroy.fsf@jidanni.org> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan Jacobson"'s message of "Sun, 02 Apr 2017 06:30:37 +0800") Message-ID: <87d0hxnkni.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 積丹尼 Dan Jacobson writes: > time-stamp-pattern is a variable defined in ‘time-stamp.el’. > ... > This string has four parts, each of which is optional. > ... > Examples: > "-10/" > "-9/^Last modified: %%$" > "@set Time-sta [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 26335 Cc: 26335@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > time-stamp-pattern is a variable defined in =E2=80=98time-stamp.el=E2=80= =99. > ... > This string has four parts, each of which is optional. > ... > Examples: > "-10/" > "-9/^Last modified: %%$" > "@set Time-stamp: %:b %:d, %:y$" > "newcommand{\\\\timestamp}{%%}" > > Please say > Examples: > > This only has the first part: > "-10/" > > This has the first part, followed by the second and maybe? the third part: > "-9/^Last modified: %%$" > > This has the second part followed by the ??th part: > "@set Time-stamp: %:b %:d, %:y$" > > This has the ??nd part followed by the ??th part: > "newcommand{\\\\timestamp}{%%}" Well, all that stuff is pretty much incomprehensible, so I went through the examples using the code like this: (progn (string-match "\\`\\(\\(-?[0-9]+\\)/\\)?\\([^%]+\\)?\\(\\(%[-.,:@+_ #^()0= -9]*[A-Za-z%][^%]*\\)*%[-.,:@+_ #^()0-9]*[A-Za-z%]\\)?\\([^%]+\\)?\\'" "newcommand{\\\\\\\\timestamp}{%%}") (match-data)) =3D> (0 29 nil nil nil nil 0 26 26 28 nil nil 28 29) and matched up to this code fragment: (and (match-beginning 2) (setq line-limit (string-to-number (match-string 2 time-stamp-pattern)))) (and (match-beginning 3) (setq ts-start (match-string 3 time-stamp-pattern))) (and (match-beginning 4) (not (string-equal (match-string 4 time-stamp-pattern) "%%")) (setq ts-format (match-string 4 time-stamp-pattern))) (and (match-beginning 6) (setq ts-end (match-string 6 time-stamp-pattern))))) and added the explanations about what's set. It was probably not worth it, though. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 26 06:41:00 2019 Received: (at control) by debbugs.gnu.org; 26 Jul 2019 10:41:00 +0000 Received: from localhost ([127.0.0.1]:40930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqxem-0002fR-6U for submit@debbugs.gnu.org; Fri, 26 Jul 2019 06:41:00 -0400 Received: from quimby.gnus.org ([80.91.231.51]:59424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqxek-0002fJ-0E for control@debbugs.gnu.org; Fri, 26 Jul 2019 06:40:58 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqxeh-0005Xb-E0 for control@debbugs.gnu.org; Fri, 26 Jul 2019 12:40:57 +0200 Date: Fri, 26 Jul 2019 12:40:55 +0200 Message-Id: <87blxhnknc.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #26335 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 26335 fixed close 26335 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 26335 fixed close 26335 27.1 quit From unknown Sun Jun 22 11:35:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 23 Aug 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator