indent-new-comment-line misbehaviour?

Uwe Brauer oub at mat.ucm.es
Tue Jan 22 09:00:44 EST 2008


>>>>> "Stephen" == Stephen J Turnbull <stephen at xemacs.org> writes:

   > First things first.  A patch to 21.5 may fail to apply to 21.4, but
   > you can probably get a copy of 21.5 version of that function from
   > http://hg.debian.org/hg/xemacs/xemacs, and put the defun in init.el,
   > where it will override the built-in.

   > Second, I see that this comes from something called "newcomment.el",
   > so it may not work at all without the rest of the new comment stuff.
   > You may copy that whole file to ~/.xemacs and put

   >     (load (expand-file-name "~/.xemacs/newcomment.elc"))

Ok I used now bytecomp-runtime.el and the newcomment.el
indent-new-comment-line works now fine in *LaTeX* files but not in
lisp files

So the _new_ behavior is now:


I added a comment via `lisp-indent-for-comment'
(defun textmarker-region (start end)  ;this is the comment
  (interactive "r")
  (xref-source-region start end)
  (xref-target-region start end))

however then indent-new-comment-line put the cursor

(defun textmarker-region (start end)  ;this is the comment
;;^
  (interactive "r")
  (xref-source-region start end)
  (xref-target-region start end))

INSTEAD of 
(defun textmarker-region (start end)  ;this is the comment
                                      ;^
  (interactive "r")
  (xref-source-region start end)
  (xref-target-region start end))

At least a ;; is added but the cursor is not in the right position.
Tested with 21.4.19 Mule.

Uwe 

PS it seems that I post faster via gmane than via the mailing
list. Can somebody confirm this?



More information about the XEmacs-Beta mailing list