On Tue, Jul 18, 2006 at 05:41:08PM +0200, Ralf Stubner wrote: > Hi, > > I have run into the same problem with C-cC-c no longer working when > using emacs-snapshot. With the help of Romain Francoise I think I have > found the problem. In post.el it says: > > (defun post-body-says-attach () > "Check if attach appears in the body." > (post-goto-body) > > ;; Aargh it's annoying that how-many returns a string, > ;; "13 occurences" instead of a number, 13. > (let ((total-attach (string-to-int (how-many post-attachment-regexp)))) > ;; And this mess is just to catch the unlikely false alarm of > ;; "attach" being in the signature, but not in the body. > (if (> total-attach 0) > (progn (post-goto-signature) > (> total-attach (string-to-int (how-many > post-attachment-regexp))))))) > > With Emacs 22 'how-many' now does what the post.el author wants, ie it > returns an integer. Removing 'string-to-int' from the above code seems > to cure the problem. Of course, this is not the right solution since it > would break on Emacs <22, but I leave that for somebody with better Lisp > knowledge ... > > cheerio > ralf >
Thanks Ralf--this fix has cleared it up for me. I don't use 21.4 anymore, so it's not an issue here. I noticed while byte-compiling there were a lot of warnings about obsolete functions--most notably, 'insert-string' needs to be replaced by 'insert.' Like the bug I'm reporting though, it doesn't seem to be something easily fixed without including a lot of ugly conditionals revolving around (emacs-version). I now understand why this 21-->22 transition is taking so long--the people doing the work on this deserve a medal! -- ============================================= Cameron Horsburgh http://web.netcall.com.au/horsburgh ============================================= -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]