From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: current-column and display (space :align-to) properties
Date: Thu, 12 Jan 2006 09:41:42 +0100 [thread overview]
Message-ID: <m3ek3dx2gp.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <loom.20060111T174606-656@post.gmane.org> (Michael Mauger's message of "Wed, 11 Jan 2006 16:57:38 +0000 (UTC)")
Michael Mauger <mmaug@yahoo.com> writes:
> I think a basic solution to this (report integer column number with no
> accounting for font widths) is needed now (before the release) since many of
> the display properties are new and cause inconsistent behavior in some basic
> functions.
The mentioned display properties are not new (they were introduced in
21.1), so the problem is not new either.
> I've looked at the code, and understand where the changes are needed, but am
> not very comfortable with Emacs internals. I'll take a look and see if I can
> puzzle my way thru but my time for it is limited.
If you manage to fix current-column (actually current_column_1),
please remember to fix move-to-column in a similar way!
My best guess is that it must be fixed in a way which calls redisplay
internally to calculate the proper column. Otherwise, there are just
too many things which can go wrong -- e.g. newlines with display
properties, etc.
Try this:
(insert "["
(propertize "01\n23"
'display '(space :align-to 10))
"]ZZ\n")
A good test would be
M-: (move-to-column (current-column))
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2006-01-12 8:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-10 1:24 current-column and display (space :align-to) properties Michael Mauger
2006-01-10 15:33 ` Stefan Monnier
2006-01-11 0:49 ` Richard M. Stallman
2006-01-11 16:57 ` Michael Mauger
2006-01-12 8:41 ` Kim F. Storm [this message]
2006-01-12 15:10 ` Richard M. Stallman
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=m3ek3dx2gp.fsf@kfs-l.imdomain.dk \
--to=storm@cua.dk \
--cc=emacs-devel@gnu.org \
/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).