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.bugs Subject: bug#43218: EWW handles default answer incorrectly when changing a select Date: Mon, 07 Sep 2020 00:56:08 +0200 Message-ID: <87eenebjlj.fsf@gnus.org> References: <86ft7wuoq0.fsf@hypra-xx> <878sdn22sf.fsf@gnus.org> <87imcrunvr.fsf@gnus.org> <87tuwaesn3.fsf@gnus.org> <627f040f-2c8f-4a5a-807d-5b4ec0237a03@default> <87k0x6erz5.fsf@gnus.org> <87imcqbjwe.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="23884"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 43218@debbugs.gnu.org, Nicolas Graner To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 07 00:57:09 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kF3av-00067I-7K for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Sep 2020 00:57:09 +0200 Original-Received: from localhost ([::1]:59190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kF3au-0006ns-4F for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Sep 2020 18:57:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kF3ao-0006nl-GE for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2020 18:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kF3ao-00061l-7L for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2020 18:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kF3ao-0007Wu-5x for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2020 18:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Sep 2020 22:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43218 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 43218-submit@debbugs.gnu.org id=B43218.159943298028897 (code B ref 43218); Sun, 06 Sep 2020 22:57:02 +0000 Original-Received: (at 43218) by debbugs.gnu.org; 6 Sep 2020 22:56:20 +0000 Original-Received: from localhost ([127.0.0.1]:47380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kF3a8-0007W1-0t for submit@debbugs.gnu.org; Sun, 06 Sep 2020 18:56:20 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:49704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kF3a6-0007Vo-Cq for 43218@debbugs.gnu.org; Sun, 06 Sep 2020 18:56:18 -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:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tdJdWmB5ElQBrNr+ft0lL9TkK2DTx7ft1NKzS9SWxtE=; b=CllDLuM+k7OzcnFl02evLssjw1 yfdti/aFKNZ7lktSBWlfQtg1a963ION89HB1yJSRN+96mwX+Q1VAW/uqifgHIGxcAr/FSn/n47Tg/ cR0/Ipgm79GOWOOhY4kygDVGamTR3H3N1DwLpjeWyEV6csh3VuJ06fD/oBceAh9XHoeg=; 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 1kF3Zx-0006tj-HH; Mon, 07 Sep 2020 00:56:12 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEX68/N5XoksK1ey oa83KUX///8iHz3tAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+QJBhYtDrZDZrMAAAGCSURBVDjLlZRh koMwCIXteIGS5AALcgBt9gAb5P5nWkjsJNr2R5mpE/2E9yCx0/R13BDihrAiQECEn99gC9jW6UZh fwhkxaBcwl9SIVW4TzNs9xzjankAtn60xfq99qRHJFXTh6BaQEvswEKI5Vju8wjcj5MCaT9lqLI/ LlbxCjyKlA8APmSog9FVEWBqzs+AJScEbjkHYBF7gDktWyUQDiBYAbD1bhOQLo7ems3dHLH7Cs/O RZosQZBay0rZDERdQ5Qs1IGExUvZy1R/fmEqdYhNg/wtZn+Z2nz37KCZp0AkRMfYY28QIdlhsC2R JLoMwEcEwUzYaEp0wAMArlt1aDxBqBnILxrUSrmXMaNuEOnJFbeTENyw6lXDWmcfSh3baWuFnsED 4HaRDuru1R2s1TqgOuc2xlOpquU3XcJuHPAo+wyzW6v7Gk+gZdQUDBhGQN3OkLM00P0MgPWd+HJ0 /g7kc8AG2cafr9/wbOcW7ARv1z+AGQvaV8LpBayQ45YjrP9oH72+r/+J8AAAACV0RVh0ZGF0ZTpj cmVhdGUAMjAyMC0wOS0wNlQyMjo0NToxMyswMDowMKvOQegAAAAldEVYdGRhdGU6bW9kaWZ5ADIw MjAtMDktMDZUMjI6NDU6MTMrMDA6MDDak/lUAAAAAElFTkSuQmCC X-Now-Playing: New Fast Automatic Daffodils's _Pigeonhole_: "Partial" In-Reply-To: <87imcqbjwe.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 07 Sep 2020 00:49:37 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:187399 Archived-At: Lars Ingebrigtsen writes: > Does this sound familiar to anybody? I can grep around to see if > there's any more, I guess... Well, there's a bunch of faces and at least one other property: (while md (funcall update-score start (car md)) (add-face-text-property start (pop md) 'completions-common-part nil str) (setq start (pop md))) (funcall update-score len len) (add-face-text-property start end 'completions-common-part nil str) (if (> (length str) pos) (add-face-text-property pos (1+ pos) 'completions-first-difference nil str)) (unless (zerop (length str)) (put-text-property 0 1 'completion-score (/ score-numerator (* len (1+ score-denominator)) 1.0) str))) We actually don't seem to have a remove-face-text-property? But perhaps is fine nixing out the face property as long as the other properties survive. (completion-score should be removed too, of course.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no