From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#51226: 29.0.50; `align' doc string is unclear Date: Fri, 15 Oct 2021 12:04:01 +0200 Message-ID: <875yty61v2.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5877"; mail-complaints-to="usenet@ciao.gmane.io" To: 51226@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 15 12:05:20 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 1mbK5V-0001IN-Sy for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 12:05:18 +0200 Original-Received: from localhost ([::1]:56532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbK5U-0006ao-Sr for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 06:05:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbK5H-0006Wy-8z for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 06:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54915) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbK5G-0006GT-UC for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 06:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbK5G-0006Va-Or for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 06:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Oct 2021 10:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51226 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163429225924964 (code B ref -1); Fri, 15 Oct 2021 10:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Oct 2021 10:04:19 +0000 Original-Received: from localhost ([127.0.0.1]:38228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbK4Z-0006Ua-HB for submit@debbugs.gnu.org; Fri, 15 Oct 2021 06:04:19 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbK4W-0006UR-QR for submit@debbugs.gnu.org; Fri, 15 Oct 2021 06:04:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbK4W-0005Zo-LN for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 06:04:16 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:36652) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbK4L-0004HL-GF for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 06:04:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=6ki1UKXLNNKiB1OOCkEtZM8AFjNPnCyNUB/lp2emFZk=; b=KXwy9nFqyAANkeEJa5KNJohHQo IofsE3q7P6OucyyuhYd6WhpJF4ThmJnVwQpszqZa6eVOxc/0zHhoUGeKNmVdNoYiiFjcEedCcEvD9 JiPUiydUzJe91nrTWMIk5AM0MNsTu4wwecY6J9/Sgxu9f5xlpKe0DoNXWU52symKyRu4=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mbK4H-0003Sf-VT for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 12:04:04 +0200 X-Now-Playing: Sheila Chandra's _Nada Brahma_: "Nada Brahma (Sound is Divine)" Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:217304 Archived-At: `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. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no