From nk@viteno.net  Thu Nov 14 11:28:17 2002
Return-Path: <nk@viteno.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0BD7A37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Nov 2002 11:28:17 -0800 (PST)
Received: from mailout08.sul.t-online.com (mailout08.sul.t-online.com [194.25.134.20])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1593443E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Nov 2002 11:28:16 -0800 (PST)
	(envelope-from nk@viteno.net)
Received: from fwd08.sul.t-online.de 
	by mailout08.sul.t-online.com with smtp 
	id 18CPex-0005yA-05; Thu, 14 Nov 2002 20:28:15 +0100
Received: from viteno.dyns.net (520054833674-0001@[217.230.0.216]) by fmrl08.sul.t-online.com
	with esmtp id 18CPef-0pWC6iC; Thu, 14 Nov 2002 20:27:57 +0100
Received: from nk by viteno.dyns.net with local (Exim 4.10)
	id 18CPeZ-0000Bv-00; Thu, 14 Nov 2002 20:27:51 +0100
Message-Id: <E18CPeZ-0000Bv-00@viteno.dyns.net>
Date: Thu, 14 Nov 2002 20:27:51 +0100
From: Norbert Koch <nk@viteno.net>
Reply-To: Norbert Koch <nk@viteno.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: rendhalver@xemacs.org (Rendhalver [Peter Brown])
Subject: [PATCH] FAQ entry about XEmacs's wheel-mouse support
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         45295
>Category:       docs
>Synopsis:       [PATCH] FAQ entry about XEmacs's wheel-mouse support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jesusr@freebsd.org
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 14 11:30:01 PST 2002
>Closed-Date:    Fri Nov 29 22:08:55 PST 2002
>Last-Modified:  Fri Nov 29 22:08:55 PST 2002
>Originator:     Norbert Koch
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD viteno.dyns.net 4.7-STABLE FreeBSD 4.7-STABLE #17: Tue Oct 29 23:03:29 CET 2002 root@viteno.dyns.net:/usr/local/obj/usr/local/src/sys/VITENO i386

	
>Description:
The wheel-mouse support from within XEmacs, described in

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/x.html

can be achieved easier, see below.  This has been tested in 21.4 
(current gamma) as well as in 21.1 and 21.5 by Peter.

Now, this is going to be fun, as the HTML tags might get stripped by GNATS.
If the patch doesn't apply cleanly, let me know :-)

Cheers,
norbert.


>How-To-Repeat:
	
>Fix:

--- /tmp/x.html.orig	Thu Nov 14 20:10:08 2002
+++ /tmp/x.html	Thu Nov 14 20:10:08 2002
@@ -504,15 +504,8 @@
                   Imwheel</b></p>
 <pre class="PROGRAMLISTING">
     ;;; For imwheel
-    (setq imwheel-scroll-interval 3)
-    (defun imwheel-scroll-down-some-lines ()
-      (interactive)
-      (scroll-down imwheel-scroll-interval))
-    (defun imwheel-scroll-up-some-lines ()
-      (interactive)
-      (scroll-up imwheel-scroll-interval))
-    (define-key global-map [(control meta \))] 'imwheel-scroll-up-some-lines)
-    (define-key global-map [(control meta \()] 'imwheel-scroll-down-some-lines)
+    (mwheel-install)
+    (setq mwheel-follow-mouse t)
     ;;; end imwheel section
 </pre>
                 </div>

>Release-Note:
>Audit-Trail:

From: Norbert Koch <viteno@t-online.de>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: freebsd-doc@FreeBSD.org
Subject: Re: docs/45295: [PATCH] FAQ entry about XEmacs's wheel-mouse
 support
Date: Wed, 20 Nov 2002 21:00:06 +0100

 FreeBSD-gnats-submit@FreeBSD.org writes:
 
 > Thank you very much for your problem report.
 > It has the internal identification `docs/45295'.
 > The individual assigned to look at your
 > report is: freebsd-doc. 
 
 Uhm, sorry for not sending in the correct patch the first time.
 Here's a patch against en_US.ISO8859-1/books/faq/book.sgml.
 
 I've also changed Xemacs -> XEmacs, since this is the official way of
 writing (I'll send in a patch for other sources in a different PR).
 
 norbert.
  
 
 --- /usr/doc/en_US.ISO8859-1/books/faq/book.sgml	Sat Nov 16 19:18:50 2002
 +++ book.sgml	Wed Nov 20 20:47:34 2002
 @@ -7634,7 +7634,7 @@
                  (<emphasis>optional</emphasis>)</para>
  
                <para>If you use <application>emacs</application> or
 -                <application>Xemacs</application>, then you need to
 +                <application>XEmacs</application>, then you need to
                  add a small section to your
                  <filename>~/.emacs</filename> file.  For
                  <application>emacs</application>, add the
 @@ -7657,24 +7657,17 @@
  ;;; end imwheel section</programlisting>
                </example>
  
 -              <para>For <application>Xemacs</application>, add the
 +              <para>For <application>XEmacs</application>, add the
                  following to your <filename>~/.emacs</filename> file
                  instead:</para>
  
                <example>
 -                <title><application>Xemacs</application> Configuration
 +                <title><application>XEmacs</application> Configuration
                    for <application>Imwheel</application></title>
  
                  <programlisting>;;; For imwheel
 -(setq imwheel-scroll-interval 3)
 -(defun imwheel-scroll-down-some-lines ()
 -  (interactive)
 -  (scroll-down imwheel-scroll-interval))
 -(defun imwheel-scroll-up-some-lines ()
 -  (interactive)
 -  (scroll-up imwheel-scroll-interval))
 -(define-key global-map [(control meta \))] 'imwheel-scroll-up-some-lines)
 -(define-key global-map [(control meta \()] 'imwheel-scroll-down-some-lines)
 +(mwheel-install)
 +(setq mwheel-follow-mouse t)
  ;;; end imwheel section</programlisting>
                </example>
              </listitem>
State-Changed-From-To: open->closed 
State-Changed-By: jesusr 
State-Changed-When: Fri Nov 29 22:07:38 PST 2002 
State-Changed-Why:  
Commited, thanks!. 


Responsible-Changed-From-To: freebsd-doc->jesusr@freebsd.org 
Responsible-Changed-By: jesusr 
Responsible-Changed-When: Fri Nov 29 22:07:38 PST 2002 
Responsible-Changed-Why:  
Commited, thanks!. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45295 
>Unformatted:
