[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: comment region in fortran mode

From: Richard Stallman
Subject: Re: comment region in fortran mode
Date: Sun, 03 Sep 2006 11:17:25 -0400

    (defvar fortran-mode-map
      ...   ; define-key bindings
      (easy-menu-define fortran-menu map "Menu for Fortran mode."
          '("Fortran Comment" :filter
            (lambda (&rest junk) (custom-menu-create 'fortran-comment))))

    When this item is in the mode map, selecting any menu item seems to
    deactivate the mark, if it was defined by dragging with the mouse. Eg:

Is it possible that custom-menu-create does something to deactivate
the mark?  You could put code inside that lambda expression
to record the value of mark-active both before and after calling

(lambda (&rest junk)
  (let ((foo mark-active))
    (prog1 (custom-menu-create 'fortran-comment)
    (push (list foo mark-active) foo-list))))

Then you will find out if custom-menu-create indeed does this.
If it does, you can figure out why.

Please respond when you've made some progress.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]