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: Sun, 12 Feb 2017 10:36:43 -0700 Message-ID: <87mvdr1fbo.fsf@tromey.com> References: <87o9ynarz3.fsf@tromey.com> <877f4z6i8n.fsf@tromey.com> <87poipzr0l.fsf@tromey.com> <87inog4oga.fsf@tromey.com> <87k28w2hm4.fsf@tromey.com> <58A043A3.6060206@gmx.at> <83fujj2yau.fsf@gnu.org> <87vasf1i9z.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486921032 1048 195.159.176.226 (12 Feb 2017 17:37:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Feb 2017 17:37:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (gnu/linux) Cc: martin rudalics , Eli Zaretskii , Tom Tromey , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 12 18:37:06 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 1ccy5B-0008Fm-Mx for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2017 18:37:06 +0100 Original-Received: from localhost ([::1]:52899 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccy5H-0000YA-AK for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2017 12:37:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccy5B-0000Xt-2e for emacs-devel@gnu.org; Sun, 12 Feb 2017 12:37:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccy57-0002KT-VX for emacs-devel@gnu.org; Sun, 12 Feb 2017 12:37:05 -0500 Original-Received: from gproxy7-pub.mail.unifiedlayer.com ([70.40.196.235]:46667) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ccy57-0002K8-Ky for emacs-devel@gnu.org; Sun, 12 Feb 2017 12:37:01 -0500 Original-Received: (qmail 1315 invoked by uid 0); 12 Feb 2017 17:36:52 -0000 Original-Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy7.mail.unifiedlayer.com with SMTP; 12 Feb 2017 17:36:52 -0000 Original-Received: from box522.bluehost.com ([74.220.219.122]) by CMOut01 with id jtck1u00X2f2jeq01tcnzS; Sun, 12 Feb 2017 10:36:52 -0700 X-Authority-Analysis: v=2.1 cv=U+QBU4bu 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=Z_ks0OL5jZR33FW2ByEA: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=Ka2k3LccVUgTdrBkSpH2qqGX7Wt2KP8OukBaYTPJDcE=; b=vI8TAnE80SOGLtCTkgO3KWEty6 4ZNsh831LfgxWCgtqCpjgF5rhxT+jNQ/Zr7mAhQF8/zAz2eNfvq+/0XUuCT2Rqlzzh7YTkRG5YhX/ vgCy53Ep68q0mFz1YzpxgW8PO; Original-Received: from 174-16-128-54.hlrn.qwest.net ([174.16.128.54]:57282 helo=bapiya) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1ccy4q-0003QR-DE; Sun, 12 Feb 2017 10:36:44 -0700 X-Attribution: Tom In-Reply-To: (Stefan Monnier's message of "Sun, 12 Feb 2017 12:14:28 -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: 1ccy4q-0003QR-DE X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 174-16-128-54.hlrn.qwest.net (bapiya) [174.16.128.54]:57282 X-Source-Auth: tom+tromey.com X-Email-Count: 4 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 70.40.196.235 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:212297 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: Stefan> I think what you want is to run commands in a context that depends on Stefan> point. In that case I think that pre-command-hook sounds like the Stefan> better option (and no, it's definitely not particularly expensive: it's Stefan> run less often than the cursor-sensor--detect used internally by Stefan> cursor-sensor-mode). Ok, thanks. I will do that. Stefan> As to whether cursor-sensor-functions would be more or less useful if it Stefan> were defined to react on movement of the "buffer cursor" rather than the Stefan> "window cursor". You might be right. I truly don't know. It occurred to me just today that maybe my use of cursor-sensor-functions would be incoherent when using multiple terminals anyhow -- since which one would win? Tom