From: Miles Bader <miles@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: tab widths with a remapped default face
Date: Fri, 06 Jun 2008 17:08:12 +0900 [thread overview]
Message-ID: <buoy75jt28j.fsf@dhapc248.dev.necel.com> (raw)
In-Reply-To: <buo4p87uipz.fsf@dhapc248.dev.necel.com> (Miles Bader's message of "Fri, 06 Jun 2008 16:26:48 +0900")
BTW, I assume the case you're remembering probably has to do with trying
to preserve column alignment across regions which using different faces.
E.g. if the `region' face scales the text by 0.5 and you select some
lines of code, then:
* Using the global face for tab calculation would roughly preserve
line-initial indendation (compared to the non-selected text) that
uses tabs even though the text all shrinks greatly. Of course,
non-line-initial column alignments will be completely screwed up,
and even line-initial indendation will be wrong to the extent it
uses spaces as well as tabs.
* Using the tab's face for tab calculation would mean that
line-initial indentation would shrink along with the text, but would
remain correct (locally, not compared to the non-selected text).
Non-line-initial column alignments would remain correct (locally).
I suppose which of these is "correct" can be argued, but personally the
latter seems the least objectionable to me, especially for displaying
source code.
-Miles
--
Dawn, n. When men of reason go to bed.
next prev parent reply other threads:[~2008-06-06 8:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-06 5:19 tab widths with a remapped default face Miles Bader
2008-06-06 5:53 ` Stefan Monnier
2008-06-06 7:26 ` Miles Bader
2008-06-06 7:53 ` Stefan Monnier
2008-06-06 19:34 ` Gerd Möllmann
2008-06-06 8:08 ` Miles Bader [this message]
2008-06-06 19:13 ` Stefan Monnier
2008-06-06 21:41 ` Miles Bader
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=buoy75jt28j.fsf@dhapc248.dev.necel.com \
--to=miles@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).