From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: search-invisible and friends Date: Wed, 09 Sep 2020 14:39:37 +0200 Message-ID: <87zh5z9l9y.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15755"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 09 14:40:18 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFzOb-00040N-LH for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Sep 2020 14:40:17 +0200 Original-Received: from localhost ([::1]:33028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFzOa-0001CF-Mx for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Sep 2020 08:40:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFzO5-0000lY-Ee for emacs-devel@gnu.org; Wed, 09 Sep 2020 08:39:45 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:43454) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFzO3-0007W2-Sr for emacs-devel@gnu.org; Wed, 09 Sep 2020 08:39:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=9xy831jIK7xAbpB+2NAELNXjAp7KppSCdCPvH1+Js6A=; b=os9yMubhAsAFwh4xMZAmYqgvoO KG6z5d6Dn8sfmSDtWe0wQjz9QEM/lxz2r/CMLoEMtx6UebIpXXaiWL2vCzXMbW7Fuz+CAoHPmFGDX HFmEYa1pDgDcaV+gX0oTXJhz35CzLsA3BUNsXp4JP4oDKQ6ZDedteNmg2GQi4DE1bkm0=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFzNz-0002aj-41 for emacs-devel@gnu.org; Wed, 09 Sep 2020 14:39:41 +0200 X-Now-Playing: Jay Glass Dubs's _Epitaph_: "To My Benefitors" Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254864 Archived-At: I have a mode where I plop in base64 image data, but hide it all under a 'display property to display the image itself. It's annoying that `C-s' lands in the middle of the base64 image data, so I wondered whether there was any way to control that, and search invisible seemed like the nearest thing. But it only works for text that's, well, invisible, and not text that's hidden by a display property. Simple test: (insert (propertize "foo" 'display "bar")) (setq search-invisible nil) C-r foo will then land in that string. Does Emacs have this functionality somewhere? If not, I think it should, and perhaps (or perhaps not?) by piggy-backing on the search-invisible variable. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no