From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51226: 29.0.50; `align' doc string is unclear Date: Fri, 15 Oct 2021 14:00:07 +0300 Message-ID: <831r4mk0y0.fsf@gnu.org> References: <875yty61v2.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28239"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51226@debbugs.gnu.org To: Lars Ingebrigtsen , John Wiegley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 15 13:05:34 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mbL1p-0006y5-TI for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 13:05:33 +0200 Original-Received: from localhost ([::1]:51520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbL1i-0003gB-Pc for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 07:05:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbKyQ-0007x9-HQ for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 07:02:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54969) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbKyQ-0003GV-6M for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 07:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbKyQ-0008Az-2J for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 07:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Oct 2021 11:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51226 X-GNU-PR-Package: emacs Original-Received: via spool by 51226-submit@debbugs.gnu.org id=B51226.163429566231339 (code B ref 51226); Fri, 15 Oct 2021 11:02:02 +0000 Original-Received: (at 51226) by debbugs.gnu.org; 15 Oct 2021 11:01:02 +0000 Original-Received: from localhost ([127.0.0.1]:38282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbKxR-00089I-Mu for submit@debbugs.gnu.org; Fri, 15 Oct 2021 07:01:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbKxP-00088p-5q for 51226@debbugs.gnu.org; Fri, 15 Oct 2021 07:01:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43618) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbKxH-0001uz-Vp; Fri, 15 Oct 2021 07:00:53 -0400 Original-Received: from [87.69.77.57] (port=1420 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbKwa-0002Gd-14; Fri, 15 Oct 2021 07:00:22 -0400 In-Reply-To: <875yty61v2.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 15 Oct 2021 12:04:01 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217310 Archived-At: > From: Lars Ingebrigtsen > Date: Fri, 15 Oct 2021 12:04:01 +0200 > > > `align' doesn't mention the prefix arg in the doc string, but in certain > modes, different alignment rules are picked based on what prefix you > give to the command. For instance, text mode: > > ;; With a numeric prefix argument, or C-u, space delimited text > ;; tables will be aligned. > (text-column > (regexp . "\\(^\\|\\S-\\)\\([ \t]+\\)\\(\\S-\\|$\\)") > (group . 2) > (modes . align-text-modes) > (repeat . t) > (run-if . ,(lambda () > (and current-prefix-arg > (not (eq '- current-prefix-arg)))))) > > ;; With a negative prefix argument, lists of dollar figures will > ;; be aligned. > (text-dollar-figure > (regexp . "\\$?\\(\\s-+[0-9]+\\)\\.") > (modes . align-text-modes) > (justify . t) > (run-if . ,(lambda () > (eq '- current-prefix-arg)))) > > It's also not clear why `M-x align' in text modes do nothing -- you > have to give it a prefix to make it do anything. John, could you help us out here by explaining this stuff?