Hezi Gildor wrote:
> emacs -Q file.f
>
> I drag the mouse to highlight a region
>
> mouse-1-> fortran->comment region
>
> "error message: mark is not active now"
>
> if I do set-mark using ctrl-@ or such, then use arrows to highlight a
> region, then use the mouse to do comment region, it works fine.
The cause seems to be the use of (custom-menu-create 'fortran) in
fortran-mode-map. Because the fortran customization group has
subgroups, this results in something like:
(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:
M-x fortran-mode
click and drag with mouse-1 to highlight a region
Tools->Spell Checking->Spell-Check region
"The mark is not active now"
I don't see why this should be - can anyone help?
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug