From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.help Subject: Using :align-to with non-spaces Date: Sun, 08 Oct 2017 23:22:59 -0600 Message-ID: <87zi90yjws.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507526620 14807 195.159.176.226 (9 Oct 2017 05:23:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 9 Oct 2017 05:23:40 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 09 07:23:35 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1QXJ-0002Zu-Mh for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Oct 2017 07:23:29 +0200 Original-Received: from localhost ([::1]:56143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1QXQ-0006rg-VJ for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Oct 2017 01:23:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1QX1-0006ra-Od for help-gnu-emacs@gnu.org; Mon, 09 Oct 2017 01:23:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1QX0-0007fa-Uj for help-gnu-emacs@gnu.org; Mon, 09 Oct 2017 01:23:11 -0400 Original-Received: from mail-io0-x233.google.com ([2607:f8b0:4001:c06::233]:54728) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1QWx-0007ef-5A; Mon, 09 Oct 2017 01:23:07 -0400 Original-Received: by mail-io0-x233.google.com with SMTP id h66so20174816ioh.11; Sun, 08 Oct 2017 22:23:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:user-agent:mime-version; bh=pMuC3uaA+93krGaDpfRUfsbji2mSsW95ttRJ/MeBTWA=; b=SJfljK4gxeEJLCG4kzcKZ1ugnwH9tnPW5jJaX9cgYL8Hq6ZJlLUIV/ipunpW8RtRPj q9ZMX790zqAdkrBijWoAoF3RkDV0vI2+/Zgf2YC28bgJMTP/IO98kPklgkU8a8rPPFP5 YU5XWoMeo7SVJmTdy2TjBwS+MA8Wei5vgzRn+HDREX1z4TDn+gj7uKo4LtKqLrnTmL/4 T4w7bLnPyWA+IYT6yzVg2jCZsMBnTNu4LoEwvcD9q798Bb7jVCGAAyUDmpU6CcPLPD5S RmDm9JScpqVy3UTDdFNtcIxl1kQnuNUtz+jqmUwOfYNcinx4mtJ1H6Z9UNTzC496m2xv YsnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :mime-version; bh=pMuC3uaA+93krGaDpfRUfsbji2mSsW95ttRJ/MeBTWA=; b=SdekUqoB+Q6P9HtP5j9s9dgWMvGTkK+URl5vLkC8T5fu4sSYwq3h1XP8BVx+OB5sL/ iIap9a55+PzH5Q8Zl6htvHoqlZE24VwW6VdsZepyqGURp+IuvsL9uNSWuRisWOqIrozg vU0wxMTo8BPxSJWnF87GJgoHz6AmJpWIaSFSwIwHTnehqVJqIXCtTaewgnHUQ5yaj0EP ODFgeJiY6N3HFPzeBxiIXsXQuRxfE6hht94Bmsv+iwYuYDaB2ytHsPYRf487LyoCHEgK Xb6J40TxqYo+g7iF3+c5ImXhNm/p6E6v5hD5lua43b/PPLP3s/l6MYsN9VwyhGLA4gGH TSjg== X-Gm-Message-State: AMCzsaWbn3QWvlMuYWWfD/WibeZvNgvCoLaURx48rX6w7TSh0lw9LBZQ 3wcs4FQ40Sb5ozojL1QqKZT+BQ== X-Google-Smtp-Source: AOwi7QC2vKh2V325c9xAq/MdvfRNtv5RCT/Hz3aDZdND6fnG9uhTCsWjO/MLAt2s00Tm8f9yduQafg== X-Received: by 10.107.180.3 with SMTP id d3mr602650iof.46.1507526585942; Sun, 08 Oct 2017 22:23:05 -0700 (PDT) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id w63sm125256iof.7.2017.10.08.22.23.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Oct 2017 22:23:04 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::233 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114525 Archived-At: Would it be a reasonable feature request to allow some usage of :align-to with non-spaces (or to have a special display property for alignment)? For instance, imagine one wants to align a string in the header-line with the text area. Compare: (setq header-line-format (concat (propertize " " 'display '(space . (:align-to 0))) "test")) (setq header-line-format (propertize "test" 'display '(space . (:align-to 0)))) It's not a big deal, but it's makes things look cleaner, especially when the string in question is also being propertized. P.S. I noticed that the above does not take into account the space taken by `display-line-numbers'.