unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* GNU emacs on Ubuntu 14.04 LTS
@ 2015-09-30 14:14 Alexandre Oberlin
  2015-09-30 14:52 ` Javier
  2015-10-01 20:07 ` Bob Proulx
  0 siblings, 2 replies; 9+ messages in thread
From: Alexandre Oberlin @ 2015-09-30 14:14 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I cannot manage to bind ctrl+home/ctrl+end to beginning/end-of-buffer in  
Ubuntu 14.04 LTS.
Event doing it interactively does not work. Instead of "ctrl+home", I get  
"home" in command-history:
(global-set-key (quote [home]) (quote beginning-of-buffer))

It’s emacs 23.4. I don’t want the whole cua stuff.


Cheers


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

* Re: GNU emacs on Ubuntu 14.04 LTS
  2015-09-30 14:14 GNU emacs on Ubuntu 14.04 LTS Alexandre Oberlin
@ 2015-09-30 14:52 ` Javier
  2015-09-30 14:57   ` Alexandre Oberlin
  2015-09-30 23:26   ` alxobr
  2015-10-01 20:07 ` Bob Proulx
  1 sibling, 2 replies; 9+ messages in thread
From: Javier @ 2015-09-30 14:52 UTC (permalink / raw)
  To: help-gnu-emacs

> I cannot manage to bind ctrl+home/ctrl+end to beginning/end-of-buffer in  
> Ubuntu 14.04 LTS.
> Event doing it interactively does not work. Instead of "ctrl+home", I get  
> "home" in command-history:
> (global-set-key (quote [home]) (quote beginning-of-buffer))

Use C-h l (view-lossage) to see what keypresses emacs detects.
You should see <C-home>.


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

* Re: GNU emacs on Ubuntu 14.04 LTS
  2015-09-30 14:52 ` Javier
@ 2015-09-30 14:57   ` Alexandre Oberlin
  2015-09-30 23:26   ` alxobr
  1 sibling, 0 replies; 9+ messages in thread
From: Alexandre Oberlin @ 2015-09-30 14:57 UTC (permalink / raw)
  To: help-gnu-emacs

Thanks for this fancy tip! I’ll try when back on Ubuntu.

On Wed, 30 Sep 2015 16:52:10 +0200, Javier <nospam@nospam.com> wrote:
> Use C-h l (view-lossage) to see what keypresses emacs detects.
> You should see <C-home>.


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

* Re: GNU emacs on Ubuntu 14.04 LTS
  2015-09-30 14:52 ` Javier
  2015-09-30 14:57   ` Alexandre Oberlin
@ 2015-09-30 23:26   ` alxobr
  2015-10-01 13:03     ` Dan Espen
  1 sibling, 1 reply; 9+ messages in thread
From: alxobr @ 2015-09-30 23:26 UTC (permalink / raw)
  To: help-gnu-emacs

On Wednesday, September 30, 2015 at 4:52:15 PM UTC+2, Javier wrote:
> Use C-h l (view-lossage) to see what keypresses emacs detects.
> You should see <C-home>.

This is C-b followed by 3 times <home>, then C-b followed by 3 times <C-home>

C-b ESC O H ESC O H ESC O H C-b ESC O H ESC O H ESC O H 

<home> and <C-home> appear the same to emacs.


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

* Re: GNU emacs on Ubuntu 14.04 LTS
  2015-09-30 23:26   ` alxobr
@ 2015-10-01 13:03     ` Dan Espen
  2015-10-01 15:01       ` [SOLVED] " Alexandre Oberlin
  0 siblings, 1 reply; 9+ messages in thread
From: Dan Espen @ 2015-10-01 13:03 UTC (permalink / raw)
  To: help-gnu-emacs

alxobr@gmail.com writes:

> On Wednesday, September 30, 2015 at 4:52:15 PM UTC+2, Javier wrote:
>> Use C-h l (view-lossage) to see what keypresses emacs detects.
>> You should see <C-home>.
>
> This is C-b followed by 3 times <home>, then C-b followed by 3 times <C-home>
>
> C-b ESC O H ESC O H ESC O H C-b ESC O H ESC O H ESC O H 
>
> <home> and <C-home> appear the same to emacs.

Looks like you are running Emacs in a terminal.

To distinguish home and C-home you would need to configure or
modify the terminal emulator.

Running Emacs under X will change things.


-- 
Dan Espen


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

* [SOLVED] Re: GNU emacs on Ubuntu 14.04 LTS
  2015-10-01 13:03     ` Dan Espen
@ 2015-10-01 15:01       ` Alexandre Oberlin
  2015-10-01 15:15         ` Dan Espen
  2015-10-02  9:40         ` Hikaru Ichijyo
  0 siblings, 2 replies; 9+ messages in thread
From: Alexandre Oberlin @ 2015-10-01 15:01 UTC (permalink / raw)
  To: help-gnu-emacs

