From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Paul Michael Reilly <pmr@pajato.com>
Cc: emacs-devel@gnu.org
Subject: Re: Another neat Eclipse'ism
Date: Fri, 20 Jun 2008 10:41:08 -0400 [thread overview]
Message-ID: <jwvfxr89nrw.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <485BBA78.1080100@pajato.com> (Paul Michael Reilly's message of "Fri, 20 Jun 2008 10:11:04 -0400")
>>> While I try to do most of my editing from Emacs, occasionally I will
>>> find myself using the Eclipse Java editor. One of the more convenient
>>> niceties, in the absence of auto-fill-mode, is having the print-margin
>>> displayed. This is a useful feature in its own right, i.e. show a 1
>>> pixel background line in Emacs where the right margin is set.
>>> Needless to say, I have not a clue how to implement it.
>> Not 100% the same but there is column-marker-mode available (search the
>> emacswiki). It will highlight a given column iff the line is at least
>> that long.
> FWIW, column-marker.el is pretty cool but it pales by comparison to the
> approach used in Eclipse. The Eclipse solution is barely noticeable
> whereas the Emacs highlighting solution is very much in your face. If truth
> be told I like the merged notion of having multiple such column indicators
> that can be tailored by width and face. I have a strong hunch they will
> need to be implemented at the C level. I wonder how to do that ... and if
> this is an itch I want to scratch right about now ...
All the Elisp-level approaches are just hacks. You might be able to get
reasonably far at the Elisp level, depending on your tolerance to pain.
But one question remains: for what is this meant? If it's for
`fill-column', then there's a problem with variable-width fonts since
in that case fill-column has a variable pixel position.
Personally, I use a much simpler solution: I use my right window border
as "vertical column". It has worked for as long as I remember (even
under xterm) and it saves screen real estate.
Stefan
next prev parent reply other threads:[~2008-06-20 14:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-19 7:58 Another neat Eclipse'ism Paul Michael Reilly
2008-06-19 9:15 ` David Hansen
2008-06-19 15:27 ` Drew Adams
2008-06-20 14:11 ` Paul Michael Reilly
2008-06-20 14:41 ` Stefan Monnier [this message]
2008-06-21 11:32 ` Paul Michael Reilly
2008-06-21 11:44 ` Lennart Borgman (gmail)
2008-06-21 18:22 ` Stefan Monnier
2008-06-20 16:44 ` Drew Adams
2008-06-21 11:36 ` Paul Michael Reilly
2008-06-21 12:32 ` Lennart Borgman (gmail)
2008-06-21 16:03 ` Drew Adams
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvfxr89nrw.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=pmr@pajato.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.