all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Changing middle-click to right-click?
@ 2015-08-20 17:16 Sharon Kimble
  2015-09-04 17:13 ` [SOLVED] " Sharon Kimble
  0 siblings, 1 reply; 10+ messages in thread
From: Sharon Kimble @ 2015-08-20 17:16 UTC (permalink / raw)
  To: help-emacs

[-- Attachment #1: Type: text/plain, Size: 340 bytes --]

I'm finding middle-clicking for checking spelling and choosing the
correct spelling, increasingly problematic. How can I change the
'middle-click' to a 'right-click', system-wide, please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.0, fluxbox 1.3.7, emacs 24.5.50.3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

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

* Re: Changing middle-click to right-click?
       [not found] <mailman.5.1440103084.31004.help-gnu-emacs@gnu.org>
@ 2015-08-21  1:07 ` HASM
  2015-08-21  5:14   ` tomas
                     ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: HASM @ 2015-08-21  1:07 UTC (permalink / raw)
  To: help-gnu-emacs


> I'm finding middle-clicking for checking spelling and choosing the
> correct spelling, increasingly problematic. How can I change the
> 'middle-click' to a 'right-click', system-wide, please?

Linux/X?
Something like (for a three button mouse):
  echo 'pointer = 1 3 2' |xmodmap - 1>/dev/null 2>&1

-- HASM



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

* Re: Changing middle-click to right-click?
  2015-08-21  1:07 ` HASM
@ 2015-08-21  5:14   ` tomas
  2015-08-21 11:57   ` Rusi
  2015-08-21 14:37   ` Stefan Monnier
  2 siblings, 0 replies; 10+ messages in thread
From: tomas @ 2015-08-21  5:14 UTC (permalink / raw)
  To: HASM; +Cc: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Aug 20, 2015 at 06:07:07PM -0700, HASM wrote:
> 
> > I'm finding middle-clicking for checking spelling and choosing the
> > correct spelling, increasingly problematic. How can I change the
> > 'middle-click' to a 'right-click', system-wide, please?
> 
> Linux/X?
> Something like (for a three button mouse):
>   echo 'pointer = 1 3 2' |xmodmap - 1>/dev/null 2>&1

And if you only want to change it for this specific case, check out
"mouse-1-click-follows-link", i.e. try

  M-x customize-variable RET mouse-1-click-follows-link

You want either "Single click time limit" (meaning that a short single
click will follow the link, a longer one will behave as before, just
moving point to the clicked position) *or* just "Single click". But
the explanation in the customize buffer is better anyway :-)

regards
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlXWs5kACgkQBcgs9XrR2kYCnwCdF6htK8Eobrwa1JCD7V4tU341
J6QAnir/nhE84yNgL0VUV7hsvHWPJGDz
=4M4i
-----END PGP SIGNATURE-----



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

* Re: Changing middle-click to right-click?
  2015-08-21  1:07 ` HASM
  2015-08-21  5:14   ` tomas
@ 2015-08-21 11:57   ` Rusi
  2015-08-21 11:59     ` Rusi
  2015-08-21 15:45     ` HASM
  2015-08-21 14:37   ` Stefan Monnier
  2 siblings, 2 replies; 10+ messages in thread
From: Rusi @ 2015-08-21 11:57 UTC (permalink / raw)
  To: help-gnu-emacs

On Friday, August 21, 2015 at 6:37:09 AM UTC+5:30, HASM wrote:
> > I'm finding middle-clicking for checking spelling and choosing the
> > correct spelling, increasingly problematic. How can I change the
> > 'middle-click' to a 'right-click', system-wide, please?
> 
> Linux/X?
> Something like (for a three button mouse):
>   echo 'pointer = 1 3 2' |xmodmap - 1>/dev/null 2>&1
> 
> -- HASM

xmodmap is increasingly obsolete and broken

I think xinput is what you need to use.
See https://wiki.ubuntu.com/X/Config/Input
Unfortunately those examples seem broken and need small fixes


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

* Re: Changing middle-click to right-click?
  2015-08-21 11:57   ` Rusi
