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: Sun, 06 Sep 2020 19:12:32 +0200 Message-ID: <87tuwaesn3.fsf@gnus.org> References: <86ft7wuoq0.fsf@hypra-xx> <878sdn22sf.fsf@gnus.org> <87imcrunvr.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="18360"; 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, Stefan Monnier , Nicolas Graner To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 06 19:13:10 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 1kEyE1-0004fh-VB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Sep 2020 19:13:09 +0200 Original-Received: from localhost ([::1]:42788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEyE1-0003MV-1u for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Sep 2020 13:13:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEyDu-0003MN-BX for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2020 13:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35482) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEyDu-0004jK-0r for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2020 13:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kEyDt-0001GN-SQ for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2020 13:13:01 -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 17:13:01 +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.15994123714839 (code B ref 43218); Sun, 06 Sep 2020 17:13:01 +0000 Original-Received: (at 43218) by debbugs.gnu.org; 6 Sep 2020 17:12:51 +0000 Original-Received: from localhost ([127.0.0.1]:47028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEyDc-0001Fs-M8 for submit@debbugs.gnu.org; Sun, 06 Sep 2020 13:12:51 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:46832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEyDb-0001Ff-8A for 43218@debbugs.gnu.org; Sun, 06 Sep 2020 13:12:43 -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=r7ykulcluLuPl0Q9Y0ktqWlcHIW3FT1SH/GebsmJf1Y=; b=ZkW7m7WQZkzwWQpytScGJbQelG 8Jlfd7hxsA5JaLWBYrpdG6y3kB3itr3CExIpw2NaO2C3aCd/B5ee6ztoTTrYmr8YPszADJtIzpkW0 mYGWB5JnYAKBNbOyOlcEVQ1w8JttrzqJhby22zI5LPZHGn5yn0jOaDvNv3aFAL5tvW60=; 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 1kEyDR-0003U2-P3; Sun, 06 Sep 2020 19:12:36 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXp+9nZ7df1/ePT +derzbFqgG////+tjAsIAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+QJBhEEB46WV3kAAAGsSURBVDjL bZRbloIwDIZDMwug6rzHcnyPhFkAZ8oCdGD/W5mkF0QwHgr2a/6EJgWa1gMBQEiGnZgBNGCGggYo 6FOyuwK9MQqDA7fOi3gP9VExBV1wBH0nl9gkn6GCeyLdMDaPAs4ZeG8jRW6eISaAW3A7DXGa5yGK QgVctHgO38s0xWWJ0RIWSbIs/KAxTvFnWeapk1dWro/hGuM4xMvz9idNBQzwNV6uv/Z80tsKANhN LpisjqhSaPLCwaFtItm8zUE2F6ohB8KkDFi3PBk5Aqzrw9a0NgIBqvGLmLBVjq1OgLBxCdVBk6W9 XC6s7ALBClJ+nzzUR/igte5WmXVVrbYGl/eHStaeqWKQAa5A3DF2tl26L2Dq9AlYYmA/2/KtlL6l 7hTBIYYBdMRHgA4UiNuF0BZT0Gt56d0jOQhTbgXZKtnrMjEfQjARi5NjCNaUpE+F2wFT6HO/8ZuU LeROD0EOUqC1iyko8Oph/7ACrqAFKcushyyKhdKz56GF1MA2EGyBNzvr1Wob5HKy3BsF0esBG/XS IhEUoEKr5d7Asv/29TGZAn3OW78L/h8DcZHZwoZb1QAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0w OS0wNlQxNzowNDowNyswMDowMK1+6xEAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDktMDZUMTc6 MDQ6MDcrMDA6MDDcI1OtAAAAAElFTkSuQmCC X-Now-Playing: Caterwaul's _The Nature Of Things_: "Way Beyond" In-Reply-To: (Drew Adams's message of "Sun, 6 Sep 2020 10:06:01 -0700 (PDT)") 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:187363 Archived-At: Drew Adams writes: > The point is that the `completing-read' behavior, > which shows only the car of an alist entry (plus > possibly an annotation), is quite limited. Yeah. And I now remember why the question seemed so familiar to me -- I think I asked the same question a couple a years ago when I wrote a mode for doing IMDB searches, and I ended up with (I see now; I'd forgotten all about this): (defun imdb-completing-read (prompt collection) (let ((completion-in-region-function (lambda (start end _ &optional __) (let ((string (buffer-substring start end))) (when (> (length string) 2) (imdb-complete string collection))))) (minibuffer-allow-text-properties t)) (read-from-minibuffer prompt nil imdb-minibuffer-local-completion-map))) But I guess I still wonder why `completing-read' strips the text properties from the completions? If it's historical reasons, why not allow minibuffer-allow-text-properties to override that? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no