[OS X Emacs] Print and word wrap mode

Robert P. Goldman rpgoldman at sift.info
Sun Jun 7 22:59:24 EDT 2015


On 6/7/15 Jun 7 -5:49 PM, Elliott Roper wrote:
> 
>> On 7 Jun 2015, at 22:28, Robert P. Goldman <rpgoldman at sift.info> wrote:
>>
>> On 6/7/15 Jun 7 -12:58 PM, Iliya Lefterov wrote:
>>> may not be the right answer… try:
>>>
>>> select each paragraph, and then unfill the region.
>>>
>>> i know it sounds counter productive, but this is one area with a huge
>>> difference between Emacs and Aquamacs…
>>
>> Yes, this seems pretty bad.  E.g., this is a draft email, so doing the
>> above renders it unusable in a normal, wrapping email client.
>>
>> Note that it's not that I need to unfill the region -- I need to *fill*
>> the region (or at least do the operation that emacs call "fill-region").
>>
>> Yes, of course, I can undo the filling afterwards, to get back to my
>> flowed paragraphs, but this seems pretty unsatisfactory.
>>
>> I can probably come up with a piece of emacs-lisp that does the required
>> filling and unfilling...
>>
>> Also unsatisfactory:  neither the printing side of the equation nor the
>> editing side of the equation seem to provide information about text
>> width.  so it's not clear what line length I should choose for
>> set-fill-column in order to get something that will look good on the
>> printer.  The function string-width does not seem to take variable-width
>> fonts into account.  The documentation for char-width suggests that it
>> should, but using it interactively suggests not: (char-width ?o) and
>> (char-width ?l) both returned 1 in a buffer that uses a variable-width font.
>>
>> Any suggestions would be much appreciated.
> 
> 
> I seem to remember a very old version of Aquamacs that misbehaved on word-wrap, but with the current v3.2a I cannot reproduce your problem. In a text buffer, with nothing but  Word Wrap ticked in Options → Line Wrapping, printed output wraps as you would expect. Short lines are short and long enough lines wrap nicely where the printer and Page set-up would have it - nothing like the Aquamacs buffer's current wrapping of course.
> 
> Depending on the history of your Aquamacs buffer, you might want to do a one-time unfill to remove any lurking line breaks. Then leave it unfilled forever.
> 
> There is an outside chance you printer driver has gone insane. What happens when you hit ⌘P and select PDF → Save as PDF?
> 

I have Aquamacs 3.2, not 3.2a.

I noticed this opening the PDF in Preview: I see in Preview text lines
running off the right hand side of the page.  So perhaps my printer
driver *has* gone insane!

Tomorrow I will try to make a simple Lorem Ipsum type example and post
it to the list....

thanks,
r




More information about the MacOSX-Emacs mailing list