@ 2015-08-21 11:59     ` Rusi
  2015-08-21 12:43       ` Sharon Kimble
       [not found]       ` <mailman.78.1440160987.31004.help-gnu-emacs@gnu.org>
  2015-08-21 15:45     ` HASM
  1 sibling, 2 replies; 10+ messages in thread
From: Rusi @ 2015-08-21 11:59 UTC (permalink / raw)
  To: help-gnu-emacs

On Friday, August 21, 2015 at 5:27:25 PM UTC+5:30, Rusi wrote:
> On Friday, August 21, 2015 at 6:37:09 AM UTC+5:30, HASM wrote:
> > > I'm finding middle-clicking for checking spelling and choosing the
> > > correct spelling, increasingly problematic. How can I change the
> > > 'middle-click' to a 'right-click', system-wide, please?
> > 
> > Linux/X?
> > Something like (for a three button mouse):
> >   echo 'pointer = 1 3 2' |xmodmap - 1>/dev/null 2>&1
> > 
> > -- HASM
> 
> xmodmap is increasingly obsolete and broken
> 
> I think xinput is what you need to use.
> See https://wiki.ubuntu.com/X/Config/Input
> Unfortunately those examples seem broken and need small fixes

[Sorry clicked 'Send' too soon]
In the section
Example: Disabling middle-mouse button paste on a scrollwheel mouse
the xinput call needs an additional <id> parameter before the actual map


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

* Re: Changing middle-click to right-click?
  2015-08-21 11:59     ` Rusi
@ 2015-08-21 12:43       ` Sharon Kimble
       [not found]       ` <mailman.78.1440160987.31004.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Sharon Kimble @ 2015-08-21 12:43 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1399 bytes --]

Rusi <rustompmody@gmail.com> writes:

> On Friday, August 21, 2015 at 5:27:25 PM UTC+5:30, Rusi wrote:
>> On Friday, August 21, 2015 at 6:37:09 AM UTC+5:30, HASM wrote:
>> > > I'm finding middle-clicking for checking spelling and choosing the
>> > > correct spelling, increasingly problematic. How can I change the
>> > > 'middle-click' to a 'right-click', system-wide, please?
>> > 
>> > Linux/X?
>> > Something like (for a three button mouse):
>> >   echo 'pointer = 1 3 2' |xmodmap - 1>/dev/null 2>&1
>> > 
>> > -- HASM
>> 
>> xmodmap is increasingly obsolete and broken
>> 
>> I think xinput is what you need to use.
>> See https://wiki.ubuntu.com/X/Config/Input
>> Unfortunately those examples seem broken and need small fixes
>
> [Sorry clicked 'Send' too soon]
> In the section
> Example: Disabling middle-mouse button paste on a scrollwheel mouse
> the xinput call needs an additional <id> parameter before the actual map

I'm sorry, I missed out one *vital* element of my question, I meant to say
change "button 3" with "button 2" in *emacs* only. This would mean that
I can "right-click" on a misspelled word and it shows me a popup list,
and that is where I'm needing the mouse changes, just in spell-checking.

Sorry
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.0, fluxbox 1.3.7, emacs 24.5.50.3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

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

* Re: Changing middle-click to right-click?
       [not found]       ` <mailman.78.1440160987.31004.help-gnu-emacs@gnu.org>
