unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* mouse-drag.el and automatic-hscrolling interact poorly
@ 2002-10-09 23:57 Paul Du Bois
  0 siblings, 0 replies; only message in thread
From: Paul Du Bois @ 2002-10-09 23:57 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (i386-msvc-nt5.1.2600)
 of 2002-03-19 on buffy
configured using `configure --with-msvc (12.00)'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: nil

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

;; eg

(require 'mouse-drag)
(define-key global-map [M-down-mouse-1] 'mouse-drag-drag)
(setq automatic-hscrolling t)
;; switch to an interesting buffer
(setq truncate-lines t)

;; 1. put point in the middle of a line
;; 2. do a leftward M-drag
;; 3. Notice that as the cursor approaches the left edge of the
;; screen, the hscroll resets to 0

A quick fix is to modify the (let (...) ) in mouse-drag-safe-scroll to
temporarily unset automatic-hscrolling.  I don't know whether that's a real
fix or just a workaround -- I don't understand this comment in scroll-right:

   If `automatic-hscrolling' is non-nil, the argument ARG modifies
   a lower bound for automatic scrolling, i.e. automatic scrolling
   will not scroll a window to a column less than the value returned
   by this function.

p

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

only message in thread, other threads:[~2002-10-09 23:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-09 23:57 mouse-drag.el and automatic-hscrolling interact poorly Paul Du Bois

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).