Gnus development mailing list
 help / color / mirror / Atom feed
From: Emanuel Berg <moasenwood@zoho.eu>
To: ding@gnus.org
Subject: Re: message-beginning-of-line behaves a bit strange
Date: Wed, 26 Jan 2022 22:27:15 +0100	[thread overview]
Message-ID: <874k5qyyq4.fsf@zoho.eu> (raw)
In-Reply-To: <87mtjimc2k.fsf@mat.ucm.es>

Uwe Brauer wrote:

> Which is not good. Is there any possibility to have
> message-beginning-of-line always to jump to
>       Subject:
>               ^

This

Subject: An offer you can't refuse ...
         ^

is what happens I think? That's not what you want?

I have this, what you ask for happens by default, but if point
didn't change, the user meant something else so it moves to
the beginning of the line instead, disregarding the
`message-mode' and header context.

(defun message-bol ()
  (interactive)
  (let ((beg (point))
        (end (progn (message-beginning-of-line) (point))) )
    (when (= beg end)
      (forward-line 0) )))

-- 
underground experts united
https://dataswamp.org/~incal



  reply	other threads:[~2022-01-26 21:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-26 21:17 Uwe Brauer
2022-01-26 21:27 ` Emanuel Berg [this message]
2022-01-27  4:53   ` Emanuel Berg
2022-01-27  7:47   ` Uwe Brauer
2022-01-27 11:29     ` Emanuel Berg
2022-01-28  7:58       ` Uwe Brauer
2022-01-26 21:30 ` Eric Abrahamsen
2022-01-27  7:48   ` Uwe Brauer
2022-01-27  8:31     ` Robert Pluim
2022-01-27 11:38     ` Emanuel Berg
2022-01-27 16:31       ` Eric Abrahamsen
2022-01-28  8:00       ` Uwe Brauer

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=874k5qyyq4.fsf@zoho.eu \
    --to=moasenwood@zoho.eu \
    --cc=ding@gnus.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 NNTP newsgroup(s).