VM

error message while calling fill-region to fill quoted text in reply

Asked by mere user on 2010-05-14

as suggested, a new bug report for this one...

> Good, vm-pcrisis didn't give the error. It looks like Emacs library
> fill.el might be at fault. VM has asked Emacs to fill the region
> between positions 391 and 1955. You can also probably try and do the
> same interactively. If it gives an error, then you should file a bug
> report with Emacs.

> Cheers,
> Uday

Hi Uday, I finally looked at this some more. I saved the email text into a text file, and called (fill-region a b) with a, b numbers that point to the empty lines with only ">" just before and after the main text paragraph. If I do this with a fresh emacs session called with -Q (not loading my settings) I don't get an error message. if I start vm, quit and try again outside of vm, I still don't get an error message. if I do this within vm, while replying to a message, I do get this error message. If I do this outside of vm, but after a reply in which I get the error message, I still do get this error message. I wonder if this has to do with some interference between vm-filling and emacs fill-region? some vm settings that stay in effect even after I quit vm? can you reproduce this error message? just to be clear, here is a typical text that leads to the error message:

 > Xxxxx Xxxx, Xxx, xxx Xxxxy,
 >
 >
 >
 > X fxw xxxxxxxx xxvx xxxx xxxy xxxx'x gxxxg xx xxx gxxxxxxx fxxxx
 > xxxp bxcxxxx xxxy'xx bx wxxkxxg xx xxxxx fxxxx yxxx xympxxxxm
 > xxxkx. X'x xxkx xx xxmxxx xxx xxxxx G1x xbxxx xxxx, xvxx xf xxx
 > xxxxx xxx xxxxxxxvx. Xx yxx xxxxk xx wxxxx bx xxfx xx xxxxmx xxx
 > xxxkx wxxx bx xxxxxx Mxxxxy & Xxxxxxy Xxpx. 13 & 14 xx Xxpx 20 &
 > 21? Xxxxx wxxx bx ~10 xxxkx xx xx wxxxx xxkxxy bx xvxx xwx xxyx.
 >
 >
 >
 > XB:
 >

and the error message and traceback are:

Debugger entered--Lisp error: (error "Invalid search bound (wrong side of point)")
  re-search-forward("\\([.?!][]\"'”)}]*\\($\\|[ ]$\\| \\|[ ][ ]\\)\\|[。.?!]+\\)[ \n]*$" #<marker (moves after insertion) at 820 in reply to xx> t)
  fill-delete-newlines(823 #<marker (moves after insertion) at 820 in reply to xx> left nil nil)
  fill-region-as-paragraph(820 811 nil nil)
  fill-region(393 812)
  vm-fill-paragraphs-containing-long-lines(window-width 309 1193)
  vm-fill-long-lines-in-reply()

Question information

Language:
English Edit question
Status:
Solved
For:
VM Edit question
Assignee:
No assignee Edit question
Last query:
2010-06-17
Last reply:
2010-07-03
Uday Reddy (reddyuday) said : #1

Patch for fill.el communicated to the Gnu Emacs team.

Uday Reddy (reddyuday) said : #2
Uday Reddy (reddyuday) said : #3

This involves installing a fix for Gnu Emacs fill.el library, which cannot be fixed inside VM.

Tim Cross (tcross) said : #4

Appears Uday was correct and this was a bug in emacs' fill.el. His patch was applied on 2010-05-24 and I cannot reproduce the error using your example in latest emacs 24.0.50 using latest VM dev trunk.

mere user (emacs-user) said : #5

yes, I think they may have applied Uday's patch to the 24.0.xx version now. thanks!

----------------------------------------
> To: <email address hidden>
> From: <email address hidden>
> Subject: Re: [Question #113483]: error message while calling fill-region to fill quoted text in reply
> Date: Mon, 14 Jun 2010 03:01:02 +0000
>
> Your question #113483 on VM changed:
> https://answers.launchpad.net/vm/+question/113483
>
> Status: Open => Answered
>
> Tim Cross proposed the following answer:
> Appears Uday was correct and this was a bug in emacs' fill.el. His patch
> was applied on 2010-05-24 and I cannot reproduce the error using your
> example in latest emacs 24.0.50 using latest VM dev trunk.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/vm/+question/113483/+confirm?answer_id=3
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/vm/+question/113483
>
> You received this question notification because you are a direct
> subscriber of the question.

_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2

Launchpad Janitor (janitor) said : #6

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Uday Reddy (reddyuday) said : #7

Hmm. Some naughty janitor that is!