unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Jean Louis <bugs@gnu.support>
Cc: 60515@debbugs.gnu.org
Subject: bug#60515: 30.0.50; set-justification-center joins lines before centering
Date: Tue, 03 Jan 2023 14:40:46 +0100	[thread overview]
Message-ID: <87a62zenxd.fsf@igel.home> (raw)
In-Reply-To: <86wn636g3x.fsf@protected.rcdrun.com> (Jean Louis's message of "Tue, 03 Jan 2023 13:56:50 +0300")

On Jan 03 2023, Jean Louis wrote:

> When I have following lines in text-mode:
>
> MY FIRST LINE
> SECOND LINE
> THIRD LINE
>
> and do M-x set-justification-center
>
> I get following unexpected circumstance:
>
> 		 MY FIRST LINE SECOND LINE THIRD LINE
>
> Description of the function does not say it is going to join lines. My
> expectation is not that it should join lines but center lines only.
>
> Same problem is happening with set-justification-right

All justification functions work on full paragraphs.

> And me as user I need to make double lines, do the command on each of
> the line, cumbersome work, and then join lines manually to avoid the
> above happening.

If you want to center a single line, use center-line.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





  reply	other threads:[~2023-01-03 13:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-03 10:56 bug#60515: 30.0.50; set-justification-center joins lines before centering Jean Louis
2023-01-03 13:40 ` Andreas Schwab [this message]
2023-01-03 13:54   ` Jean Louis
2023-01-03 13:48 ` Eli Zaretskii
2023-01-04 18:07   ` Jean Louis

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=87a62zenxd.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=60515@debbugs.gnu.org \
    --cc=bugs@gnu.support \
    /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).