unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Simple function works in ver. 21.3 but not in 22.0
@ 2007-03-22  4:00 B. T. Raven
  2007-03-22  5:54 ` Barry Margolin
  0 siblings, 1 reply; 6+ messages in thread
From: B. T. Raven @ 2007-03-22  4:00 UTC (permalink / raw)
  To: help-gnu-emacs


Does any of you know why this should not work in version 22.0 (w32)?:

(defun unfill-paragraph () ;; bound to C-x M-q
   "Do the opposite of fill-paragraph; stuff all lines in the current 
paragraph into a single long line."
   (interactive)
   (let ((fill-column 90002000))
     (fill-paragraph nil)))

C-h k C-x M-q does show that the function is bound to that key sequence, with:

(global-set-key "\C-x\M-q" 'unfill-paragraph)

The only other settings that I can think might affect this (under 
custom-set-variables) are:

  '(sentence-end "[.?!][]\"')}]*\\($\\| $\\|	\\| \\)[ 	
]*")
  '(sentence-end-double-space nil)

It looks like fill-paragraph is ignoring the fill-column value in the let 
form. Any ideas?

Ed.

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

* Re: Simple function works in ver. 21.3 but not in 22.0
  2007-03-22  4:00 Simple function works in ver. 21.3 but not in 22.0 B. T. Raven
@ 2007-03-22  5:54 ` Barry Margolin
  2007-03-22  9:54   ` Tassilo Horn
  0 siblings, 1 reply; 6+ messages in thread
From: Barry Margolin @ 2007-03-22  5:54 UTC (permalink / raw)
  To: help-gnu-emacs

In article <a371f$4601ff56$49f11e1$7064@DIALUPUSA.NET>,
 "B. T. Raven" <ecinmn@alcisp.com> wrote:

> Does any of you know why this should not work in version 22.0 (w32)?:
> 
> (defun unfill-paragraph () ;; bound to C-x M-q
>    "Do the opposite of fill-paragraph; stuff all lines in the current 
> paragraph into a single long line."
>    (interactive)
>    (let ((fill-column 90002000))
>      (fill-paragraph nil)))

Works for me in 22.0.50.

> 
> C-h k C-x M-q does show that the function is bound to that key sequence, with:
> 
> (global-set-key "\C-x\M-q" 'unfill-paragraph)
> 
> The only other settings that I can think might affect this (under 
> custom-set-variables) are:
> 
>   '(sentence-end "[.?!][]\"')}]*\\($\\| $\\|	\\| \\)[ 	
> ]*")
>   '(sentence-end-double-space nil)
> 
> It looks like fill-paragraph is ignoring the fill-column value in the let 
> form. Any ideas?
> 
> Ed.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***

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

* Re: Simple function works in ver. 21.3 but not in 22.0
  2007-03-22  5:54 ` Barry Margolin
@ 2007-03-22  9:54   ` Tassilo Horn
  2007-03-22 15:44     ` Lennart Borgman (gmail)
       [not found]     ` <mailman.1265.1174578410.7795.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Tassilo Horn @ 2007-03-22  9:54 UTC (permalink / raw)
  To: help-gnu-emacs

Barry Margolin <barmar@alum.mit.edu> writes:

Hi,

>> Does any of you know why this should not work in version 22.0 (w32)?:
>> 
>> (defun unfill-paragraph () ;; bound to C-x M-q
>>    "Do the opposite of fill-paragraph; stuff all lines in the current 
>> paragraph into a single long line."
>>    (interactive)
>>    (let ((fill-column 90002000))
>>      (fill-paragraph nil)))
>
> Works for me in 22.0.50.

Works for me with 22.0.96 on GNU/Linux, too.

Bye,
Tassilo
-- 
       People say that if you play Microsoft CD's backwards, you
        hear satanic things, but that's nothing, because if you
               play them forwards, they install Windows.

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

* Re: Simple function works in ver. 21.3 but not in 22.0
  2007-03-22  9:54   ` Tassilo Horn
@ 2007-03-22 15:44     ` Lennart Borgman (gmail)
       [not found]     ` <mailman.1265.1174578410.7795.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Lennart Borgman (gmail) @ 2007-03-22 15:44 UTC (permalink / raw)
  Cc: help-gnu-emacs

Tassilo Horn wrote:
> Barry Margolin <barmar@alum.mit.edu> writes:
> 
> Hi,
> 
>>> Does any of you know why this should not work in version 22.0 (w32)?:
>>>
>>> (defun unfill-paragraph () ;; bound to C-x M-q
>>>    "Do the opposite of fill-paragraph; stuff all lines in the current 
>>> paragraph into a single long line."
>>>    (interactive)
>>>    (let ((fill-column 90002000))
>>>      (fill-paragraph nil)))
>> Works for me in 22.0.50.
> 
> Works for me with 22.0.96 on GNU/Linux, too.


Works for me too on w32 with

   GNU Emacs 22.0.96.1 (i386-mingw-nt5.1.2600) of 2007-03-21 (patched)

