From: Emanuel Berg <moasenwood@zoho.eu>
To: help-gnu-emacs@gnu.org
Subject: Re: help-gnu-emacs Digest, Vol 198, Issue 25
Date: Wed, 08 May 2019 16:09:12 +0200 [thread overview]
Message-ID: <865zqlm41j.fsf@zoho.eu> (raw)
In-Reply-To: CAH0GyZAC+E5F3P6VqCrXkDWuZLgf_j3zS+4pHg4e9shsP8sFMA@mail.gmail.com
Budi wrote:
> How to make emacs always to show point value
> on strip/bar
The "mode line" is the Emacs term :)
> what workaround to get such if no standard
> menu exists
Put
(:eval (format "p: %d " (point)))
in `mode-line-format', with
`setq-default'. Check out [1] for how it is
done, line ~37.
However... It only works when the mode line is
updated. By all means this happens when you
type, do M-x, and many other things, but not
when you just move point around w/o scrolling
the text, for example.
So then, point will be indicated as the same as
when the mode line was last updated! You can
`force-mode-line-update', manually, or schedule
it with the idle timer, perhaps.
But know that if you do it manually, that
amounts to just having a defun that echoes
point, and then invoke that when needed.
Perhaps typing a char, and then deleting it
immediately is faster tho, as this will be
enough to get an update.
On a personal note, I would get completely
crazy (I'm getting that already typing this!)
seeing at the same time the point value
incrementing for every char I type...
Also, I think, in principle, almost always
incorrect information at times is worse than no
information at all!
HIH @ 1569!
[1] https://dataswamp.org/~incal/emacs-init/mode-line.el
--
underground experts united
http://user.it.uu.se/~embe8573
next prev parent reply other threads:[~2019-05-08 14:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.9306.1557236434.1166.help-gnu-emacs@gnu.org>
2019-05-08 11:43 ` help-gnu-emacs Digest, Vol 198, Issue 25 Budi
2019-05-08 14:09 ` Emanuel Berg [this message]
2019-05-08 14:18 ` how to show point value on strip/bar (aka modeline) [was: help-gnu-emacs Digest, Vol 198, Issue 25] tomas
2019-05-08 15:12 ` Emanuel Berg
2019-05-08 15:27 ` tomas
2019-05-08 16:06 ` Emanuel Berg
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=865zqlm41j.fsf@zoho.eu \
--to=moasenwood@zoho.eu \
--cc=help-gnu-emacs@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.
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).