From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Pawe=C5=82_?= =?UTF-8?Q?Kra=C5=9Bnicki?= Newsgroups: gmane.emacs.bugs Subject: bug#46476: Feature request: Right-aligning part of the modeline Date: Sat, 13 Feb 2021 18:45:14 +0100 Message-ID: References: <83ft20e5z0.fsf@gnu.org> <83a6s7dhv0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36465"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46476@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 13 18:46:27 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 1lAyzz-0009NE-40 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 18:46:27 +0100 Original-Received: from localhost ([::1]:52534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAyzy-0002FA-22 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 12:46:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAyza-0002Er-MD for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 12:46:09 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAyzZ-0003Ha-R3 for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 12:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lAyzZ-0000aB-OJ for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 12:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Pawe=C5=82_?= =?UTF-8?Q?Kra=C5=9Bnicki?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Feb 2021 17:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46476 X-GNU-PR-Package: emacs Original-Received: via spool by 46476-submit@debbugs.gnu.org id=B46476.16132383332204 (code B ref 46476); Sat, 13 Feb 2021 17:46:01 +0000 Original-Received: (at 46476) by debbugs.gnu.org; 13 Feb 2021 17:45:33 +0000 Original-Received: from localhost ([127.0.0.1]:34989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAyz6-0000ZU-NL for submit@debbugs.gnu.org; Sat, 13 Feb 2021 12:45:32 -0500 Original-Received: from mail-pl1-f174.google.com ([209.85.214.174]:44051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAyz5-0000ZG-7J for 46476@debbugs.gnu.org; Sat, 13 Feb 2021 12:45:31 -0500 Original-Received: by mail-pl1-f174.google.com with SMTP id a24so1471225plm.11 for <46476@debbugs.gnu.org>; Sat, 13 Feb 2021 09:45:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DASkGPlPUSRHWpW5QzZ/mNTQrksRRvO6ZhvAPGJ0P6o=; b=BTZwb2vPU4A6l+e0bmKq8IkPryJ4cNPMM2H8WbCWwnDcwLn2E9og7sQk0SHpSLxlR0 hg/+UTwMuIfTuGsxDhbk/qMQOLbi5wSx5JjmE/+D2dnVN0a2L/cj51U5q2v+AIwnc8ws 08CNPxipyrEiSWwoC67m1X/qHPpW6tyA8n2Uj4rkIbMSuXs7dLtY3EJBxVuLnUcS22rB EpkKBrkQP5VNQrnkA7OlTzNa/LHbw4oY2FdWmyACgHG9iqy0Ovi6vd0lz4SQgTjjfjsl HeNdpgC0TNv4j0UZiI/RD00jHlQePjvU9vFp+PxP7wytSqyHDryLdDKpyDwkIsZ70DUx Y1pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DASkGPlPUSRHWpW5QzZ/mNTQrksRRvO6ZhvAPGJ0P6o=; b=bjhn4u+srfdiKezVTbulQWUdnAvcwdggBJYD47wq6+WX26iuqwD/xSw5aGVUQ7+mc/ ieHrig5TK+WB4TXpdMV1dTtN9qpXreYSdd8J/yQGrfeCTi+bIiEb2jovifBuq4KJ40nb 0ahPwJn9ehWjxPom/YJOMcxrpXjD5nogRlKpxcUYER1fOx7kc/63PhXBTpWOq6wpI7le Xyq0r0lsoqaAmteKqj7QjPb58JAh4wMkTb2XILyBs0RXY3tNJfQzb0ITpjaq7R7bDrGz 7gRGwnecECU5IaNGDde31JwDlMW4p9Ao7O+x9CrLiKopCuUJfsx3++KKRpRnoZJSOxrR p3Yg== X-Gm-Message-State: AOAM533PUKjCJi/NdJ8x2rp8VAeMTYjiy9ivp3E3Xb/yr7UIIGo7UIdR IfEEv7EpkFVoUrvWy1JSFIQ+RoMj09GGFySx32cfkWnQh9xAjsnU X-Google-Smtp-Source: ABdhPJz9CQ7v3t628uh7mWNk8nRsp0xMpgv90JIxRNTzuBHh9BX41V8REKuyF0rUZUG181iz7oVA1+i5CzsBXRdQSOk= X-Received: by 2002:a17:902:6bc7:b029:e3:672:f741 with SMTP id m7-20020a1709026bc7b02900e30672f741mr7674797plt.44.1613238325221; Sat, 13 Feb 2021 09:45:25 -0800 (PST) In-Reply-To: <83a6s7dhv0.fsf@gnu.org> 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:199943 Archived-At: > If people use :align-to, then what would be the advantage of providing > %-constructs to produce the same? Well, the only advantage is that people wouldn't need to install an external package or write a short but advanced piece of Lisp. I think that right alignment is such a commonly used feature that it would be good to have it accessible very easily. (Center alignment and segments are less popular.) I actually got the idea for using %= in particular from Vim, which has right alignment under this %-construct. > That'd require two passes to generate the mode-line display, right? I think so. Emacs would have to first expand the modeline constructs in the segments separately into some internal data structure, then decide which ones to actually display.