From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Shift selection using interactive spec Date: Tue, 18 Mar 2008 12:36:49 -0400 Message-ID: References: <87k5k69p92.fsf@stupidchicken.com> <200803140408.m2E47hPU014494@sallyv1.ics.uci.edu> <87prtxpekk.fsf@kfs-lx.rd.rdm> <87abl11ilo.fsf@stupidchicken.com> <874pb9koyw.fsf@stupidchicken.com> <87od9gzqv9.fsf@stupidchicken.com> <87bq5gytbi.fsf@stupidchicken.com> <8763vndi0r.fsf@kfs-lx.rd.rdm> <87hcf6ratt.fsf@stupidchicken.com> <878x0if9ul.fsf@stupidchicken.com> <87od9e9gnx.fsf@stupidchicken.com> <873aqp5mzs.fsf@stupidchicken.com> <47DEEF89.2040602@gmx.at> <47DF73EF.5050201@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205858297 6455 80.91.229.12 (18 Mar 2008 16:38:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2008 16:38:17 +0000 (UTC) Cc: Chong Yidong , "Kim F. Storm" , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 18 17:38:43 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jbepg-0001iI-AL for ged-emacs-devel@m.gmane.org; Tue, 18 Mar 2008 17:38:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jbep6-0000ik-Ne for ged-emacs-devel@m.gmane.org; Tue, 18 Mar 2008 12:38:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jbep1-0000eR-By for emacs-devel@gnu.org; Tue, 18 Mar 2008 12:37:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jbeoz-0000b7-LB for emacs-devel@gnu.org; Tue, 18 Mar 2008 12:37:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jbeoz-0000au-DY for emacs-devel@gnu.org; Tue, 18 Mar 2008 12:37:53 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jbeoy-0001Qa-RV for emacs-devel@gnu.org; Tue, 18 Mar 2008 12:37:53 -0400 Original-Received: from ceviche.home (vpn-132-204-232-21.acd.umontreal.ca [132.204.232.21]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m2IGboor018351 for ; Tue, 18 Mar 2008 12:37:51 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id EE1C4B41C7; Tue, 18 Mar 2008 12:36:49 -0400 (EDT) In-Reply-To: <47DF73EF.5050201@gmx.at> (martin rudalics's message of "Tue, 18 Mar 2008 08:49:03 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: -1.2 X-NAI-Spam-Rules: 2 Rules triggered BAYES_01=-1.2, HAS_X_HELO=0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:92898 Archived-At: >> It might even be hacked in Elisp at least for a proof of concept, by >> detecting when point is moved because of scrolling, then setting >> cursor-type to nil, recording the original point, deactivating the mark, >> and then in some pre-command-hook reactivate the mark (if it was >> activated before) and set point back to its original value (thus causing >> the scroll-back). > That's what I tried with > http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg01892.html Oh, yes, now I remember it. Thanks. That's neat. BTW, when some things don't properly run pre/post-command-hook, I think it should generally be treated as a bug (even if the fix is not easy). E.g. the mouse-drag problem. If you have any ideas of changes we may want to make so as to make such a package easier to write, please submit them. Stefan