Did you try starting with

   emacs -Q

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

* Re: Simple function works in ver. 21.3 but not in 22.0
       [not found]     ` <mailman.1265.1174578410.7795.help-gnu-emacs@gnu.org>
@ 2007-03-22 16:34       ` B. T. Raven
  2007-03-22 21:55         ` B. T. Raven
  0 siblings, 1 reply; 6+ messages in thread
From: B. T. Raven @ 2007-03-22 16:34 UTC (permalink / raw)
  To: help-gnu-emacs

Lennart Borgman (gmail) wrote:
> Tassilo Horn wrote:
>> Barry Margolin <barmar@alum.mit.edu> writes:
>>
>> Hi,
>>
>>>> Does any of you know why this should not work in version 22.0 (w32)?:
>>>>
>>>> (defun unfill-paragraph () ;; bound to C-x M-q
>>>>    "Do the opposite of fill-paragraph; stuff all lines in the 
>>>> current paragraph into a single long line."
>>>>    (interactive)
>>>>    (let ((fill-column 90002000))
>>>>      (fill-paragraph nil)))
>>> Works for me in 22.0.50.
>>
>> Works for me with 22.0.96 on GNU/Linux, too.
> 
> 
> Works for me too on w32 with
> 
>   GNU Emacs 22.0.96.1 (i386-mingw-nt5.1.2600) of 2007-03-21 (patched)
> 
> Did you try starting with
> 
>   emacs -Q
> 
> 
> 
> 

Thanks, Barry, Tassilo, and Lennart. No, emacs -Q didn't work either. I 
copied just the keybinding and function forms into *scratch* and evaluated 
them. C-h k etc. report them as loaded but they don't work. I noticed that 
the text ";; This buffer is for notes..." could be toggled to 
filled-unfilled with M-q and C-x M-q but not other text. Maybe it has to do 
with fontification or someething. Turnig of global fontification didn't help 
either though.

Build is:
This is GNU Emacs 22.0.93.1 (i386-mingw-windows98.2222)of 2007-01-26 on NEUTRINO

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

* Re: Simple function works in ver. 21.3 but not in 22.0
  2007-03-22 16:34       ` B. T. Raven
@ 2007-03-22 21:55         ` B. T. Raven
  0 siblings, 0 replies; 6+ messages in thread
From: B. T. Raven @ 2007-03-22 21:55 UTC (permalink / raw)
  To: help-gnu-emacs

B. T. Raven wrote:
> Lennart Borgman (gmail) wrote:
>> Tassilo Horn wrote:
>>> Barry Margolin <barmar@alum.mit.edu> writes:
>>>
>>> Hi,
>>>
>>>>> Does any of you know why this should not work in version 22.0 (w32)?:
>>>>>
>>>>> (defun unfill-paragraph () ;; bound to C-x M-q
>>>>>    "Do the opposite of fill-paragraph; stuff all lines in the 
>>>>> current paragraph into a single long line."
>>>>>    (interactive)
>>>>>    (let ((fill-column 90002000))
>>>>>      (fill-paragraph nil)))
>>>> Works for me in 22.0.50.
>>>
>>> Works for me with 22.0.96 on GNU/Linux, too.
>>
>>
>> Works for me too on w32 with
>>
>>   GNU Emacs 22.0.96.1 (i386-mingw-nt5.1.2600) of 2007-03-21 (patched)
>>
>> Did you try starting with
>>
>>   emacs -Q
>>
>>
>>
>>
> 
> Thanks, Barry, Tassilo, and Lennart. No, emacs -Q didn't work either. I 
> copied just the keybinding and function forms into *scratch* and 
> evaluated them. C-h k etc. report them as loaded but they don't work. I 
> noticed that the text ";; This buffer is for notes..." could be toggled 
> to filled-unfilled with M-q and C-x M-q but not other text. Maybe it has 
> to do with fontification or someething. Turnig of global fontification 
> didn't help either though.
> 
> Build is:
> This is GNU Emacs 22.0.93.1 (i386-mingw-windows98.2222)of 2007-01-26 on 
> NEUTRINO
> 

Sorry. False alarm. The fact that it worked on a comment in lisp interactive 
mode was a clue. I use text mode more than 95% of the time so I didn't stop 
to think how useless my function would be when I tested on randomly typed 
strings in the context of *scratch*. As soon as I did M-x text-mode in 
*scratch* the function worked of course, even on the lisp code.

Ed

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

end of thread, other threads:[~2007-03-22 21:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-22  4:00 Simple function works in ver. 21.3 but not in 22.0 B. T. Raven
2007-03-22  5:54 ` Barry Margolin
2007-03-22  9:54   ` Tassilo Horn
2007-03-22 15:44     ` Lennart Borgman (gmail)
     [not found]     ` <mailman.1265.1174578410.7795.help-gnu-emacs@gnu.org>
2007-03-22 16:34       ` B. T. Raven
2007-03-22 21:55         ` B. T. Raven

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