unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
Cc: 45318@debbugs.gnu.org, Richard Stallman <rms@gnu.org>
Subject: bug#45318: 28.0.50; mark-paragraph
Date: Mon, 04 Jan 2021 10:19:40 +0100	[thread overview]
Message-ID: <871rf16our.fsf@gnus.org> (raw)
In-Reply-To: <86pn2lk637.fsf@duenenhof-wilhelm.de> (H. Dieter Wilhelm's message of "Sun, 03 Jan 2021 23:29:00 +0100")

[-- Attachment #1: Type: text/plain, Size: 775 bytes --]

"H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de> writes:

> But I would like to extend this solution for the following case: (and
> (eobp) (bolp)).  The current implementation of M-h is doing nothing (for
> positive arguments) because - formally - the cursor sits in an "empty"
> paragraph and there are no further paragraphs below.
>
> But in this situation applying M-h clearly shows the user's intention to
> mark the paragraph above the cursor (and possibly further ones above
> when typing M-hhhh).
>
> What is your opinion?

I'm not quite sure I follow you, but either with the proposed patch, or
what I take to be your suggestion here, `mark-paragraph' works quite
differently here than in Emacs 27, and we should get the previous
behaviour back.

With this buffer:


[-- Attachment #2: Type: image/png, Size: 3462 bytes --]

[-- Attachment #3: Type: text/plain, Size: 58 bytes --]


calling (mark-paragraph nil) gives me this in Emacs 27:


[-- Attachment #4: Type: image/png, Size: 3576 bytes --]

[-- Attachment #5: Type: text/plain, Size: 187 bytes --]


I.e., it selects the previous paragraph, even if you're at the end of
the buffer.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

  reply	other threads:[~2021-01-04  9:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-19  5:11 bug#45318: 28.0.50; mark-paragraph Richard Stallman
2020-12-19 16:53 ` Lars Ingebrigtsen
2021-01-03 22:29   ` H. Dieter Wilhelm
2021-01-04  9:19     ` Lars Ingebrigtsen [this message]
2021-01-05 22:27       ` H. Dieter Wilhelm
2021-01-07 12:11         ` Lars Ingebrigtsen
2021-04-04  1:01           ` Stefan Kangas
2021-10-11 12:15             ` Stefan Kangas
2021-10-16 17:33             ` H. Dieter Wilhelm

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=871rf16our.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=45318@debbugs.gnu.org \
    --cc=dieter@duenenhof-wilhelm.de \
    --cc=rms@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).