[Top][All Lists]

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

Emacs 23: problem with transient mark mode + menu bar

From: Malte Helmert
Subject: Emacs 23: problem with transient mark mode + menu bar
Date: Thu, 31 May 2007 22:38:10 +0200
User-agent: Thunderbird (X11/20070403)

Dear GNU Emacs developers,

first off: sorry if this is the wrong channel, as I am using a
non-standard emacs version, namely this one:
http://www.emacswiki.org/cgi-bin/wiki/XftGnuEmacs, or more precisely,
the inofficial "emacs-snapshot-gtk" package for Ubuntu Feisty Fawn
provided by Alexandre Vassalotti via the "deb http://debs.peadrop.com
feisty backports" apt-source.

I have the following easy to reproduce problem (on a KDE desktop):
1. # emacs -q -no-site-file &
2. Mark some lines in scratch buffer with mouse.
3. Click "File", then "Print Region".

This results in an error "The mark is not active now".

This seems to be due to some bad interaction of the menu bar and
transient mark mode, or something along those lines. At least I can get
this to work if I turn off transient mark mode and use "proper" marks,
or if I type "M-x print-region" rather than using the menu. Keyboard
shortcuts also work.

The problem occurs with all menu commands that use the region, not just
"print-region". For example, the menu command "Emacs-Lisp"/"Indent
Region" behaves the same way, while "M-x indent-region" works fine.

Here is a workaround:

  ((defun my-print-region () (interactive)
    (let* ((mark-even-if-inactive t)
           (from (point))
           (to (mark)))
      (ps-print-region from to)))

(Then install this in the menu.)

Is this a genuine bug? Is it already known?


reply via email to

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