unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs 23: problem with transient mark mode + menu bar
@ 2007-05-31 20:38 Malte Helmert
  0 siblings, 0 replies; only message in thread
From: Malte Helmert @ 2007-05-31 20:38 UTC (permalink / raw)
  To: bug-gnu-emacs

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?

Malte

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-31 20:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-31 20:38 Emacs 23: problem with transient mark mode + menu bar Malte Helmert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).