emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Redefine key for sorting
@ 2015-05-08 10:01 Igor Sosa Mayor
  2015-05-08 15:42 ` Leo Ufimtsev
  2015-05-08 16:29 ` Jorge A. Alfaro-Murillo
  0 siblings, 2 replies; 10+ messages in thread
From: Igor Sosa Mayor @ 2015-05-08 10:01 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

in the last time, I'm using very often the sort function of lists.
Unfortunately it is bound to a key combination (C-c ^) which is rather
uneasy. I would like to change it to C-c ñ. Which is the best method to
redefine it?

Many thanks in advance!

-- 
:: Igor Sosa Mayor     :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/      ::
:: jabberid: rogorido  ::                            ::

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

* Re: Redefine key for sorting
  2015-05-08 10:01 Redefine key for sorting Igor Sosa Mayor
@ 2015-05-08 15:42 ` Leo Ufimtsev
  2015-05-09  8:09   ` Igor Sosa Mayor
  2015-05-08 16:29 ` Jorge A. Alfaro-Murillo
  1 sibling, 1 reply; 10+ messages in thread
From: Leo Ufimtsev @ 2015-05-08 15:42 UTC (permalink / raw)
  To: Igor Sosa Mayor; +Cc: emacs-orgmode

My C-c ^ doesn't appear to be mapped to sorting of the list. 

But if you press C-h k, then your key-combo, then it shows you which function is being called. e.g org-sort-list.

You can then re-map via a function like:
(define-key 'org-mode-map (kbd "C-c n") 'org-sort-list)

Which you could add to your .emacs file.

This article provides a more comprehensive keyboard remapping guide:
https://www.masteringemacs.org/article/mastering-key-bindings-emacs

----- Original Message -----
> From: "Igor Sosa Mayor" <joseleopoldo1792@gmail.com>
> To: emacs-orgmode@gnu.org
> Sent: Friday, May 8, 2015 6:01:52 AM
> Subject: [O] Redefine key for sorting
> 
> Hi,
> 
> in the last time, I'm using very often the sort function of lists.
> Unfortunately it is bound to a key combination (C-c ^) which is rather
> uneasy. I would like to change it to C-c ñ. Which is the best method to
> redefine it?
> 
> Many thanks in advance!
> 
> --
> :: Igor Sosa Mayor     :: joseleopoldo1792@gmail.com ::
> :: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/      ::
> :: jabberid: rogorido  ::                            ::
> 
> 
> 

-- 
Leo Ufimtsev | Intern Software Engineer @ Eclipse Team

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

* Re: Redefine key for sorting
  2015-05-08 10:01 Redefine key for sorting Igor Sosa Mayor
  2015-05-08 15:42 ` Leo Ufimtsev
@ 2015-05-08 16:29 ` Jorge A. Alfaro-Murillo
  2015-05-08 19:22   ` bug:? org babel updating images (C-c C-c) triggers "show as text" (C-c C-c) in imagemagick buffer Leo Ufimtsev
  2015-05-09  8:08   ` Redefine key for sorting Igor Sosa Mayor
  1 sibling, 2 replies; 10+ messages in thread
From: Jorge A. Alfaro-Murillo @ 2015-05-08 16:29 UTC (permalink / raw)
  To: emacs-orgmode

Hi Igor.

Igor Sosa Mayor writes:

> I'm using very often the sort function of lists. Unfortunately 
> it is bound to a key combination (C-c ^) which is rather uneasy. 
> I would like to change it to C-c ñ. Which is the best method to 
> redefine it?

Doesn't the standard

(eval-after-load "org" '(define-key org-mode-map (kbd "C-c ñ") 
'org-sort))

work?

-- 
Jorge.

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

* bug:? org babel updating images (C-c C-c) triggers "show as text" (C-c C-c) in imagemagick buffer.
  2015-05-08 16:29 ` Jorge A. Alfaro-Murillo
@ 2015-05-08 19:22   ` Leo Ufimtsev
  2015-05-10 12:45     ` Eric S Fraga
  2015-05-09  8:08   ` Redefine key for sorting Igor Sosa Mayor
  1 sibling, 1 reply; 10+ messages in thread
From: Leo Ufimtsev @ 2015-05-08 19:22 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello, 

I use org-babel to make graphviz diagrams in my notes.

I open resulting images in the side panel via C-u C-c C-o (or right-click image).
(See 20 screen shot)

Now it shows the image fine at first.

Then I run org-babel in the text buffer (on the left) to update the image on disk (C-c C-c).
But for some reason, this also calls 'show as text' 'C-c C-c' (image-toggle-display) in the side panel and causes the image to look like bits of text.

I then have to constantly go to the side panel to return it back to image. (C-c C-c). 

Sometimes I it happens after the 2nd update of the image. But eventually I'll see text.

I can't find any way to stop this from happening. 
I've tried to remove keybindings to image-toggle-dispaly, tried to re-define image-toggle-display-text to do nothing, but this still happens.

Any advice?

Emacs 25.0.50.4 with org-mode from this morning.

-- 
Leo Ufimtsev | Intern Software Engineer @ Eclipse Team

[-- Attachment #2: Selection_019.png --]
[-- Type: image/png, Size: 362194 bytes --]

[-- Attachment #3: Selection_020.png --]
[-- Type: image/png, Size: 134556 bytes --]

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

* Re: Redefine key for sorting
  2015-05-08 16:29 ` Jorge A. Alfaro-Murillo
  2015-05-08 19:22   ` bug:? org babel updating images (C-c C-c) triggers "show as text" (C-c C-c) in imagemagick buffer Leo Ufimtsev
@ 2015-05-09  8:08   ` Igor Sosa Mayor
  1 sibling, 0 replies; 10+ messages in thread
