From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Text property searching Date: Mon, 16 Apr 2018 22:28:56 +0100 Message-ID: References: <87lgdo5bb3.fsf@mouse.gnus.org> <87bmeivoht.fsf@mouse.gnus.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11487292f873620569fde91e" X-Trace: blaine.gmane.org 1523914048 14611 195.159.176.226 (16 Apr 2018 21:27:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Apr 2018 21:27:28 +0000 (UTC) Cc: emacs-devel To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 16 23:27:24 2018 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 1f8Bel-0003iS-UI for ged-emacs-devel@m.gmane.org; Mon, 16 Apr 2018 23:27:24 +0200 Original-Received: from localhost ([::1]:45182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8Bgs-0003MO-Ei for ged-emacs-devel@m.gmane.org; Mon, 16 Apr 2018 17:29:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8Bgg-0003Kt-8o for emacs-devel@gnu.org; Mon, 16 Apr 2018 17:29:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8Bgb-0002vp-8i for emacs-devel@gnu.org; Mon, 16 Apr 2018 17:29:22 -0400 Original-Received: from mail-qk0-x22a.google.com ([2607:f8b0:400d:c09::22a]:42774) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8Bgb-0002ve-2W for emacs-devel@gnu.org; Mon, 16 Apr 2018 17:29:17 -0400 Original-Received: by mail-qk0-x22a.google.com with SMTP id d193so6827585qke.9 for ; Mon, 16 Apr 2018 14:29:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=E7U8i8VyBEO2QY7IR/XqSuQbvUUZdMe6Yowh/xf84l4=; b=aAu7NK9tPXc+5rINaYCFRnUOORXAy+kvBtSCsT/tmSdhFagN1m29tBlbFHG5kZVBNI vHwE8/+vQFQDxivZcD/AsMa37c3riOlOZujSx39mHzj2OTGrz6AGMhULkHAE7vldwTjd DBuXu6kYBy+/Lj5+biIB/4HAIFWU2bm3QQEuaS3iPjARKr5ka7CuAteq+l1aLCoNS0GP +koERJpfoNvbyZB+/OuGSN15oJC0wPiRXDhEyh/CerDHR8OWraQFIyV4Z4cPYqLHMA07 r1tfGie7COhXzRGY6XcQyN7v8hzhuY4PUplZvYBoWzW1YVSyqOjlEEgIwNERYOpDvThI yL5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=E7U8i8VyBEO2QY7IR/XqSuQbvUUZdMe6Yowh/xf84l4=; b=BiJxIdXNh5xa8XD6Mu17GPKWpeYKvcbHOqlPkNgN7j5gxxFQnm7995Yjwq/ddtLIdz Vb6hcVDOOC/uJFx/K2ylj18Hm/E89QdyyjI3oWUDrw1y4xGXjZ9AjPAGXWdDzju512vY MOkKWnXEeEFqBEKKY0TiGM9GUcizK/sYWeG9AoiTG+cjQmyePuxyo/8gVtMR49q35FYd MJfO8xhH201dc7MhQSgUO+FoPzq5f65Ps1l/iT3kIJEoXnLmSyUHct7tioSb1IQXoM1D Lur3z/EP0K7VP2FJ3WdxTRrrwFSwNFTMvghj6qMxCC0Qkf1Zcms0lmIl51uaPkrQNI9+ WHAA== X-Gm-Message-State: ALQs6tBkxDjsvYYEbd660Jp7KTxORinIA8ZkuE8aVVEWHkd5EL5RkwaC a8t0c/zc7qrXJh4O+3obMADLhVCVEP3enH4r00nL7Wyc X-Google-Smtp-Source: AIpwx4+RQ03fGsSB1V32YhCkEB8EJ1OoZitA3fbON2UYlUwdBXYSS+5t7x6hq9Kgrw/juYqBkdIj5v9I/nJZvd/WeV4= X-Received: by 10.55.105.195 with SMTP id e186mr19285385qkc.322.1523914156567; Mon, 16 Apr 2018 14:29:16 -0700 (PDT) Original-Received: by 10.12.148.200 with HTTP; Mon, 16 Apr 2018 14:28:56 -0700 (PDT) In-Reply-To: <87bmeivoht.fsf@mouse.gnus.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::22a 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:224688 Archived-At: --001a11487292f873620569fde91e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 16, 2018 at 10:18 PM, Lars Ingebrigtsen wrote: > Can now be rewritten as: > > (defun shr-next-link () > "Skip to the next link." > (interactive) > (if (not (text-property-search-forward 'shr-url nil nil t)) > (message "No next link") > (message "%s" (get-text-property (point) 'help-echo)))) > > :-) > Looks super. BTW how would you go about on using this on software that is not in Emacs core? Would you consider making this a separate package for (GNU|M)ELPA that other packages can include as a dependency? Jo=C3=A3o --001a11487292f873620569fde91e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable