From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: html, css, and js modes working together Date: Sun, 12 Feb 2017 02:02:37 -0500 Message-ID: References: <87o9ynarz3.fsf@tromey.com> <877f4z6i8n.fsf@tromey.com> <87poipzr0l.fsf@tromey.com> <87inog4oga.fsf@tromey.com> <87k28w2hm4.fsf@tromey.com> <87d1eo2aw5.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486883001 14783 195.159.176.226 (12 Feb 2017 07:03:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Feb 2017 07:03:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 12 08:03:16 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 1ccoBn-0003Pv-CE for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2017 08:03:15 +0100 Original-Received: from localhost ([::1]:50967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccoBt-0007yU-0V for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2017 02:03:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccoBH-0007yJ-2v for emacs-devel@gnu.org; Sun, 12 Feb 2017 02:02:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccoBD-0005bG-VR for emacs-devel@gnu.org; Sun, 12 Feb 2017 02:02:43 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:22067) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ccoBD-0005Yn-OR for emacs-devel@gnu.org; Sun, 12 Feb 2017 02:02:39 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AiKQAu3EVY//7rSC1dGgEBAQECAQEBAQgBAQEBgzgBAQEBAR+EW4VUnAIOGAGWXoYcBAICghFEEAECAQEBAQEBAWIohGkBBAFWIwULCzQSFBgNJIh6CK0Ui0QBAQgCASSLGYopBY98imqMbYYzh3qGOpIPNiB4Ew6FcyCJLQEBAQ X-IPAS-Result: A0AiKQAu3EVY//7rSC1dGgEBAQECAQEBAQgBAQEBgzgBAQEBAR+EW4VUnAIOGAGWXoYcBAICghFEEAECAQEBAQEBAWIohGkBBAFWIwULCzQSFBgNJIh6CK0Ui0QBAQgCASSLGYopBY98imqMbYYzh3qGOpIPNiB4Ew6FcyCJLQEBAQ X-IronPort-AV: E=Sophos;i="5.33,749,1477972800"; d="scan'208";a="292681813" Original-Received: from 45-72-235-254.cpe.teksavvy.com (HELO fmsmemgm.homelinux.net) ([45.72.235.254]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Feb 2017 02:02:37 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 37552AE10D; Sun, 12 Feb 2017 02:02:37 -0500 (EST) In-Reply-To: <87d1eo2aw5.fsf@tromey.com> (Tom Tromey's message of "Sat, 11 Feb 2017 23:14:50 -0700") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:212264 Archived-At: > Sorry, maybe it wasn't clear, but the quoted paragraph above comes from > the elisp manual. (info "(elisp) Window Point") [...] > That's what that section of the manual is about too. Hmm... sorry, I obviously spend too much time with too many windows and tend to forget that the "usual" way to use Emacs is a single window, and `switch-to-buffer` whereas for me it means "go over to the other window that shows the other buffer". But to my defense: you tricked me. You started with: >> It seems to me that switching windows should call >> cursor-sensor-functions. What do you think? and then ended with: >> 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. Notice how in the first case you switch windows and in the second you switch buffers? Very different cases (and yes, cursor-sensor-functions should probably be called in some cases when switching buffer in a window). Stefan