unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* no justify-region
@ 2006-07-11 20:35 Dan Jacobson
  2006-07-13 14:56 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2006-07-11 20:35 UTC (permalink / raw)


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

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

* Re: no justify-region
  2006-07-11 20:35 no justify-region Dan Jacobson
@ 2006-07-13 14:56 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2006-07-13 14:56 UTC (permalink / raw)


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

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

end of thread, other threads:[~2006-07-13 14:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-11 20:35 no justify-region Dan Jacobson
2006-07-13 14:56 ` Kevin Rodgers

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