From unknown Tue Jun 17 20:09:54 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#26032 <26032@debbugs.gnu.org> To: bug#26032 <26032@debbugs.gnu.org> Subject: Status: Indenting in tabulars without & Reply-To: bug#26032 <26032@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:09:54 +0000 retitle 26032 Indenting in tabulars without & reassign 26032 auctex submitter 26032 Arash Esbati severity 26032 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 08 14:44:44 2017 Received: (at submit) by debbugs.gnu.org; 8 Mar 2017 19:44:44 +0000 Received: from localhost ([127.0.0.1]:46692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clhVs-00047A-Lq for submit@debbugs.gnu.org; Wed, 08 Mar 2017 14:44:44 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clhVs-00046x-4O for submit@debbugs.gnu.org; Wed, 08 Mar 2017 14:44:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clhVl-0002DI-Jd for submit@debbugs.gnu.org; Wed, 08 Mar 2017 14:44:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41905) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1clhVl-0002DE-HR for submit@debbugs.gnu.org; Wed, 08 Mar 2017 14:44:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clhVk-0003eD-4Y for bug-auctex@gnu.org; Wed, 08 Mar 2017 14:44:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clhVg-0002CH-5S for bug-auctex@gnu.org; Wed, 08 Mar 2017 14:44:36 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clhVg-0002CB-28 for bug-auctex@gnu.org; Wed, 08 Mar 2017 14:44:32 -0500 Received: from p54ace8a8.dip0.t-ipconnect.de ([84.172.232.168]:50172 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1clhVf-0005pP-F8 for bug-auctex@gnu.org; Wed, 08 Mar 2017 14:44:31 -0500 From: Arash Esbati To: auctex-bugs Subject: Indenting in tabulars without & Date: Wed, 08 Mar 2017 20:43:15 +0100 Message-ID: <867f3zpnak.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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 (-----) Hi all, please consider the following 2 examples and how the column separator is filled, both do not work as expected: --8<---------------cut here---------------start------------->8--- \documentclass{article} \begin{document} \begin{tabular}{ll} \multicolumn{2}{c}{These lines will} `M-RET here' \end{tabular} results in: \begin{tabular}{ll} \multicolumn{2}{c}{These lines will} `M-RET here' \\ & \end{tabular} And \begin{tabular}{ll} \multicolumn{2}{c}{These lines will} \\ & `C-c C-q C-e here' \end{tabular} results in: \begin{tabular}{ll} \multicolumn{2}{c}{These lines will} \\ & `C-c C-q C-e here' \end{tabular} \end{document} --8<---------------cut here---------------end--------------->8--- The issue is in `LaTeX-hanging-ampersand-position' where (- (current-column) 1) returns a negative value if no "[^\\]&" is found: --8<---------------cut here---------------start------------->8--- (defun LaTeX-hanging-ampersand-position () "Return indent column for a hanging ampersand (i.e. ^\\s-*&)." (destructuring-bind (beg-pos . beg-col) (LaTeX-env-beginning-pos-col) (let* ((cur-pos (point))) (save-excursion (if (re-search-backward "\\\\\\\\" beg-pos t) (let ((cur-idx (TeX-how-many "[^\\]&" (point) cur-pos))) (goto-char beg-pos) (re-search-forward "[^\\]&" cur-pos t (+ 1 cur-idx)) (- (current-column) 1)) (+ 2 beg-col)))))) --8<---------------cut here---------------end--------------->8--- My suggest to guard (- (current-column) 1) with a (wholenump ...) and return (+ 2 beg-col) as fallback if the test is not true: --8<---------------cut here---------------start------------->8--- (defun LaTeX-hanging-ampersand-position () "Return indent column for a hanging ampersand (i.e. ^\\s-*&)." (destructuring-bind (beg-pos . beg-col) (LaTeX-env-beginning-pos-col) (let* ((cur-pos (point))) (save-excursion (if (re-search-backward "\\\\\\\\" beg-pos t) (let ((cur-idx (TeX-how-many "[^\\]&" (point) cur-pos))) (goto-char beg-pos) (re-search-forward "[^\\]&" cur-pos t (+ 1 cur-idx)) (if (wholenump (- (current-column) 1)) (- (current-column) 1) (+ 2 beg-col))) (+ 2 beg-col)))))) --8<---------------cut here---------------end--------------->8--- Any comments welcome. Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 08 15:20:44 2017 Received: (at 26032) by debbugs.gnu.org; 8 Mar 2017 20:20:44 +0000 Received: from localhost ([127.0.0.1]:46707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cli4i-00059J-05 for submit@debbugs.gnu.org; Wed, 08 Mar 2017 15:20:44 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44631) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cli4g-000596-8e for 26032@debbugs.gnu.org; Wed, 08 Mar 2017 15:20:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cli4Y-0004pe-K4 for 26032@debbugs.gnu.org; Wed, 08 Mar 2017 15:20:37 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cli4Y-0004pa-Go for 26032@debbugs.gnu.org; Wed, 08 Mar 2017 15:20:34 -0500 Received: from mail-oi0-f41.google.com ([209.85.218.41]:35148) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1cli4Y-0006Gl-60 for 26032@debbugs.gnu.org; Wed, 08 Mar 2017 15:20:34 -0500 Received: by mail-oi0-f41.google.com with SMTP id 62so26241076oih.2 for <26032@debbugs.gnu.org>; Wed, 08 Mar 2017 12:20:34 -0800 (PST) X-Gm-Message-State: AMke39m3HFn3GVEmw/bVE5wcny9nmGRpmZcsp6lQO8yMkh9TF632GcLQoqHIdxRAX3n1elHLMqTVoyTwQAopdw== X-Received: by 10.202.212.10 with SMTP id l10mr4960470oig.71.1489004433093; Wed, 08 Mar 2017 12:20:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.17.82 with HTTP; Wed, 8 Mar 2017 12:19:52 -0800 (PST) In-Reply-To: <867f3zpnak.fsf@gnu.org> References: <867f3zpnak.fsf@gnu.org> From: =?UTF-8?Q?Mos=C3=A8_Giordano?= Date: Wed, 8 Mar 2017 21:19:52 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#26032: Indenting in tabulars without & To: Arash Esbati Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: 26032 Cc: 26032@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: -4.5 (----) Hi Arash, have you been writing many tables lately? ;-) 2017-03-08 20:43 GMT+01:00 Arash Esbati : > My suggest to guard (- (current-column) 1) with a (wholenump ...) and > return (+ 2 beg-col) as fallback if the test is not true: Yeah, a fallback option in case we get non-sense result is always useful. Alas, `wholenump' is not available in XEmacs. Remember also the test! Bye, Mos=C3=A8 From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 08 15:58:32 2017 Received: (at 26032) by debbugs.gnu.org; 8 Mar 2017 20:58:32 +0000 Received: from localhost ([127.0.0.1]:46747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clifH-0007pd-RM for submit@debbugs.gnu.org; Wed, 08 Mar 2017 15:58:32 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clifF-0007pQ-Os for 26032@debbugs.gnu.org; Wed, 08 Mar 2017 15:58:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clif5-00068S-Cu for 26032@debbugs.gnu.org; Wed, 08 Mar 2017 15:58:24 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clif5-00068O-9U for 26032@debbugs.gnu.org; Wed, 08 Mar 2017 15:58:19 -0500 Received: from p54ace8a8.dip0.t-ipconnect.de ([84.172.232.168]:50470 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1clif4-0000EG-EB; Wed, 08 Mar 2017 15:58:18 -0500 From: Arash Esbati To: =?iso-8859-1?Q?Mos=E8?= Giordano Subject: Re: bug#26032: Indenting in tabulars without & References: <867f3zpnak.fsf@gnu.org> Date: Wed, 08 Mar 2017 21:57:42 +0100 In-Reply-To: (=?iso-8859-1?Q?=22Mos=E8?= Giordano"'s message of "Wed, 8 Mar 2017 21:19:52 +0100") Message-ID: <86efy7mqpl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26032 Cc: 26032@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: -5.0 (-----) Hi Mos=E8, Mos=E8 Giordano writes: >> 2017-03-08 20:43 GMT+01:00 Arash Esbati : >> > have you been writing many tables lately? ;-) Tough luck, really! I did exactly one table, with side effects ;-) >> My suggest to guard (- (current-column) 1) with a (wholenump ...) and >> return (+ 2 beg-col) as fallback if the test is not true: > > Yeah, a fallback option in case we get non-sense result is always > useful. Alas, `wholenump' is not available in XEmacs. Thanks for the heads-up, I will replace it with (if (< (- (current-column) 1) 0) (+ 2 beg-col) (- (current-column) 1)) > Remember also the test! Yes, will do. Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 09 00:50:11 2017 Received: (at 26032) by debbugs.gnu.org; 9 Mar 2017 05:50:11 +0000 Received: from localhost ([127.0.0.1]:47002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clqxm-0006ku-Uz for submit@debbugs.gnu.org; Thu, 09 Mar 2017 00:50:11 -0500 Received: from omx13.esk.m4.zaq.ne.jp ([220.152.48.7]:34032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clqxl-0006kX-HT for 26032@debbugs.gnu.org; Thu, 09 Mar 2017 00:50:10 -0500 Received: from omx13.esk.m4.zaq.ne.jp ([220.152.49.28] [220.152.49.28]) by omx13.esk.m4.zaq.ne.jp with ESMTP id <20170309055001765.LLGO.3163.omx13.esk.m4.zaq.ne.jp@omx13.esk.m4.zaq.ne.jp>; Thu, 9 Mar 2017 14:50:01 +0900 Received: from smtpa12.esk.m4.zaq.ne.jp ([42.144.27.116] [42.144.27.116]) by smtpa12.esk.m4.zaq.ne.jp with ESMTP id <20170309055001720.SLNO.3043.smtpa12.esk.m4.zaq.ne.jp@smtpa12.esk.m4.zaq.ne.jp>; Thu, 9 Mar 2017 14:50:01 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id D8050139800; Thu, 9 Mar 2017 14:50:00 +0900 (JST) To: =?UTF-8?Q?Mos=C3=A8?= Giordano Subject: Re: bug#26032: Indenting in tabulars without & In-reply-to: Your message of "Wed, 08 Mar 2017 21:19:52 +0100." X-Mailer: MH-E 8.6; MH 6.8.4.JP-3.05; GNU Emacs 25.1.1 Date: Thu, 09 Mar 2017 14:50:00 +0900 Message-ID: <10899.1489038600@localhost> From: Ikumi Keita X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 26032 Cc: Arash Esbati , 26032@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: 0.0 (/) Hi all, > Alas, `wholenump' is not available in XEmacs. In XEmacs, `natnump' is available. It is available in GNU Emacs, too, and already used in latex.el and tex-buf.el. Bye, Ikumi Keita From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 09 09:49:56 2017 Received: (at 26032-done) by debbugs.gnu.org; 9 Mar 2017 14:49:57 +0000 Received: from localhost ([127.0.0.1]:47275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clzO8-000844-Kr for submit@debbugs.gnu.org; Thu, 09 Mar 2017 09:49:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36447) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clzO6-00083r-4Y for 26032-done@debbugs.gnu.org; Thu, 09 Mar 2017 09:49:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clzNv-00059d-PH for 26032-done@debbugs.gnu.org; Thu, 09 Mar 2017 09:49:48 -0500 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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clzNv-00059Y-M4; Thu, 09 Mar 2017 09:49:43 -0500 Received: from p54ace6e5.dip0.t-ipconnect.de ([84.172.230.229]:51053 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1clzNu-0003fi-RH; Thu, 09 Mar 2017 09:49:43 -0500 From: Arash Esbati To: Ikumi Keita Subject: Re: bug#26032: Indenting in tabulars without & References: <10899.1489038600@localhost> Date: Thu, 09 Mar 2017 15:49:24 +0100 In-Reply-To: <10899.1489038600@localhost> (Ikumi Keita's message of "Thu, 09 Mar 2017 14:50:00 +0900") Message-ID: <86tw727bez.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26032-done Cc: 26032-done@debbugs.gnu.org, =?iso-8859-1?Q?Mos=E8?= Giordano 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 (-----) Ikumi Keita writes: >> Alas, `wholenump' is not available in XEmacs. > > In XEmacs, `natnump' is available. It is available in GNU Emacs, too, > and already used in latex.el and tex-buf.el. Hi Keita, great, thanks a lot. I've just pushed a change with `natnump' to git. (I forgot to mention the bug number in changelog entry, but that's a different story). Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 09 13:15:17 2017 Received: (at 26032-done) by debbugs.gnu.org; 9 Mar 2017 18:15:17 +0000 Received: from localhost ([127.0.0.1]:47982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cm2ar-0008P9-B9 for submit@debbugs.gnu.org; Thu, 09 Mar 2017 13:15:17 -0500 Received: from omx25.esk.m4.zaq.ne.jp ([220.152.48.14]:41149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cm2am-0008Or-Sb for 26032-done@debbugs.gnu.org; Thu, 09 Mar 2017 13:15:14 -0500 Received: from omx25.esk.m4.zaq.ne.jp ([220.152.49.28] [220.152.49.28]) by omx25.esk.m4.zaq.ne.jp with ESMTP id <20170309181505071.MPGJ.3135.omx25.esk.m4.zaq.ne.jp@omx25.esk.m4.zaq.ne.jp>; Fri, 10 Mar 2017 03:15:05 +0900 Received: from smtpa12.esk.m4.zaq.ne.jp ([42.144.27.116] [42.144.27.116]) by smtpa12.esk.m4.zaq.ne.jp with ESMTP id <20170309181505023.TGWL.3043.smtpa12.esk.m4.zaq.ne.jp@smtpa12.esk.m4.zaq.ne.jp>; Fri, 10 Mar 2017 03:15:05 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id 2D411139800; Fri, 10 Mar 2017 03:15:04 +0900 (JST) To: Arash Esbati Subject: Re: bug#26032: Indenting in tabulars without & In-reply-to: Your message of "Thu, 09 Mar 2017 15:49:24 +0100." <86tw727bez.fsf@gnu.org> X-Mailer: MH-E 8.6; MH 6.8.4.JP-3.05; GNU Emacs 25.1.1 Date: Fri, 10 Mar 2017 03:15:03 +0900 Message-ID: <18017.1489083303@localhost> From: Ikumi Keita X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 26032-done Cc: 26032-done@debbugs.gnu.org, =?iso-8859-1?Q?Mos=E8?= Giordano 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: 0.0 (/) Hi Arash, > I've just pushed a change with `natnump' to git. I'm afraid that the fix has to be reconsidered. The current code does not work as expected when the whole tabular environment itself is indented like the following examples. \begin{table} \begin{tabular}{ll} \multicolumn{2}{c}{These lines will} `M-RET here' \end{tabular} \end{table} \begin{table} \begin{tabular}{ll} \multicolumn{2}{c}{These lines will} \\ & `C-c C-q C-e here' \end{tabular} \end{table} So it is not sufficient to examine whether `(- (current-column) 1)' is negative or not. I suppose that comparing the `(current-column)' and `beg-col' would be necessary. (Or just using `(max (- (current-column) 1) (+ 2 beg-col))' might be sufficient. I haven't considered the situation in detail yet.) Regards, Ikumi Keita From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 09 14:30:02 2017 Received: (at 26032) by debbugs.gnu.org; 9 Mar 2017 19:30:02 +0000 Received: from localhost ([127.0.0.1]:48046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cm3lB-0003XL-J0 for submit@debbugs.gnu.org; Thu, 09 Mar 2017 14:30:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cm3l8-0003Wp-0B for 26032@debbugs.gnu.org; Thu, 09 Mar 2017 14:30:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cm3l1-0000DN-8C for 26032@debbugs.gnu.org; Thu, 09 Mar 2017 14:29:52 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm3l1-0000DH-4m; Thu, 09 Mar 2017 14:29:51 -0500 Received: from p54ace6e5.dip0.t-ipconnect.de ([84.172.230.229]:51982 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1cm3l0-0000qm-8m; Thu, 09 Mar 2017 14:29:50 -0500 From: Arash Esbati To: Ikumi Keita Subject: Re: bug#26032: Indenting in tabulars without & References: <18017.1489083303@localhost> Date: Thu, 09 Mar 2017 20:28:47 +0100 In-Reply-To: <18017.1489083303@localhost> (Ikumi Keita's message of "Fri, 10 Mar 2017 03:15:03 +0900") Message-ID: <86shmm6yhc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26032 Cc: 26032@debbugs.gnu.org, =?iso-8859-1?Q?Mos=E8?= Giordano 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 (-----) Ikumi Keita writes: Hi Keita, > I'm afraid that the fix has to be reconsidered. And I was afraid that this would happen; it seemed just too easy ;-) > The current code does not work as expected when the whole tabular > environment itself is indented like the following examples. > > \begin{table} > \begin{tabular}{ll} > \multicolumn{2}{c}{These lines will} `M-RET here' > \end{tabular} > \end{table} > > \begin{table} > \begin{tabular}{ll} > \multicolumn{2}{c}{These lines will} \\ > & `C-c C-q C-e here' > \end{tabular} > \end{table} > > So it is not sufficient to examine whether `(- (current-column) 1)' is > negative or not. I suppose that comparing the `(current-column)' and > `beg-col' would be necessary. (Or just using `(max (- (current-column) > 1) (+ 2 beg-col))' might be sufficient. I haven't considered the > situation in detail yet.) Thank you very much for double checking. I think I won't revert my last change; it fixes at least part of the problem. I will also think about it again (but your suggestion above looks quite appealing to me). Best, Arash From unknown Tue Jun 17 20:09:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Thu, 09 Mar 2017 19:40:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 10 05:51:16 2017 Received: (at 26032) by debbugs.gnu.org; 10 Mar 2017 10:51:16 +0000 Received: from localhost ([127.0.0.1]:48530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmI8i-0001AD-9V for submit@debbugs.gnu.org; Fri, 10 Mar 2017 05:51:16 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmI8g-00019z-HZ for 26032@debbugs.gnu.org; Fri, 10 Mar 2017 05:51:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmI8Z-0000RK-RX for 26032@debbugs.gnu.org; Fri, 10 Mar 2017 05:51:09 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmI8Z-0000Qr-Nu; Fri, 10 Mar 2017 05:51:07 -0500 Received: from p54ace40b.dip0.t-ipconnect.de ([84.172.228.11]:53228 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1cmI8Y-00089k-Jt; Fri, 10 Mar 2017 05:51:06 -0500 From: Arash Esbati To: Ikumi Keita Subject: Re: bug#26032: Indenting in tabulars without & References: <18017.1489083303@localhost> <86shmm6yhc.fsf@gnu.org> Date: Fri, 10 Mar 2017 11:50:39 +0100 In-Reply-To: <86shmm6yhc.fsf@gnu.org> (Arash Esbati's message of "Thu, 09 Mar 2017 20:28:47 +0100") Message-ID: <86innh76dc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26032 Cc: 26032@debbugs.gnu.org, =?iso-8859-1?Q?Mos=E8?= Giordano 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 (-----) Arash Esbati writes: > Ikumi Keita writes: > >> I'm afraid that the fix has to be reconsidered. > > And I was afraid that this would happen; it seemed just too easy ;-) > >> The current code does not work as expected when the whole tabular >> environment itself is indented like the following examples. >> >> \begin{table} >> \begin{tabular}{ll} >> \multicolumn{2}{c}{These lines will} `M-RET here' >> \end{tabular} >> \end{table} >> >> \begin{table} >> \begin{tabular}{ll} >> \multicolumn{2}{c}{These lines will} \\ >> & `C-c C-q C-e here' >> \end{tabular} >> \end{table} >> >> So it is not sufficient to examine whether `(- (current-column) 1)' is >> negative or not. I suppose that comparing the `(current-column)' and >> `beg-col' would be necessary. (Or just using `(max (- (current-column) >> 1) (+ 2 beg-col))' might be sufficient. I haven't considered the >> situation in detail yet.) > > Thank you very much for double checking. I think I won't revert my last > change; it fixes at least part of the problem. I will also think about > it again (but your suggestion above looks quite appealing to me). Hi Keita, I did some testing, your suggestion with (if (natnump (- (current-column) 1)) (max (+ 2 beg-col) (- (current-column) 1)) (+ 2 beg-col)) seems to do the job. Do you have any other idea? Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 10 06:25:07 2017 Received: (at 26032) by debbugs.gnu.org; 10 Mar 2017 11:25:07 +0000 Received: from localhost ([127.0.0.1]:48544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmIfT-0001yV-JR for submit@debbugs.gnu.org; Fri, 10 Mar 2017 06:25:07 -0500 Received: from omx22.esk.m4.zaq.ne.jp ([220.152.48.11]:47684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmIfQ-0001x4-U6 for 26032@debbugs.gnu.org; Fri, 10 Mar 2017 06:25:06 -0500 Received: from omx22.esk.m4.zaq.ne.jp ([220.152.49.28] [220.152.49.28]) by omx22.esk.m4.zaq.ne.jp with ESMTP id <20170310112456988.LLSP.3119.omx22.esk.m4.zaq.ne.jp@omx22.esk.m4.zaq.ne.jp>; Fri, 10 Mar 2017 20:24:56 +0900 Received: from smtpa12.esk.m4.zaq.ne.jp ([42.144.27.116] [42.144.27.116]) by smtpa12.esk.m4.zaq.ne.jp with ESMTP id <20170310112456887.UIKL.3043.smtpa12.esk.m4.zaq.ne.jp@smtpa12.esk.m4.zaq.ne.jp>; Fri, 10 Mar 2017 20:24:56 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id 555EA139800; Fri, 10 Mar 2017 20:24:55 +0900 (JST) To: Arash Esbati Subject: Re: bug#26032: Indenting in tabulars without & In-reply-to: Your message of "Fri, 10 Mar 2017 11:50:39 +0100." <86innh76dc.fsf@gnu.org> X-Mailer: MH-E 8.6; MH 6.8.4.JP-3.05; GNU Emacs 25.1.1 Date: Fri, 10 Mar 2017 20:24:55 +0900 Message-ID: <26277.1489145095@localhost> From: Ikumi Keita X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 26032 Cc: 26032@debbugs.gnu.org, =?iso-8859-1?Q?Mos=E8?= Giordano 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: 0.0 (/) Hi Arash, Arash Esbati writes: > I did some testing, your suggestion with > (if (natnump (- (current-column) 1)) > (max (+ 2 beg-col) > (- (current-column) 1)) > (+ 2 beg-col)) > seems to do the job. Do you have any other idea? I think that the sign test can be omitted altogether if we use `max'. That is, just (max (+ 2 beg-col) (- (current-column) 1))) is enough. This code does the expected job on my machine. Regards, Ikumi Keita From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 10 07:35:02 2017 Received: (at 26032-done) by debbugs.gnu.org; 10 Mar 2017 12:35:02 +0000 Received: from localhost ([127.0.0.1]:48596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmJl8-0005Z6-8J for submit@debbugs.gnu.org; Fri, 10 Mar 2017 07:35:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmJl6-0005Ya-BU for 26032-done@debbugs.gnu.org; Fri, 10 Mar 2017 07:35:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmJkw-0006QU-9r for 26032-done@debbugs.gnu.org; Fri, 10 Mar 2017 07:34:55 -0500 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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmJkw-0006QN-6Q; Fri, 10 Mar 2017 07:34:50 -0500 Received: from p54ace40b.dip0.t-ipconnect.de ([84.172.228.11]:53873 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1cmJkv-0007Nv-9G; Fri, 10 Mar 2017 07:34:49 -0500 From: Arash Esbati To: Ikumi Keita Subject: Re: bug#26032: Indenting in tabulars without & References: <26277.1489145095@localhost> Date: Fri, 10 Mar 2017 13:34:34 +0100 In-Reply-To: <26277.1489145095@localhost> (Ikumi Keita's message of "Fri, 10 Mar 2017 20:24:55 +0900") Message-ID: <86varh1fad.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26032-done Cc: 26032-done@debbugs.gnu.org, =?iso-8859-1?Q?Mos=E8?= Giordano 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 (-----) Ikumi Keita writes: > I think that the sign test can be omitted altogether if we use `max'. > That is, just > > (max (+ 2 beg-col) > (- (current-column) 1))) > > is enough. This code does the expected job on my machine. Hi Keita, yes, of course. Thank you very much. I've push a new change set to git. Next try to close this bug. Best, Arash From unknown Tue Jun 17 20:09:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 08 Apr 2017 11:24:04 +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