From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: html, css, and js modes working together Date: Sat, 11 Feb 2017 20:49:39 -0700 Message-ID: <87k28w2hm4.fsf@tromey.com> References: <87o9ynarz3.fsf@tromey.com> <877f4z6i8n.fsf@tromey.com> <87poipzr0l.fsf@tromey.com> <87inog4oga.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486871434 2577 195.159.176.226 (12 Feb 2017 03:50:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Feb 2017 03:50:34 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 12 04:50:29 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cclBF-0000Oz-HL for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2017 04:50:29 +0100 Original-Received: from localhost ([::1]:50621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cclBL-00074d-93 for ged-emacs-devel@m.gmane.org; Sat, 11 Feb 2017 22:50:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cclAj-00074M-RA for emacs-devel@gnu.org; Sat, 11 Feb 2017 22:49:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cclAg-0003tq-Pm for emacs-devel@gnu.org; Sat, 11 Feb 2017 22:49:57 -0500 Original-Received: from gproxy6-pub.mail.unifiedlayer.com ([67.222.39.168]:40171) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1cclAg-0003tV-Bv for emacs-devel@gnu.org; Sat, 11 Feb 2017 22:49:54 -0500 Original-Received: (qmail 9549 invoked by uid 0); 12 Feb 2017 03:49:52 -0000 Original-Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy6.mail.unifiedlayer.com with SMTP; 12 Feb 2017 03:49:52 -0000 Original-Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id jfpl1u0072f2jeq01fpoqX; Sat, 11 Feb 2017 20:49:52 -0700 X-Authority-Analysis: v=2.1 cv=WOnsABcR c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=n2v9WMKugxEA:10 a=6cMkqDM0V6RgBsizxHcA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2d67w8F39UaOFwq99fLmSNm4qy3O4TIg5TgdH1mG6vk=; b=bxLMhYorQ2lY2UgUaW9v2w4H3F 0BsBZdy2I6YdJBUV8x6P+nREKCanouctX+mw8LjLNt5IOcrjcN5kKmwzb+YZKLKSfRQHZ8EqAzoyf ReBjSFbzZKTWfS5q25Ib8cxV4; Original-Received: from 174-16-128-54.hlrn.qwest.net ([174.16.128.54]:53190 helo=bapiya) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cclAX-0006w2-4P; Sat, 11 Feb 2017 20:49:45 -0700 X-Attribution: Tom In-Reply-To: (Stefan Monnier's message of "Sat, 11 Feb 2017 14:48:39 -0500") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box522.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 174.16.128.54 X-Exim-ID: 1cclAX-0006w2-4P X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 174-16-128-54.hlrn.qwest.net (bapiya) [174.16.128.54]:53190 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 67.222.39.168 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212260 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: >> It seems to me that switching windows should call >> cursor-sensor-functions. What do you think? Stefan> That's not the intention behind cursor-sensor-functions: as the name Stefan> implies, this functionality is bound to the notion of "cursor". Stefan> When you switch window, cursor don't move. I find this pretty surprising. I wanted to understand what the "cursor" was -- it's not an Emacs term I knew -- so I looked, and the elisp manual says: As far as the user is concerned, point is where the cursor is, and when the user switches to another buffer, the cursor jumps to the position of point in that buffer. So by that definition at least, it should be called. Or, I suppose, "cursor" should be redefined. Though what would that way be? My mental model was something like "point in the selected window". What else would make sense? Tom