On Thursday, October 1, 2015 at 3:03:26 PM UTC+2, Dan Espen wrote:
> Looks like you are running Emacs in a terminal.
Yes, you are right, X was unavailable because of this:
With the coming 14.04 release sux (wrapper around su which will transfer your X credentials) is no longer included in Ubuntu. (I think it is being removed because it is being pulled from Debian, because of no maintenance of the original code.)
source http://askubuntu.com/questions/428284/what-is-a-good-alternative-to-the-sux-command where an alternative to using the obsoleted sux is given. 
The problem is then solved, thanks.






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

* Re: [SOLVED] Re: GNU emacs on Ubuntu 14.04 LTS
  2015-10-01 15:01       ` [SOLVED] " Alexandre Oberlin
@ 2015-10-01 15:15         ` Dan Espen
  2015-10-02  9:40         ` Hikaru Ichijyo
  1 sibling, 0 replies; 9+ messages in thread
From: Dan Espen @ 2015-10-01 15:15 UTC (permalink / raw)
  To: help-gnu-emacs

Alexandre Oberlin <alxobr@gmail.com> writes:

> On Thursday, October 1, 2015 at 3:03:26 PM UTC+2, Dan Espen wrote:
>> Looks like you are running Emacs in a terminal.
> Yes, you are right, X was unavailable because of this:
> With the coming 14.04 release sux (wrapper around su which will
> transfer your X credentials) is no longer included in Ubuntu. (I think
> it is being removed because it is being pulled from Debian, because of
> no maintenance of the original code.)
> source
> http://askubuntu.com/questions/428284/what-is-a-good-alternative-to-the-sux-command
> where an alternative to using the obsoleted sux is given.
> The problem is then solved, thanks.

For a while, I was stuck running Emacs in a terminal.
I usually use rxvt.
In a couple of cases, I modified the source to get unique escape
sequences for odd key combinations.

Now I run under X which is a more sane way to go.

-- 
Dan Espen


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

* Re: GNU emacs on Ubuntu 14.04 LTS
  2015-09-30 14:14 GNU emacs on Ubuntu 14.04 LTS Alexandre Oberlin
  2015-09-30 14:52 ` Javier
@ 2015-10-01 20:07 ` Bob Proulx
  1 sibling, 0 replies; 9+ messages in thread
From: Bob Proulx @ 2015-10-01 20:07 UTC (permalink / raw)
  To: help-gnu-emacs

Alexandre Oberlin wrote:
> I cannot manage to bind ctrl+home/ctrl+end to beginning/end-of-buffer in
> Ubuntu 14.04 LTS.
> Event doing it interactively does not work. Instead of "ctrl+home", I get
> "home" in command-history:
> (global-set-key (quote [home]) (quote beginning-of-buffer))

I know you said you already solved this but let me comment for the
archive.  I have these bindings and they work in the terminal.

  (global-set-key [home] 'beginning-of-buffer)
  (global-set-key [S-home] 'end-of-buffer)
  (global-set-key [end] 'end-of-buffer)
  (global-set-key [S-end] 'beginning-of-buffer)

Bob



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

* Re: [SOLVED] Re: GNU emacs on Ubuntu 14.04 LTS
  2015-10-01 15:01       ` [SOLVED] " Alexandre Oberlin
  2015-10-01 15:15         ` Dan Espen
@ 2015-10-02  9:40         ` Hikaru Ichijyo
  1 sibling, 0 replies; 9+ messages in thread
From: Hikaru Ichijyo @ 2015-10-02  9:40 UTC (permalink / raw)
  To: help-gnu-emacs

Alexandre Oberlin <alxobr@gmail.com> writes:

> Yes, you are right, X was unavailable because of this:
> With the coming 14.04 release sux (wrapper around su which will
> transfer your X credentials) is no longer included in Ubuntu. (I think
> it is being removed because it is being pulled from Debian, because of
> no maintenance of the original code.)
> source
> http://askubuntu.com/questions/428284/what-is-a-good-alternative-to-the-sux-command
> where an alternative to using the obsoleted sux is given.
> The problem is then solved, thanks.

Rather than using sux or some other method to run the entire Emacs as
another user like root, try Tramp mode:

C-x C-f /sudo::/etc/whatever-you-want

That way, your Emacs session runs as you, and only the bare minimum
needed for root permissions is using sudo.  (You can also do
"/su::/etc/whatever" if you're on a machine with a real root account.)

-- 
He that would make his own liberty secure must guard even his enemy from
oppression; for if he violates this duty, he establishes a precedent
that will reach to himself.
					--Thomas Paine


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

end of thread, other threads:[~2015-10-02  9:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-30 14:14 GNU emacs on Ubuntu 14.04 LTS Alexandre Oberlin
2015-09-30 14:52 ` Javier
2015-09-30 14:57   ` Alexandre Oberlin
2015-09-30 23:26   ` alxobr
2015-10-01 13:03     ` Dan Espen
2015-10-01 15:01       ` [SOLVED] " Alexandre Oberlin
2015-10-01 15:15         ` Dan Espen
2015-10-02  9:40         ` Hikaru Ichijyo
2015-10-01 20:07 ` Bob Proulx

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).