unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#35036: 27.0.50; delete-indentation removes all blank lines
@ 2019-03-28 21:19 Alex Branham
  2019-03-29  8:56 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Branham @ 2019-03-28 21:19 UTC (permalink / raw)
  To: 35036

After 8fa94a1ecc18a41ca2738f438b3fbc817c9fdc82, delete-indentation
removes all blank lines so that a buffer:

one


two|


with | as point, M-x delete-indentation results in:

one two

whereas before it would result in:

one

two

This seems contrary to the documentation, which states, "Join this line
to previous and fix up whitespace at join." and also the NEWS entry,
"When there's no active region, the command works on the current and the
previous or the next line, as before."

I'm happy to submit a patch fixing this, but should it change the
documentation to match the new behavior, or fix the code so that the
behavior is unchanged?

Also, is the patch in Bug#35021 going to get applied soonish? If so I'll
hold off in order not to create conflicts...

Thanks,
Alex





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#35036: 27.0.50; delete-indentation removes all blank lines
  2019-03-28 21:19 bug#35036: 27.0.50; delete-indentation removes all blank lines Alex Branham
@ 2019-03-29  8:56 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2019-03-29  8:56 UTC (permalink / raw)
  To: Alex Branham; +Cc: 35036

merge 35036 35021
thanks

> From: Alex Branham <alex.branham@gmail.com>
> Date: Thu, 28 Mar 2019 16:19:18 -0500
> 
> After 8fa94a1ecc18a41ca2738f438b3fbc817c9fdc82, delete-indentation
> removes all blank lines so that a buffer:
> 
> one
> 
> 
> two|
> 
> 
> with | as point, M-x delete-indentation results in:
> 
> one two
> 
> whereas before it would result in:
> 
> one
> 
> two
> 
> This seems contrary to the documentation, which states, "Join this line
> to previous and fix up whitespace at join." and also the NEWS entry,
> "When there's no active region, the command works on the current and the
> previous or the next line, as before."

But you did have a region, albeit not active, right?  Because if mark
wasn't set, you'd have an error message.

So I believe this is a duplicate of sorts of bug#35021, and should be
fixed together with that bug.

> Also, is the patch in Bug#35021 going to get applied soonish? If so I'll
> hold off in order not to create conflicts...

Soonish, yes.  Stay tuned.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-29  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-28 21:19 bug#35036: 27.0.50; delete-indentation removes all blank lines Alex Branham
2019-03-29  8:56 ` Eli Zaretskii

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).