all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: no justify-region
Date: Thu, 13 Jul 2006 08:56:07 -0600	[thread overview]
Message-ID: <e95mvi$ebm$1@sea.gmane.org> (raw)
In-Reply-To: <E1G0Owq-0005CI-Fw@jidanni1>

Dan Jacobson wrote:
> "M-x apropos justify" shows there is unjustify-region but no
> justify-region.
> 
> Wait, Info says "A numeric argument to `M-q' causes it to "justify"
> the text as well as filling it."
> 
> Well, OK, but many users will just do "M-x justi TAB" and find only
> justify-current-line and assume the bigwigs never said anything much
> justifiable.

(defun justify-region (from to &optional justify nosqueeze to-eop)
   "Fill and justify each of the paragraphs in the region between FROM 
and TO.
A prefix arg means to read JUSTIFY (default: full) interactively.

Optional arguments JUSTIFY, NOSQUEEZE, and TO-EOP are as for `fill-region'."
   (interactive (progn
		 (barf-if-buffer-read-only)
		 (list (region-beginning) (region-end)
		       (if current-prefix-arg
			   (intern (completing-read "Justify (default: full): "
						    '("full"
						      "left"
						      "right"
						      "center")
						    nil t nil nil "full"))))))
   (fill-region from to (or justify 'full) nosqueeze to-eop))


-- 
Kevin

      reply	other threads:[~2006-07-13 14:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-11 20:35 no justify-region Dan Jacobson
2006-07-13 14:56 ` Kevin Rodgers [this message]

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='e95mvi$ebm$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.