From: Igor Sosa Mayor @ 2015-05-09  8:08 UTC (permalink / raw)
  To: emacs-orgmode

jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) writes:

> Hi Igor.
>
> Igor Sosa Mayor writes:
>
>> I'm using very often the sort function of lists. Unfortunately it is
>> bound to a key combination (C-c ^) which is rather uneasy. I would
>> like to change it to C-c ñ. Which is the best method to redefine it?
>
> Doesn't the standard
>
> (eval-after-load "org" '(define-key org-mode-map (kbd "C-c ñ")
> 'org-sort))
>
> work?

yes of course, it works. Thanks a lot!

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

* Re: Redefine key for sorting
  2015-05-08 15:42 ` Leo Ufimtsev
@ 2015-05-09  8:09   ` Igor Sosa Mayor
  0 siblings, 0 replies; 10+ messages in thread
From: Igor Sosa Mayor @ 2015-05-09  8:09 UTC (permalink / raw)
  To: emacs-orgmode

Leo Ufimtsev <lufimtse@redhat.com> writes:

> My C-c ^ doesn't appear to be mapped to sorting of the list. 
>
> But if you press C-h k, then your key-combo, then it shows you which function is being called. e.g org-sort-list.
>
> You can then re-map via a function like:
> (define-key 'org-mode-map (kbd "C-c n") 'org-sort-list)
>
> Which you could add to your .emacs file.
>
> This article provides a more comprehensive keyboard remapping guide:
> https://www.masteringemacs.org/article/mastering-key-bindings-emacs

thanks! I knew the article but i forgot it...

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

* Re: bug:? org babel updating images (C-c C-c) triggers "show as text" (C-c C-c) in imagemagick buffer.
  2015-05-08 19:22   ` bug:? org babel updating images (C-c C-c) triggers "show as text" (C-c C-c) in imagemagick buffer Leo Ufimtsev
@ 2015-05-10 12:45     ` Eric S Fraga
  2015-05-10 20:37       ` Sebastien Vauban
  0 siblings, 1 reply; 10+ messages in thread
From: Eric S Fraga @ 2015-05-10 12:45 UTC (permalink / raw)
  To: Leo Ufimtsev; +Cc: emacs-orgmode

On Friday,  8 May 2015 at 15:22, Leo Ufimtsev wrote:
> Hello, 
>
> I use org-babel to make graphviz diagrams in my notes.
>
> I open resulting images in the side panel via C-u C-c C-o (or right-click image).
> (See 20 screen shot)
>
> Now it shows the image fine at first.
>
> Then I run org-babel in the text buffer (on the left) to update the image on disk (C-c C-c).
> But for some reason, this also calls 'show as text' 'C-c C-c'
> (image-toggle-display) in the side panel and causes the image to look
> like bits of text.
>
> I then have to constantly go to the side panel to return it back to image. (C-c C-c). 
>
> Sometimes I it happens after the 2nd update of the image. But eventually I'll see text.

this happens to me all the time so it's nothing unique in your
configuration.  I also find it very annoying and would love to see a
solution.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1104-gbce77d

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

* Re: bug:? org babel updating images (C-c C-c) triggers "show as text" (C-c C-c) in imagemagick buffer.
  2015-05-10 12:45     ` Eric S Fraga
@ 2015-05-10 20:37       ` Sebastien Vauban
  2015-05-11  8:08         ` Eric S Fraga
  2015-05-11 15:18         ` Leo Ufimtsev
  0 siblings, 2 replies; 10+ messages in thread
From: Sebastien Vauban @ 2015-05-10 20:37 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Eric S Fraga wrote:
> On Friday,  8 May 2015 at 15:22, Leo Ufimtsev wrote:
>> I use org-babel to make graphviz diagrams in my notes.
>>
>> I open resulting images in the side panel via C-u C-c C-o (or right-click image).
>> (See 20 screen shot)
>>
>> Now it shows the image fine at first.
>>
>> Then I run org-babel in the text buffer (on the left) to update the image on disk (C-c C-c).
>> But for some reason, this also calls 'show as text' 'C-c C-c'
>> (image-toggle-display) in the side panel and causes the image to look
>> like bits of text.
>>
>> I then have to constantly go to the side panel to return it back to image. (C-c C-c). 
>>
>> Sometimes I it happens after the 2nd update of the image. But eventually I'll see text.
>
> this happens to me all the time so it's nothing unique in your
> configuration.  I also find it very annoying and would love to see a
> solution.

IIUC, you should retrain yourselves to use other key bindings than the
"do-it-all" C-c C-c.

For executing code, that's C-c C-v C-e (or e on the beginning of the
code block -- speed key).

For images, that's C-c C-x C-v.

In fact, I never use C-c C-c in Org. I've even customized:

  (setq org-babel-no-eval-on-ctrl-c-ctrl-c t)

to be sure to unlearn C-c C-c.

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: bug:? org babel updating images (C-c C-c) triggers "show as text" (C-c C-c) in imagemagick buffer.
  2015-05-10 20:37       ` Sebastien Vauban
@ 2015-05-11  8:08         ` Eric S Fraga
  2015-05-11 15:18         ` Leo Ufimtsev
  1 sibling, 0 replies; 10+ messages in thread
From: Eric S Fraga @ 2015-05-11  8:08 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: emacs-orgmode

On Sunday, 10 May 2015 at 22:37, Sebastien Vauban wrote:

[...]

> IIUC, you should retrain yourselves to use other key bindings than the
> "do-it-all" C-c C-c.

No, this has nothing to do with C-c C-c in org.  It has to do with what
Emacs does with image buffers so is potentially a little off-topic.

If you have an image that is being viewed in a separate buffer, not an
org buffer, and if that image gets updated by, for instance, executing
an org babel src block, sometimes (in my case almost always), the update
of the image in the image buffer shows text instead of the image.

In the image buffer, C-c C-c will toggle display of image or text but
one shouldn't have to do that.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-820-gd92ef9

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

* Re: bug:? org babel updating images (C-c C-c) triggers "show as text" (C-c C-c) in imagemagick buffer.
  2015-05-10 20:37       ` Sebastien Vauban
  2015-05-11  8:08         ` Eric S Fraga
@ 2015-05-11 15:18         ` Leo Ufimtsev
  1 sibling, 0 replies; 10+ messages in thread
From: Leo Ufimtsev @ 2015-05-11 15:18 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: emacs-orgmode



----- Original Message -----
> From: "Sebastien Vauban" <sva-news@mygooglest.com>
> To: emacs-orgmode@gnu.org
> Sent: Sunday, May 10, 2015 4:37:39 PM
> Subject: Re: [O] bug:? org babel updating images (C-c C-c) triggers "show as	text" (C-c C-c) in imagemagick buffer.
> 
> Eric S Fraga wrote:
> > On Friday,  8 May 2015 at 15:22, Leo Ufimtsev wrote:
> >> I use org-babel to make graphviz diagrams in my notes.
> >>
> >> I open resulting images in the side panel via C-u C-c C-o (or right-click
> >> image).
> >> (See 20 screen shot)
> >>
> >> Now it shows the image fine at first.
> >>
> >> Then I run org-babel in the text buffer (on the left) to update the image
> >> on disk (C-c C-c).
> >> But for some reason, this also calls 'show as text' 'C-c C-c'
> >> (image-toggle-display) in the side panel and causes the image to look
> >> like bits of text.
> >>
> >> I then have to constantly go to the side panel to return it back to image.
> >> (C-c C-c).
> >>
> >> Sometimes I it happens after the 2nd update of the image. But eventually
> >> I'll see text.
> >
> > this happens to me all the time so it's nothing unique in your
> > configuration.  I also find it very annoying and would love to see a
> > solution.
> 
> IIUC, you should retrain yourselves to use other key bindings than the
> "do-it-all" C-c C-c.
> 
> For executing code, that's C-c C-v C-e (or e on the beginning of the
> code block -- speed key).

Thank you for the suggestion.

Unfortunately the C-c C-v C-e produces the same effect. 

It seems there's something else going on there :-/

Hmmm.

> For images, that's C-c C-x C-v.
> 
> In fact, I never use C-c C-c in Org. I've even customized:
> 
>   (setq org-babel-no-eval-on-ctrl-c-ctrl-c t)
> 
> to be sure to unlearn C-c C-c.
> 
> Best regards,
>   Seb
> 
> --
> Sebastien Vauban
> 
> 
> 

-- 
Leo Ufimtsev | Intern Software Engineer @ Eclipse Team

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

end of thread, other threads:[~2015-05-11 15:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-08 10:01 Redefine key for sorting Igor Sosa Mayor
2015-05-08 15:42 ` Leo Ufimtsev
2015-05-09  8:09   ` Igor Sosa Mayor
2015-05-08 16:29 ` Jorge A. Alfaro-Murillo
2015-05-08 19:22   ` bug:? org babel updating images (C-c C-c) triggers "show as text" (C-c C-c) in imagemagick buffer Leo Ufimtsev
2015-05-10 12:45     ` Eric S Fraga
2015-05-10 20:37       ` Sebastien Vauban
2015-05-11  8:08         ` Eric S Fraga
2015-05-11 15:18         ` Leo Ufimtsev
2015-05-09  8:08   ` Redefine key for sorting Igor Sosa Mayor

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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).