From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Narendra Joshi Newsgroups: gmane.emacs.help Subject: Showing text in a buffer only when point is in a region Date: Sat, 28 Jan 2017 18:03:57 +0530 Message-ID: <87mveb4b4a.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485606659 3219 195.159.176.226 (28 Jan 2017 12:30:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 28 Jan 2017 12:30:59 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 28 13:30:54 2017 Return-path: Envelope-to: geh-help-gnu-emacs@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 1cXS9G-0006Zv-E5 for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Jan 2017 13:30:30 +0100 Original-Received: from localhost ([::1]:51492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXS9H-0005sy-3K for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Jan 2017 07:30:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXS8l-0005sZ-6J for help-gnu-emacs@gnu.org; Sat, 28 Jan 2017 07:29:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXS8i-0006kQ-0D for help-gnu-emacs@gnu.org; Sat, 28 Jan 2017 07:29:59 -0500 Original-Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:34222) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cXS8h-0006kC-Qu for help-gnu-emacs@gnu.org; Sat, 28 Jan 2017 07:29:55 -0500 Original-Received: by mail-pg0-x243.google.com with SMTP id 3so9472295pgj.1 for ; Sat, 28 Jan 2017 04:29:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version; bh=q2ruBILFPNcrWzA8Uso8oTK4F7bAm8SmvEnrKsyEjlE=; b=WChsXOEdTxGdkKZ4Fmjlcek1UdqQrG5lA4MpewyPk5XtjlMXSeQilDxh5GHqq98+Q+ xz1zETF1pGZfUOM88jUU1ZmJjQUGLyolQSL0X0JLwA8OZbGmNI/rqsxbTMywXAxRdK+s 7bS4dHfF5nTZvvKcUnPKHEyvNXRWmMHtwpvxCcw+UC8ob5bjazGrmmTiR33nBA8Sp/VA CSz03wQQHvEvTvZa+n0Uv268Ovr9mf5PSSabCXmOZMy8+i+l89LflUp1o7qKNgEr2YcD 0rp3kbt8rkGMCZrbzTwfp7AFngLZ/f3cwBESTzDimR8oOd+/hFCcoQ5xkX5nIVIJH80L 0Z9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=q2ruBILFPNcrWzA8Uso8oTK4F7bAm8SmvEnrKsyEjlE=; b=k7eJ/KtUhqT2qU/szFbbn2XJ8aIGknu5z11tLwYErDNvZTrI4jJQkkPba9mHjccINd 6UyLr18c4KcVvjH9zGV4mr2EInTUu8X63iU9+ZTqEPgN4q6s5ai/6m+Co3qr/pi/Lw0e QOcrFqzMLrvqXi6N4O68sSeX6yEuzpr8RTCyJbEkAQpTr7mpI+AKmqGTi3RtmT9d934y +v6l6n+xlOGXVQD/J9b9vSRPTs7CINNDPnTVFOEg69YqjHle5j4rLREHGzQicc8XF9/n quPSWBUa1JC7K99JBi7/FOygb3ysm+5m0wyvPTHW/f2eBQ3XuegzWoOY4OM8rwWdnvyo L+pw== X-Gm-Message-State: AIkVDXIMVpP8chGqcnzbj5pz1jBvgorG2q9Hz3TN0iXvx45RdRhkD2Dkh/WDCzV//k/mPA== X-Received: by 10.84.217.7 with SMTP id o7mr19234232pli.166.1485606591969; Sat, 28 Jan 2017 04:29:51 -0800 (PST) Original-Received: from vicarie ([182.70.100.223]) by smtp.gmail.com with ESMTPSA id r78sm18717299pfl.63.2017.01.28.04.29.50 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 28 Jan 2017 04:29:51 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c05::243 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112179 Archived-At: Hi, I want to be able to keep some text visible in a buffer only when the point is in a region. The moment the point leaves that region, I would like to make the text invisible. How can I do this? I don't want to run a timer which checks if the point is in the region or outside. Best, Narendra Joshi