emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: comment region in fortran mode


From: Glenn Morris
Subject: Re: comment region in fortran mode
Date: Mon, 28 Aug 2006 21:13:35 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

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?





reply via email to

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