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.devel Subject: align mysteries Date: Thu, 14 Oct 2021 20:59:54 +0200 Message-ID: <87r1cnv3dh.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35567"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 14 21:02:19 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mb5zf-0008vw-4D for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 21:02:19 +0200 Original-Received: from localhost ([::1]:50512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mb5zY-0006QK-Pn for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 15:02:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb5xV-0005Nx-WF for emacs-devel@gnu.org; Thu, 14 Oct 2021 15:00:06 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:57534) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb5xU-0008Mu-98 for emacs-devel@gnu.org; Thu, 14 Oct 2021 15:00:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:Subject:To:From:Sender:Reply-To:Cc: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=7tEdNIgn64trdeQCPaM3s38AXSMbkxEncil7CceOvCg=; b=dKwR7Iq/1UnvMcQVn8kCwcqO1/ 4eCsBf/NhMCrVGuIXLCf+6eG7LQ/0WSFNfRF2dPtAVCdoJ/1lj3GLQ3rJFnav/fUlBhN61Q2ue9FZ 8PE3uKcF7eVuR2q+7BJyXDIuFIR9ssNaq1ZP/Q/ZPyaFcqIWzRDdKj3ExtETkmxmet9I=; 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 1mb5xO-0004mH-7T for emacs-devel@gnu.org; Thu, 14 Oct 2021 21:00:00 +0200 X-Now-Playing: The Soft Pink Truth's _Am I Free To Go?_: "Respect the Earth (Crude SS cover)" Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:277043 Archived-At: I've never looked looking into how `align' works (because I don't usually align anything), but it's kinda weird? With the following in a text-mode buffer: foo bar zot lalala y indeed `M-x align RET' with that in the region does nothing. `C-u M-x align RET' does align... something... And I get: foo bar zot lalala y indeed That is, it made all the spaces in the first line into TABs, and the first space on the second line into a TAB. =C2=AF\_(=E3=83=84)_/=C2=AF The prefix isn't mentioned in the `align' doc string, and it's not referred to in the function itself, so it's probably reacted to in a function called by `align'? (I didn't try to debug it.) So we should at least have a doc string fix here. But is this how `align' is supposed to work? It seems awfully quirky. The other thing I wondered about is -- do we have a sexp-aware alignment command somewhere? That is, that would use `forward-sexp' to compute the columns? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no