unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
       [not found] <E1V0C7f-0002wo-8j@vcs.savannah.gnu.org>
@ 2013-07-20  8:25 ` Stefan Monnier
  2013-07-30 14:16   ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 16+ messages in thread
From: Stefan Monnier @ 2013-07-20  8:25 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: emacs-devel

> +(defun shr-mouse-browse-url (ev)
> +  "Browse the URL under the mouse cursor."
> +  (interactive "e")
> +  (mouse-set-point ev)
> +  (shr-browse-url))

You can make that work for RET as well (by using (list
last-nonmenu-event) instead of "e", IIRC), so you don't need a separate
command for mouse events.


        Stefan



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-20  8:25 ` [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke Stefan Monnier
@ 2013-07-30 14:16   ` Lars Magne Ingebrigtsen
  2013-07-30 14:20     ` Jambunathan K
  2013-07-30 14:47     ` Stefan Monnier
  0 siblings, 2 replies; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2013-07-30 14:16 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>> +(defun shr-mouse-browse-url (ev)
>> +  "Browse the URL under the mouse cursor."
>> +  (interactive "e")
>> +  (mouse-set-point ev)
>> +  (shr-browse-url))
>
> You can make that work for RET as well (by using (list
> last-nonmenu-event) instead of "e", IIRC), so you don't need a separate
> command for mouse events.

Hm.  I don't quite follow.  The command it calls reads stuff under
point, so we need the event (to change point) in the mousey command, but
not in the non-mousey command:

(defun shr-browse-url (&optional external)
  "Browse the URL under point.
If EXTERNAL, browse the URL using `shr-external-browser'."
  (interactive "P")
  (let ((url (get-text-property (point) 'shr-url)))


-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-30 14:16   ` Lars Magne Ingebrigtsen
@ 2013-07-30 14:20     ` Jambunathan K
  2013-07-30 14:22       ` Lars Magne Ingebrigtsen
  2013-07-30 14:47     ` Stefan Monnier
  1 sibling, 1 reply; 16+ messages in thread
From: Jambunathan K @ 2013-07-30 14:20 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: Stefan Monnier, emacs-devel

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Hm.  I don't quite follow.

I shared a tip that works.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-30 14:20     ` Jambunathan K
@ 2013-07-30 14:22       ` Lars Magne Ingebrigtsen
  2013-07-30 16:00         ` Glenn Morris
  0 siblings, 1 reply; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2013-07-30 14:22 UTC (permalink / raw)
  To: Jambunathan K; +Cc: Stefan Monnier, emacs-devel

Jambunathan K <kjambunathan@gmail.com> writes:

> I shared a tip that works.

Where?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-30 14:16   ` Lars Magne Ingebrigtsen
  2013-07-30 14:20     ` Jambunathan K
@ 2013-07-30 14:47     ` Stefan Monnier
  2013-07-30 14:58       ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 16+ messages in thread
From: Stefan Monnier @ 2013-07-30 14:47 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: emacs-devel

> Hm.  I don't quite follow.  The command it calls reads stuff under
> point, so we need the event (to change point) in the mousey command, but
> not in the non-mousey command:

"Change point to the event" will also work for non-mouse events (it
will simply leave point where it is).


        Stefan



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-30 14:47     ` Stefan Monnier
@ 2013-07-30 14:58       ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2013-07-30 14:58 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> "Change point to the event" will also work for non-mouse events (it
> will simply leave point where it is).

I see.  I've now made this change.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-30 14:22       ` Lars Magne Ingebrigtsen
@ 2013-07-30 16:00         ` Glenn Morris
  2013-07-30 16:45           ` Jambunathan K
  2013-07-30 20:03           ` Stefan Monnier
  0 siblings, 2 replies; 16+ messages in thread
From: Glenn Morris @ 2013-07-30 16:00 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: emacs-devel

Lars Magne Ingebrigtsen wrote:

> Jambunathan K <kjambunathan@gmail.com> writes:
>
>> I shared a tip that works.
>
> Where?

I'd ignore code suggestions from him if I were you.
They can't be used due to assignment issues.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-30 16:00         ` Glenn Morris
@ 2013-07-30 16:45           ` Jambunathan K
  2013-07-30 16:59             ` Eli Zaretskii
  2013-07-30 17:40             ` Stephen J. Turnbull
  2013-07-30 20:03           ` Stefan Monnier
  1 sibling, 2 replies; 16+ messages in thread
From: Jambunathan K @ 2013-07-30 16:45 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Lars Magne Ingebrigtsen, emacs-devel

Glenn Morris <rgm@gnu.org> writes:

> Lars Magne Ingebrigtsen wrote:
>
>> Jambunathan K <kjambunathan@gmail.com> writes:
>>
>>> I shared a tip that works.
>>
>> Where?
>
> I'd ignore code suggestions from him if I were you.
> They can't be used due to assignment issues.

What code suggestions?  There was a suggestion but there wasn't a code
accompanying it (for a reason).

A suggestion that is NOT accompanied by a code, will that fall in the
domain of "copyright assignments"?  I am willing to learn.

ps: If you have issues with me appearing on this list or any of the
Emcacs lists, you can always censor my posts - much the same way what
the Org-mode folks are doing right now.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-30 16:45           ` Jambunathan K
@ 2013-07-30 16:59             ` Eli Zaretskii
  2013-07-30 17:11               ` Jambunathan K
  2013-07-30 17:40             ` Stephen J. Turnbull
  1 sibling, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2013-07-30 16:59 UTC (permalink / raw)
  To: Jambunathan K; +Cc: larsi, emacs-devel

> From: Jambunathan K <kjambunathan@gmail.com>
> Date: Tue, 30 Jul 2013 22:15:26 +0530
> Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>, emacs-devel@gnu.org
> 
> ps: If you have issues with me appearing on this list or any of the
> Emcacs lists, you can always censor my posts

As long as you are on-topic and civilized enough, that won't happen.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-30 16:59             ` Eli Zaretskii
@ 2013-07-30 17:11               ` Jambunathan K
  2013-07-30 17:36                 ` Juanma Barranquero
  0 siblings, 1 reply; 16+ messages in thread
From: Jambunathan K @ 2013-07-30 17:11 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: larsi, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Jambunathan K <kjambunathan@gmail.com>
>> Date: Tue, 30 Jul 2013 22:15:26 +0530
>> Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>, emacs-devel@gnu.org
>> 
>> ps: If you have issues with me appearing on this list or any of the
>> Emcacs lists, you can always censor my posts
>
> As long as you are on-topic and civilized enough, that won't happen.

If people treat me well, I will be civil.  I will not talk about Bastien
or his brand of historical revisionism or fixing copyright headers -
like re-arranging authors - in subtle ways.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-30 17:11               ` Jambunathan K
@ 2013-07-30 17:36                 ` Juanma Barranquero
  2013-07-30 18:26                   ` Jambunathan K
  0 siblings, 1 reply; 16+ messages in thread
From: Juanma Barranquero @ 2013-07-30 17:36 UTC (permalink / raw)
  To: Jambunathan K; +Cc: Eli Zaretskii, Lars Ingebrigtsen, Emacs developers

On Tue, Jul 30, 2013 at 7:11 PM, Jambunathan K <kjambunathan@gmail.com> wrote:

> I will not talk about Bastien
> or his brand of historical revisionism or fixing copyright headers -
> like re-arranging authors - in subtle ways.

Certainly, that wasn't subtle.

   J



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-30 16:45           ` Jambunathan K
  2013-07-30 16:59             ` Eli Zaretskii
@ 2013-07-30 17:40             ` Stephen J. Turnbull
  2013-07-30 18:01               ` Jambunathan K
  1 sibling, 1 reply; 16+ messages in thread
From: Stephen J. Turnbull @ 2013-07-30 17:40 UTC (permalink / raw)
  To: Jambunathan K; +Cc: Lars Magne Ingebrigtsen, emacs-devel

Jambunathan K writes:

 > A suggestion that is NOT accompanied by a code, will that fall in the
 > domain of "copyright assignments"?

Sure.  Any suggestion that would result in changing the expressive
structure of Emacs source code could create a copyright.  I'm not sure
how closely you'd have to cooperate with the person who actually made
the changes to be considered to have copyright, but there's nothing in
the law that says you have to do any typing to get copyright.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-30 17:40             ` Stephen J. Turnbull
@ 2013-07-30 18:01               ` Jambunathan K
  0 siblings, 0 replies; 16+ messages in thread
From: Jambunathan K @ 2013-07-30 18:01 UTC (permalink / raw)
  To: Stephen J. Turnbull; +Cc: Lars Magne Ingebrigtsen, emacs-devel

"Stephen J. Turnbull" <stephen@xemacs.org> writes:

> Any suggestion that would result in changing the expressive structure
> of Emacs source code could create a copyright.

The expressive structure of the stuff contributed by me to Emacs proper
is to a large extent dictated by mom and my SO.  I will have them sign
copyright assignments, *if* I start contributing to Emacs proper again.
Just to make sure that Emacs is safe and compliant with no
infringements.

Hopefully, FSF will send me stickers to compensate for money that I
spend on postal stamps.  I also hope that FSF staff will have the
politeness to return queries sent by a contributor.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-30 17:36                 ` Juanma Barranquero
@ 2013-07-30 18:26                   ` Jambunathan K
  0 siblings, 0 replies; 16+ messages in thread
From: Jambunathan K @ 2013-07-30 18:26 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: Eli Zaretskii, Lars Ingebrigtsen, Emacs developers

Juanma Barranquero <lekktu@gmail.com> writes:

> On Tue, Jul 30, 2013 at 7:11 PM, Jambunathan K <kjambunathan@gmail.com> wrote:
>
>> I will not talk about Bastien
>> or his brand of historical revisionism or fixing copyright headers -
>> like re-arranging authors - in subtle ways.
>
> Certainly, that wasn't subtle.

You need a smart quip in return?  Nah, I will just disappoint you.

>    J



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-30 16:00         ` Glenn Morris
  2013-07-30 16:45           ` Jambunathan K
@ 2013-07-30 20:03           ` Stefan Monnier
  2013-07-30 20:16             ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 16+ messages in thread
From: Stefan Monnier @ 2013-07-30 20:03 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Lars Magne Ingebrigtsen, emacs-devel


Nice weather today, eh?


        Stefan



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke.
  2013-07-30 20:03           ` Stefan Monnier
@ 2013-07-30 20:16             ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2013-07-30 20:16 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Nice weather today, eh?
>
>         Stefan

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-07-30 20:16 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1V0C7f-0002wo-8j@vcs.savannah.gnu.org>
2013-07-20  8:25 ` [Emacs-diffs] trunk r113464: * net/shr.el (shr-mouse-browse-url): New command and keystroke Stefan Monnier
2013-07-30 14:16   ` Lars Magne Ingebrigtsen
2013-07-30 14:20     ` Jambunathan K
2013-07-30 14:22       ` Lars Magne Ingebrigtsen
2013-07-30 16:00         ` Glenn Morris
2013-07-30 16:45           ` Jambunathan K
2013-07-30 16:59             ` Eli Zaretskii
2013-07-30 17:11               ` Jambunathan K
2013-07-30 17:36                 ` Juanma Barranquero
2013-07-30 18:26                   ` Jambunathan K
2013-07-30 17:40             ` Stephen J. Turnbull
2013-07-30 18:01               ` Jambunathan K
2013-07-30 20:03           ` Stefan Monnier
2013-07-30 20:16             ` Lars Magne Ingebrigtsen
2013-07-30 14:47     ` Stefan Monnier
2013-07-30 14:58       ` Lars Magne Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).