From unknown Tue Aug 19 02:50:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14857: 24.3.50; `align-regexp': doc unclear for non-interactive usage Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jul 2013 22:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14857 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 14857@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: michael_heerdegen@web.de Received: via spool by submit@debbugs.gnu.org id=B.13736685856836 (code B ref -1); Fri, 12 Jul 2013 22:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jul 2013 22:36:25 +0000 Received: from localhost ([127.0.0.1]:51369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uxlwv-0001mA-2Z for submit@debbugs.gnu.org; Fri, 12 Jul 2013 18:36:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55812) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uxlws-0001lv-EP for submit@debbugs.gnu.org; Fri, 12 Jul 2013 18:36:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uxlwm-0000KF-2J for submit@debbugs.gnu.org; Fri, 12 Jul 2013 18:36:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-100.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxlwl-0000KA-W5 for submit@debbugs.gnu.org; Fri, 12 Jul 2013 18:36:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxlwj-0002qt-NS for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 18:36:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uxlwi-0000HC-2i for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 18:36:13 -0400 Received: from mout.web.de ([212.227.15.4]:65391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxlOR-0007cH-6p for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 18:00:47 -0400 Received: from drachen.dragon ([90.187.105.124]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0LfEfA-1UMRVr2uSW-00onN3 for ; Sat, 13 Jul 2013 00:00:45 +0200 From: Michael Heerdegen Date: Sat, 13 Jul 2013 00:00:32 +0200 Message-ID: <87sizjtp4v.fsf@web.de> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:xmFUBD+mmB/DqLjvOkbY+nIKjDk++NpCIwGUMGt3Z4UjEM0kESo toO3PRag33BrIaSPVNyX6O1rSxXqWiK6hDAR9VYOVS6xFVRKNRBwc8zqV2Yx0qJUsOMaGjb OHXxv62RLrbunUhJPVlPI/GM2hvvUsSdGbGoA7I8mpz6275LzyuF6DIvDvyb+peuxyQ7Cqr FXPVDaXnbqNxrKdDlHZuw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (-----) Hello, after reading the doc of `align-regexp', I try to follow the example and copy the example text Fred (123) 456-7890 Alice (123) 456-7890 Mary-Anne (123) 456-7890 Joe (123) 456-7890 into a newly created buffer and do M-: (align-regexp (point-min) (point-max) "\(") I get an error: align-region: Marker does not point anywhere Obviously, the interactive spec modifies the entered regexp. It's absolutely unclear how `regexp' must look like when `align-regexp' is called from Lisp. We should either explain it, or say that this command is only for interactive use. Regards, Michael. In GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2) of 2013-07-08 on dex, modified by Debian (emacs-snapshot package, version 2:20130708-1) Windowing system distributor `The X.Org Foundation', version 11.0.11204000 System Description: Debian GNU/Linux testing (jessie) Configured using: `configure --build x86_64-linux-gnu --host x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.3.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3.50/site-lisp:/usr/share/emacs/site-lisp --without-compress-info --with-crt-dir=/usr/lib/x86_64-linux-gnu/ --with-x=yes --with-x-toolkit=gtk3 --with-imagemagick=yes CFLAGS='-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' CPPFLAGS='-D_FORTIFY_SOURCE=2' LDFLAGS='-g -Wl,--as-needed -znocombreloc'' From unknown Tue Aug 19 02:50:23 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: michael_heerdegen@web.de Subject: bug#14857: closed (Re: bug#14857: 24.3.50; `align-regexp': doc unclear for non-interactive usage) Message-ID: References: <87sizjtp4v.fsf@web.de> X-Gnu-PR-Message: they-closed 14857 X-Gnu-PR-Package: emacs Reply-To: 14857@debbugs.gnu.org Date: Fri, 26 Jul 2013 02:47:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1374806823-25418-1" This is a multi-part message in MIME format... ------------=_1374806823-25418-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #14857: 24.3.50; `align-regexp': doc unclear for non-interactive usage which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 14857@debbugs.gnu.org. --=20 14857: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D14857 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1374806823-25418-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 14857-done) by debbugs.gnu.org; 26 Jul 2013 02:46:50 +0000 Received: from localhost ([127.0.0.1]:50140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V2Y3N-0006aW-Po for submit@debbugs.gnu.org; Thu, 25 Jul 2013 22:46:50 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:49211 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V2Y3L-0006a7-Dv for 14857-done@debbugs.gnu.org; Thu, 25 Jul 2013 22:46:47 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1V2Y3K-0002IU-8L; Thu, 25 Jul 2013 22:46:46 -0400 From: Glenn Morris To: 14857-done@debbugs.gnu.org Subject: Re: bug#14857: 24.3.50; `align-regexp': doc unclear for non-interactive usage References: <87sizjtp4v.fsf@web.de> X-Spook: Verisign computer terrorism Qaddafi munitions defense X-Ran: eDy^=5d"]YwK|h9YAPtoQh.xC(XE-G1D}m$(bk[[8;6FmgmQ~a|WZQ)5p20JF{>"lAML<= X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 25 Jul 2013 22:46:46 -0400 In-Reply-To: <87sizjtp4v.fsf@web.de> (Michael Heerdegen's message of "Sat, 13 Jul 2013 00:00:32 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 14857-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (-----) Version: 24.4 Michael Heerdegen wrote: > absolutely unclear how `regexp' must look like when `align-regexp' is > called from Lisp. We should either explain it, or say that this command > is only for interactive use. I never know who "we" is, but personally I went for the first option. ------------=_1374806823-25418-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Jul 2013 22:36:25 +0000 Received: from localhost ([127.0.0.1]:51369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uxlwv-0001mA-2Z for submit@debbugs.gnu.org; Fri, 12 Jul 2013 18:36:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55812) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uxlws-0001lv-EP for submit@debbugs.gnu.org; Fri, 12 Jul 2013 18:36:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uxlwm-0000KF-2J for submit@debbugs.gnu.org; Fri, 12 Jul 2013 18:36:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-100.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxlwl-0000KA-W5 for submit@debbugs.gnu.org; Fri, 12 Jul 2013 18:36:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxlwj-0002qt-NS for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 18:36:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uxlwi-0000HC-2i for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 18:36:13 -0400 Received: from mout.web.de ([212.227.15.4]:65391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxlOR-0007cH-6p for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 18:00:47 -0400 Received: from drachen.dragon ([90.187.105.124]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0LfEfA-1UMRVr2uSW-00onN3 for ; Sat, 13 Jul 2013 00:00:45 +0200 From: Michael Heerdegen To: bug-gnu-emacs@gnu.org Subject: 24.3.50; `align-regexp': doc unclear for non-interactive usage Date: Sat, 13 Jul 2013 00:00:32 +0200 Message-ID: <87sizjtp4v.fsf@web.de> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:xmFUBD+mmB/DqLjvOkbY+nIKjDk++NpCIwGUMGt3Z4UjEM0kESo toO3PRag33BrIaSPVNyX6O1rSxXqWiK6hDAR9VYOVS6xFVRKNRBwc8zqV2Yx0qJUsOMaGjb OHXxv62RLrbunUhJPVlPI/GM2hvvUsSdGbGoA7I8mpz6275LzyuF6DIvDvyb+peuxyQ7Cqr FXPVDaXnbqNxrKdDlHZuw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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.15 Precedence: list Reply-To: michael_heerdegen@web.de 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 (-----) Hello, after reading the doc of `align-regexp', I try to follow the example and copy the example text Fred (123) 456-7890 Alice (123) 456-7890 Mary-Anne (123) 456-7890 Joe (123) 456-7890 into a newly created buffer and do M-: (align-regexp (point-min) (point-max) "\(") I get an error: align-region: Marker does not point anywhere Obviously, the interactive spec modifies the entered regexp. It's absolutely unclear how `regexp' must look like when `align-regexp' is called from Lisp. We should either explain it, or say that this command is only for interactive use. Regards, Michael. In GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2) of 2013-07-08 on dex, modified by Debian (emacs-snapshot package, version 2:20130708-1) Windowing system distributor `The X.Org Foundation', version 11.0.11204000 System Description: Debian GNU/Linux testing (jessie) Configured using: `configure --build x86_64-linux-gnu --host x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.3.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3.50/site-lisp:/usr/share/emacs/site-lisp --without-compress-info --with-crt-dir=/usr/lib/x86_64-linux-gnu/ --with-x=yes --with-x-toolkit=gtk3 --with-imagemagick=yes CFLAGS='-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' CPPFLAGS='-D_FORTIFY_SOURCE=2' LDFLAGS='-g -Wl,--as-needed -znocombreloc'' ------------=_1374806823-25418-1--