🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87416

justifying changes text properties

#87416
From: boris
Date: Fri, 23 Sep 1994 14:19
59 lines
2751 bytes
In GNU Emacs 19.27.4 (sparc-sun-sunos4.1.3, X toolkit) of Thu Sep 22 1994 on mink.cs.rochester.edu

justify-current-line inserts spaces without inheriting the text
properties of the surrounding text.

Test case: type a few lines of text in the *scratch* buffer of an
emacs -q.  Set the 'face text-property of it to 'underline.  C-u M-q.
There will be breaks in the underlining.

Here's a change log entry and patch.

Fri Sep 23 10:08:09 1994  Boris Goldowsky  <boris@cs.rochester.edu>

	* fill.el (justify-current-line): Do insertion with text-prop
	inheritance. 

*** fill.el.orig	Fri Sep 23 10:03:55 1994
--- fill.el	Fri Sep 23 10:04:34 1994
***************
*** 295,301 ****
        (goto-char beg)
        (while (re-search-forward "[.?!][])\"']*\n" nil t)
  	(forward-char -1)
! 	(insert ? ))
        (goto-char (point-max))
        ;; Note that the buffer bounds start after the indentation,
        ;; so the columns counted by INDENT don't appear in (current-column).
--- 295,301 ----
        (goto-char beg)
        (while (re-search-forward "[.?!][])\"']*\n" nil t)
  	(forward-char -1)
! 	(insert-and-inherit ? ))
        (goto-char (point-max))
        ;; Note that the buffer bounds start after the indentation,
        ;; so the columns counted by INDENT don't appear in (current-column).
***************
*** 310,319 ****
  		     (search-backward " ")))
  		(skip-chars-backward " ")
  		(setq nmove (1- nmove))))
! 	    (insert " ")
  	    (skip-chars-backward " ")
  	    (setq ncols (1- ncols)))))))
    nil)
  
  (defun fill-nonuniform-paragraphs (min max &optional justifyp mailp)
    "Fill paragraphs within the region, allowing varying indentation within each.
--- 310,320 ----
  		     (search-backward " ")))
  		(skip-chars-backward " ")
  		(setq nmove (1- nmove))))
! 	    (insert-and-inherit " ")
  	    (skip-chars-backward " ")
  	    (setq ncols (1- ncols)))))))
    nil)
+ 
  
  (defun fill-nonuniform-paragraphs (min max &optional justifyp mailp)
    "Fill paragraphs within the region, allowing varying indentation within each.
Technical Details
Message-ID: <199409231410.KAA01531@raccoon.cs.rochester.edu>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!cs.rochester.edu!boris

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,4442ac09be1fca09,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-23 07:45:38 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!cs.rochester.edu!boris
From: boris@cs.rochester.edu
Newsgroups: gnu.emacs.bug
Subject: justifying changes text properties
Date: 23 Sep 1994 10:19:49 -0400
Organization: GNUs Not Usenet
Lines: 60
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <199409231410.KAA01531@raccoon.cs.rochester.edu>