@ 2015-08-21 13:01         ` Rusi
  0 siblings, 0 replies; 10+ messages in thread
From: Rusi @ 2015-08-21 13:01 UTC (permalink / raw)
  To: help-gnu-emacs

On Friday, August 21, 2015 at 6:13:10 PM UTC+5:30, Sharon Kimble wrote:
> Rusi  writes:
> 
> > On Friday, August 21, 2015 at 5:27:25 PM UTC+5:30, Rusi wrote:
> >> On Friday, August 21, 2015 at 6:37:09 AM UTC+5:30, HASM wrote:
> >> > > I'm finding middle-clicking for checking spelling and choosing the
> >> > > correct spelling, increasingly problematic. How can I change the
> >> > > 'middle-click' to a 'right-click', system-wide, please?
> >> > 
> >> > Linux/X?
> >> > Something like (for a three button mouse):
> >> >   echo 'pointer = 1 3 2' |xmodmap - 1>/dev/null 2>&1
> >> > 
> >> > -- HASM
> >> 
> >> xmodmap is increasingly obsolete and broken
> >> 
> >> I think xinput is what you need to use.
> >> See https://wiki.ubuntu.com/X/Config/Input
> >> Unfortunately those examples seem broken and need small fixes
> >
> > [Sorry clicked 'Send' too soon]
> > In the section
> > Example: Disabling middle-mouse button paste on a scrollwheel mouse
> > the xinput call needs an additional <id> parameter before the actual map
> 
> I'm sorry, I missed out one *vital* element of my question, I meant to say
> change "button 3" with "button 2" in *emacs* only. This would mean that
> I can "right-click" on a misspelled word and it shows me a popup list,
> and that is where I'm needing the mouse changes, just in spell-checking.

So then Tomas' solution works right? 
ie use C-h k to find the current bindings and then rebind ?

> 
> Sorry

?About?


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

* Re: Changing middle-click to right-click?
  2015-08-21  1:07 ` HASM
  2015-08-21  5:14   ` tomas
  2015-08-21 11:57   ` Rusi
@ 2015-08-21 14:37   ` Stefan Monnier
  2 siblings, 0 replies; 10+ messages in thread
From: Stefan Monnier @ 2015-08-21 14:37 UTC (permalink / raw)
  To: help-gnu-emacs

>> I'm finding middle-clicking for checking spelling and choosing the
>> correct spelling, increasingly problematic.  How can I change the
>> 'middle-click' to a 'right-click', system-wide, please?

FWIW, I think the better long-term fix is to report this as a bug.
The flyspell menu should be considered a "context menu" and these should
be bound to down-mouse-3.


        Stefan




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

* Re: Changing middle-click to right-click?
  2015-08-21 11:57   ` Rusi
  2015-08-21 11:59     ` Rusi
@ 2015-08-21 15:45     ` HASM
  1 sibling, 0 replies; 10+ messages in thread
From: HASM @ 2015-08-21 15:45 UTC (permalink / raw)
  To: help-gnu-emacs

Rusi <rustompmody@gmail.com> writes:

> xmodmap is increasingly obsolete and broken

Maybe, but it still works for the example given:

>   echo 'pointer = 1 3 2' |xmodmap - 1>/dev/null 2>&1

(though the OP clarified he wants to do this only in emacs)

The xinput equivalent is:
  xinput --set-button-map <device> 1 3 2
though one needs to find what <device> is.

-- HASM


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

* [SOLVED] Re: Changing middle-click to right-click?
  2015-08-20 17:16 Changing middle-click to right-click? Sharon Kimble
@ 2015-09-04 17:13 ` Sharon Kimble
  0 siblings, 0 replies; 10+ messages in thread
From: Sharon Kimble @ 2015-09-04 17:13 UTC (permalink / raw)
  To: help-emacs

[-- Attachment #1: Type: text/plain, Size: 749 bytes --]

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> I'm finding middle-clicking for checking spelling and choosing the
> correct spelling, increasingly problematic. How can I change the
> 'middle-click' to a 'right-click', system-wide, please?
>
> Thanks
> Sharon.

I've found a solution to this problem, I'm using "flyspell-popup" and I
just put the cursor at the end of the misspelled word and press 'C-;'
and the popup shows all relevant options for the spell-checking. And the
mouse is never used at all, its so much easier. It comes from ELPA so
you can have a play if you want.

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.0, fluxbox 1.3.7, emacs 24.5.50.3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

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

end of thread, other threads:[~2015-09-04 17:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-20 17:16 Changing middle-click to right-click? Sharon Kimble
2015-09-04 17:13 ` [SOLVED] " Sharon Kimble
     [not found] <mailman.5.1440103084.31004.help-gnu-emacs@gnu.org>
2015-08-21  1:07 ` HASM
2015-08-21  5:14   ` tomas
2015-08-21 11:57   ` Rusi
2015-08-21 11:59     ` Rusi
2015-08-21 12:43       ` Sharon Kimble
     [not found]       ` <mailman.78.1440160987.31004.help-gnu-emacs@gnu.org>
2015-08-21 13:01         ` Rusi
2015-08-21 15:45     ` HASM
2015-08-21 14:37   ` Stefan Monnier

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.