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: [Emacs-diffs] master fd8f724: * src/xdisp.c (overlay_arrows_changed_p): Fix last change. Date: Sun, 05 Mar 2017 21:53:32 -0500 Message-ID: References: <83y3wqnvol.fsf@gnu.org> <83tw7enq58.fsf@gnu.org> <83r32inna5.fsf@gnu.org> <83bmtlnd4l.fsf@gnu.org> <83mvd3mzus.fsf@gnu.org> <83fuivmnz3.fsf@gnu.org> <83a892n5k8.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488768851 12470 195.159.176.226 (6 Mar 2017 02:54:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2017 02:54:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 06 03:54:07 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 1ckimh-0002UE-HB for ged-emacs-devel@m.gmane.org; Mon, 06 Mar 2017 03:54:03 +0100 Original-Received: from localhost ([::1]:41346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckimn-00025z-Jx for ged-emacs-devel@m.gmane.org; Sun, 05 Mar 2017 21:54:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckimH-00025j-Oj for emacs-devel@gnu.org; Sun, 05 Mar 2017 21:53:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckimH-0000ZX-1z for emacs-devel@gnu.org; Sun, 05 Mar 2017 21:53:37 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:37591) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ckimD-0000YD-3s; Sun, 05 Mar 2017 21:53:33 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DHBwBozrxY/zPujBheHAEBBAEBCgEBg1FBhDuLTpBRKQGQOoZggjODaQQCAoJlRBQBAgEBAQEBAQFrKIUWAQQBViMFCws0EhQYDSSKBwixRYp5AQEBBwIBJYs9ijkFkFWLV5xyhmBIknM2IYEDIhUILIVJgWgiikgBAQE X-IPAS-Result: A0DHBwBozrxY/zPujBheHAEBBAEBCgEBg1FBhDuLTpBRKQGQOoZggjODaQQCAoJlRBQBAgEBAQEBAQFrKIUWAQQBViMFCws0EhQYDSSKBwixRYp5AQEBBwIBJYs9ijkFkFWLV5xyhmBIknM2IYEDIhUILIVJgWgiikgBAQE X-IronPort-AV: E=Sophos;i="5.35,251,1484024400"; d="scan'208";a="294522234" Original-Received: from 24-140-238-51.cpe.teksavvy.com (HELO pastel.home) ([24.140.238.51]) by smtp.teksavvy.com with ESMTP; 05 Mar 2017 21:53:32 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 21E5164F69; Sun, 5 Mar 2017 21:53:32 -0500 (EST) In-Reply-To: <83a892n5k8.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 03 Mar 2017 10:11:03 +0200") 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:212784 Archived-At: >> > The 3 variables related to overlay-arrow whose changes need to trigger >> > redisplay of the respective buffers: overlay-arrow-position, >> > overlay-arrow-string, and overlay-arrow-bitmap. >> But that means we need to watch variable assignments, marker >> modifications, and symbol property modifications. Using overlays gets >> us all this "for free" because we already watch all overlay modifications. > Variables and markers, yes. Symbol properties: I don't see why would > we need to watch them. overlay-arrow-string and overlay-arrow-bitmap are a symbol properties. (overlay-arrow-string is *also* a variable, but overlay-arrow-bitmap isn't). > Anyway, it was just a thought. It sounds like a conceptually simpler, > even if the implementation is somewhat hairy. To me the conceptually simpler option is to use overlays (at least, when I first learned about overlay-arrows many years ago it took me a while to understand them because I expected them to be represented by special kinds of overlays). Stefan