ciao(a)clip.dia.fi.upm.es wrote:
Hi Gianluca,
I believe this is fixed in the 1.13 version in SVN, since we all use emacs 22 at CLIP without problems. We are busy this week with a proposal and cannot add the 1.13 file to the public 1.10 distro until perhaps next week. Instead, I am sending you the ciao.el.body file from 1.13. Please drop it in place of the current ciao.el.body (making a backup copy) in the emacs-mode directory. Hopefully the problem should be fixed... let us know. Cheers,
Hi Manuel. I tried to replace the original ciao.el.body (from ciao 1.10#8) with yours, but nothing changed. Then, I double checked the two files, and I discovered that they are equal. I think that either you sent me the wrong file, or there is some kind of compatibility feature in the Emacs 22 at CLIP that mine hasn't.
In any case, I made some googling, and I realized the problem is due to the following piece of code in ciao.el.body:
(setq font-lock-defaults '(ciao-mode-font-lock-keywords t nil nil ;; Use all buffer refontifying... 'beginning-of-buffer (font-lock-mark-block-function . ;; Alternative: mark-paragraph ;; Use whole buffer for refontifying... (lambda () (push-mark (point-max)) (goto-char (point-min))) ))))
Here "beginning-of-buffer" is quoted. I don't know Emacs Lisp (I'm a Scheme guy) so I cannot say why, but removing the quote everything works fine, both in Emacs 22 and in Emacs 21. A similar piece of code, with same problem, appears later in the file.
I'm attaching a patch file, in case it is of any help to you or other Ciao users.
Thanks for your help!
Ciao.
--gianluca
--- ciao.el.body.orig 2008-01-14 23:20:51.000000000 +0100 +++ ciao.el.body 2008-01-14 23:28:29.000000000 +0100 @@ -3843,7 +3843,7 @@ '(ciao-mode-font-lock-keywords t nil nil ;; Use all buffer refontifying... - 'beginning-of-buffer + beginning-of-buffer (font-lock-mark-block-function . ;; Alternative: mark-paragraph ;; Use whole buffer for refontifying... @@ -3968,7 +3968,7 @@ '(ciao-inferior-font-lock-keywords t nil nil ;; Use all buffer refontifying... - 'beginning-of-buffer + beginning-of-buffer (font-lock-mark-block-function . ;; Alternative: mark-paragraph ;; Use whole buffer for refontifying...
============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------