all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mauro Aranda <maurooaranda@gmail.com>
To: 37199@debbugs.gnu.org
Subject: bug#37199: 27.0.50; widget-browse-at fails at the end of editable-field text
Date: Tue, 27 Aug 2019 12:06:00 -0300	[thread overview]
Message-ID: <CABczVwcszz0eS1HnjGnAt+jgdsUqqxL34mYi26onoueGCxprHw@mail.gmail.com> (raw)
In-Reply-To: <CABczVwfJJRLO=8PC0OrMyvkoTzT6cZc4oy-2h3sG06JKAjnQ9A@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 107 bytes --]

severity 37199 minor
tags 37199 patch
thanks

The attached patch should do the trick.

Best regards,
Mauro

[-- Attachment #1.2: Type: text/html, Size: 227 bytes --]

[-- Attachment #2: 0001-Make-widget-browse-at-always-detect-an-editable-fiel.patch --]
[-- Type: text/x-patch, Size: 1122 bytes --]

From 7ae3c2e4031382d179c95544e8e6710e3df5131d Mon Sep 17 00:00:00 2001
From: Mauro Aranda <maurooaranda@gmail.com>
Date: Tue, 27 Aug 2019 11:47:51 -0300
Subject: [PATCH] Make widget-browse-at always detect an editable-field

* lisp/wid-browse.el (widget-browse-at): Also look for the real-field
property when detecting a field.  (Bug#37199)
---
 lisp/wid-browse.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/wid-browse.el b/lisp/wid-browse.el
index dbc4100..3124a9c 100644
--- a/lisp/wid-browse.el
+++ b/lisp/wid-browse.el
@@ -89,7 +89,11 @@ widget-browse-mode
 (defun widget-browse-at (pos)
   "Browse the widget under point."
   (interactive "d")
-  (let* ((field (get-char-property pos 'field))
+  (let* ((field (or
+                 ;; See comments in `widget-specify-field' to know why we
+                 ;; need this.
+                 (get-char-property pos 'real-field)
+                 (get-char-property pos 'field)))
 	 (button (get-char-property pos 'button))
 	 (doc (get-char-property pos 'widget-doc))
 	 (text (cond (field "This is an editable text area.")
-- 
2.7.4


  reply	other threads:[~2019-08-27 15:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-27 14:47 bug#37199: 27.0.50; widget-browse-at fails at the end of editable-field text Mauro Aranda
2019-08-27 15:06 ` Mauro Aranda [this message]
2019-09-15 13:21   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABczVwcszz0eS1HnjGnAt+jgdsUqqxL34mYi26onoueGCxprHw@mail.gmail.com \
    --to=maurooaranda@gmail.com \
    --cc=37199@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.