unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dan Anderson <dan@mathjunkies.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Pasting from Emacs to Mozilla in Mandrake
Date: Thu, 30 Oct 2003 10:34:37 -0500	[thread overview]
Message-ID: <1067528077.6900.16.camel@Hades> (raw)
In-Reply-To: <AsRVxNRrsQo$EwGR@fdlkfadsfd.com.invalid>

	In mandrake, during installation, you should have been asked to confirm
what kind of mouse you were using.  Then you got to test it out, hit all
the buttons, and confirm it's the right configuration.  (If you choose
the wrong one the mouse cursor does weird things -- like move to the
upper right corner no matter what direction you move the mouse).

	If you want to retry the mouse configuration wizard, go under the
mandrake control center, under hardware, and click on MouseDrake.  Or,
if you are on a box without X, type # drakconf as root to bring up the
text based version of drakconf.

	If you get everything working, you are going to need to grab some LISP
for your .emacs to get the middle mouse button to scroll in emacs.  I
use:

;; BEGIN LISP
;; The following is code I got off of the net which is used to 
;; scroll the mouse wheel up or down by 2 lines.  Modify the 
;; scroll-up or scroll-down to modify the number of scrolls..

(defun sd-mousewheel-scroll-up (event)
  "Scroll window under mouse up by two lines."
  (interactive "e")
  (let ((current-window (selected-window)))
    (unwind-protect
        (progn 
          (select-window (posn-window (event-start event)))
          (scroll-up 2)) ;; change the 2 to change # scrolls
      (select-window current-window))))

(defun sd-mousewheel-scroll-down (event)
  "Scroll window under mouse down by two lines."
  (interactive "e")
  (let ((current-window (selected-window)))
    (unwind-protect
        (progn 
          (select-window (posn-window (event-start event)))
          (scroll-down 2)) ;; change the 2 to change # scrolls
      (select-window current-window))))

(global-set-key (kbd "<mouse-5>") 'sd-mousewheel-scroll-up)
(global-set-key (kbd "<mouse-4>") 'sd-mousewheel-scroll-down)

;; END LISP

I have been told that there is an easier way to do scroll ups.  Perhaps
somebody else on the list can chip in.

-Dan

  reply	other threads:[~2003-10-30 15:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-29  8:12 Pasting from Emacs to Mozilla in Mandrake Sapient Fridge
2003-10-29 11:30 ` Eli Zaretskii
2003-10-29 13:36   ` Adam Hardy
2003-10-29 14:02 ` Matt Haley
2003-10-30 13:00   ` Sapient Fridge
2003-10-29 15:55 ` Barman Brakjoller
2003-10-29 17:40   ` Eli Zaretskii
2003-10-30 12:59   ` Sapient Fridge
2003-10-30 15:34     ` Dan Anderson [this message]
     [not found]     ` <mailman.2822.1067528120.21628.help-gnu-emacs@gnu.org>
2003-10-30 16:59       ` Stefan Monnier
2003-10-29 16:16 ` Dan Anderson
2003-10-29 16:51   ` Gian Uberto Lauri
2003-10-29 16:55     ` Dan Anderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1067528077.6900.16.camel@Hades \
    --to=dan@mathjunkies.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).