From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steven Degutis Newsgroups: gmane.emacs.help Subject: Make highlight-symbol.el perfect? Date: Thu, 11 Apr 2013 09:25:51 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6dce40496a7c04da169009 X-Trace: ger.gmane.org 1365690417 20524 80.91.229.3 (11 Apr 2013 14:26:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Apr 2013 14:26:57 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 11 16:27:01 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UQISq-0003VU-SV for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Apr 2013 16:27:00 +0200 Original-Received: from localhost ([::1]:39822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQISq-0000yU-FE for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Apr 2013 10:27:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQIRn-0008T5-Nc for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 10:25:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQIRk-0005Bt-Sb for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 10:25:55 -0400 Original-Received: from mail-da0-x236.google.com ([2607:f8b0:400e:c00::236]:50093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQIRk-0005Bi-J7 for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 10:25:52 -0400 Original-Received: by mail-da0-f54.google.com with SMTP id p1so701320dad.41 for ; Thu, 11 Apr 2013 07:25:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=5dS+bidA0XQueHi0fXdRNGCv0THdylxalySc//fOhRk=; b=FO8LE8IWK4RpZ+ZJJsw4qW8feN/dTS8KFKa6sWLQ8tc8WlohWP6QmlsGpSyVZfrGHS kaBoPGI7hhoobqrlXpD5Yk0HOQf6lML1Y8iCZjpv14CVMB1GOkTCS6jOfe5Aq5Dfh66f OB6L3k3+6qx14Qrpa2sdCLGHgMwARvNaC/4W9lOz+/vatEhh1uic7qJA68xLwgBQQxhL Kk/LtMYcoIbPrDQ58MmVtU6ZlkOSiUuQTiUNNbInTSrCoIVx2x5FSUuYO3JsvBTt1Iz6 4KQpHcuaT817vNBHE4JtUWf34rqz/PrMoxcTyDQE6F0ko9nrpFnZOkwdu1y1aQq7VFVe n32Q== X-Received: by 10.68.113.194 with SMTP id ja2mr9181133pbb.65.1365690351706; Thu, 11 Apr 2013 07:25:51 -0700 (PDT) Original-Received: by 10.70.24.197 with HTTP; Thu, 11 Apr 2013 07:25:51 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c00::236 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90103 Archived-At: --047d7b6dce40496a7c04da169009 Content-Type: text/plain; charset=ISO-8859-1 It's a great package, but it does something silly: it changes the actual face on matched regions of the buffer. It should just add overlays. The code should get simpler, including removing the overlays when you un-highlight matches, because that's just `(mapcat #'delete-overlay existing-overlays)`. Does anyone want to take the challenge and make this package perfect? I'm willing to volunteer my time to do it, except I have absolutely no idea what I'm doing, I don't know elisp, I'm a terrible programmer, and I'm almost guaranteed to just make things worse instead of better. -Steven --047d7b6dce40496a7c04da169009 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
It's a great package, but it does something silly: it = changes the actual face on matched regions of the buffer. It should just ad= d overlays. The code should get simpler, including removing the overlays wh= en you un-highlight matches, because that's just `(mapcat #'delete-= overlay existing-overlays)`.

Does anyone want to take the challenge and make this package= perfect? I'm willing to volunteer my time to do it, except I have abso= lutely no idea what I'm doing, I don't know elisp, I'm a terrib= le programmer, and I'm almost guaranteed to just make things worse inst= ead of better.

-Steven
--047d7b6dce40496a7c04da169009--