Bug#577630: emacs23: Please document how to disable gpm-mouse-mode

2010-04-13 Thread Santiago Vila
Package: emacs23
Version: 23.1+1-5
Severity: minor

I was going to report that gpm does not work but found it was already
reported in Bug#558019. Ok, I just have to disable gpm-mouse-mode.

However: How I do that in a way that emacs22 does not give an error?

I use lenny and squeze using the same /home and put this in .emacs:

(gpm-mouse-mode 0)

This worked for emacs23 in squeeze, but now when using lenny, emacs22
complains in this way:

  An error has occurred while loading `/home/sanvila/.emacs':

  Symbol's function definition is void: gpm-mouse-mode

Would be possible to write a README.Debian which documents the issues
with gpm and having a good recipe to disable gpm-mouse-mode, please?

Thanks.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#577630: emacs23: Please document how to disable gpm-mouse-mode

2010-04-13 Thread Sven Joachim
On 2010-04-13 11:13 +0200, Santiago Vila wrote:

 Package: emacs23
 Version: 23.1+1-5
 Severity: minor

 I was going to report that gpm does not work but found it was already
 reported in Bug#558019. Ok, I just have to disable gpm-mouse-mode.

 However: How I do that in a way that emacs22 does not give an error?

 I use lenny and squeze using the same /home and put this in .emacs:

 (gpm-mouse-mode 0)

 This worked for emacs23 in squeeze, but now when using lenny, emacs22
 complains in this way:

   An error has occurred while loading `/home/sanvila/.emacs':

   Symbol's function definition is void: gpm-mouse-mode

You need to check whether it is defined first, like this:

(when (fboundp 'gpm-mouse-mode)
  (gpm-mouse-mode 0))

 Would be possible to write a README.Debian which documents the issues
 with gpm and having a good recipe to disable gpm-mouse-mode, please?

The recommended way is to customize the gpm-mouse-mode variable, like
any other user setting.  This interface exists since Emacs 20.

Sven



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#577630: emacs23: Please document how to disable gpm-mouse-mode

2010-04-13 Thread Santiago Vila
  (gpm-mouse-mode 0)
 
  This worked for emacs23 in squeeze, but now when using lenny, emacs22
  complains in this way:
 
An error has occurred while loading `/home/sanvila/.emacs':
 
Symbol's function definition is void: gpm-mouse-mode
 
 You need to check whether it is defined first, like this:
 
 (when (fboundp 'gpm-mouse-mode)
   (gpm-mouse-mode 0))

Thanks!

  Would be possible to write a README.Debian which documents the issues
  with gpm and having a good recipe to disable gpm-mouse-mode, please?
 
 The recommended way is to customize the gpm-mouse-mode variable, like
 any other user setting.  This interface exists since Emacs 20.

Yes, but it is in emacs23 when the problem with gpm arises, hence my
suggestion to document this somewhere in /usr/share/doc/emacs23.

People not familiar with lisp and emacs internals (like myself) would
be lost and will think this is a bug instead of a feature which may be
disabled. In fact, I've had to search in the archived bug reports for
emacs23 to know that I had to disable gpm-mouse-mode. The experience
for the user is that cut and paste just stops working.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org