From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Shift selection using interactive spec Date: Tue, 18 Mar 2008 17:44:31 +0100 Message-ID: <47DFF16F.7090007@gmail.com> 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=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205858720 8137 80.91.229.12 (18 Mar 2008 16:45:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2008 16:45:20 +0000 (UTC) Cc: martin rudalics , Chong Yidong , emacs-devel@gnu.org, "Kim F. Storm" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 18 17:45:44 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 1JbewP-0004UQ-D7 for ged-emacs-devel@m.gmane.org; Tue, 18 Mar 2008 17:45:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jbevp-00066T-VG for ged-emacs-devel@m.gmane.org; Tue, 18 Mar 2008 12:44:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jbevl-00065p-Dh for emacs-devel@gnu.org; Tue, 18 Mar 2008 12:44:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jbevj-00065V-Qh for emacs-devel@gnu.org; Tue, 18 Mar 2008 12:44:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jbevj-00065S-Kk for emacs-devel@gnu.org; Tue, 18 Mar 2008 12:44:51 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jbevi-0003EA-Pl for emacs-devel@gnu.org; Tue, 18 Mar 2008 12:44:51 -0400 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:59697 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Jbevc-0006Eo-5X; Tue, 18 Mar 2008 17:44:45 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 080318-0, 2008-03-18), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1Jbevc-0006Eo-5X. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1Jbevc-0006Eo-5X d9de189a460e5040bc21057a7408f3d1 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:92901 Archived-At: Stefan Monnier wrote: >>> 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. Is not the order of the functions in pre/post important?