(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
custom-menu-create.
(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.
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug