emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* editing scheme fragments
@ 2017-01-04 13:11 Roger Mason
  2017-01-04 13:46 ` John Kitchin
  2017-01-04 14:06 ` Marco Wahl
  0 siblings, 2 replies; 10+ messages in thread
From: Roger Mason @ 2017-01-04 13:11 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

When I try to edit a scheme fragment such this

Header:
#+BEGIN_SRC scheme :tangle "header.skb" 
(document :title [A First Skribilo Block]
          :author [Roger Mason]
#+END_SRC

using C-c ', org thinks it is an org table.

I am using GNU Emacs 25.1.1 (i386-portbld-freebsd10.1, GTK+ Version
2.24.29) of 2016-11-04 and Org mode version 9.0.1
(release_9.0.1-47-gb06259)

Any help in tracking this down would be much appreciated.

Thanks,
Roger

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

* Re: editing scheme fragments
       [not found] <2768898debaf419aa10dd63e136f043c@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-01-04 13:38 ` Eric S Fraga
  2017-01-04 18:01   ` Roger Mason
  0 siblings, 1 reply; 10+ messages in thread
From: Eric S Fraga @ 2017-01-04 13:38 UTC (permalink / raw)
  To: emacs-orgmode

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

On Wednesday,  4 Jan 2017 at 13:11, Roger Mason wrote:
> Hello,
>
> When I try to edit a scheme fragment such this
>
> Header:
>
> #+BEGIN_SRC scheme :tangle "header.skb" 
> (document :title [A First Skribilo Block]
>           :author [Roger Mason]
> #+END_SRC
>
> using C-c ', org thinks it is an org table.

Works fine for me with later version of org (and emacs).

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.2-104-gf5b7de

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

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

* Re: editing scheme fragments
  2017-01-04 13:11 editing scheme fragments Roger Mason
@ 2017-01-04 13:46 ` John Kitchin
  2017-01-04 17:35   ` Roger Mason
  2017-01-04 14:06 ` Marco Wahl
  1 sibling, 1 reply; 10+ messages in thread
From: John Kitchin @ 2017-01-04 13:46 UTC (permalink / raw)
  To: Roger Mason; +Cc: emacs-orgmode@gnu.org

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

I can't reproduce that. I wonder if you should try running
org-element-cache-reset Sometimes I have seen org get confused when the
cache is out of date. this usually happens when I have code that generates
parts of the file.


John

-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


On Wed, Jan 4, 2017 at 8:11 AM, Roger Mason <rmason@mun.ca> wrote:

> Hello,
>
> When I try to edit a scheme fragment such this
>
> Header:
> #+BEGIN_SRC scheme :tangle "header.skb"
> (document :title [A First Skribilo Block]
>           :author [Roger Mason]
> #+END_SRC
>
> using C-c ', org thinks it is an org table.
>
> I am using GNU Emacs 25.1.1 (i386-portbld-freebsd10.1, GTK+ Version
> 2.24.29) of 2016-11-04 and Org mode version 9.0.1
> (release_9.0.1-47-gb06259)
>
> Any help in tracking this down would be much appreciated.
>
> Thanks,
> Roger
>
>

[-- Attachment #2: Type: text/html, Size: 1680 bytes --]

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

* Re: editing scheme fragments
  2017-01-04 13:11 editing scheme fragments Roger Mason
  2017-01-04 13:46 ` John Kitchin
@ 2017-01-04 14:06 ` Marco Wahl
  2017-01-04 17:38   ` Roger Mason
  1 sibling, 1 reply; 10+ messages in thread
From: Marco Wahl @ 2017-01-04 14:06 UTC (permalink / raw)
  To: emacs-orgmode

Hello!

> When I try to edit a scheme fragment such this
>
> Header:
>
> #+BEGIN_SRC scheme :tangle "header.skb" 
> (document :title [A First Skribilo Block]
>           :author [Roger Mason]
> #+END_SRC
>
> using C-c ', org thinks it is an org table.

Here org thinks it's scheme.

> [...]
> Any help in tracking this down would be much appreciated.

Guess: You should add scheme to org-babel-load-languages.  E.g. use M-x
customize-variable.


HTH

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

* Re: editing scheme fragments
  2017-01-04 13:46 ` John Kitchin
@ 2017-01-04 17:35   ` Roger Mason
  0 siblings, 0 replies; 10+ messages in thread
From: Roger Mason @ 2017-01-04 17:35 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode@gnu.org

Hello John,

John Kitchin <jkitchin@andrew.cmu.edu> writes:

> I can't reproduce that. I wonder if you should try running org-element-cache-reset Sometimes I
> have seen org get confused when the cache is out of date. this usually happens when I have code
> that generates parts of the file.

Thanks for the suggestion.  Unfortunately there is no change after
running that command.

Cheers,
Roger

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

* Re: editing scheme fragments
  2017-01-04 14:06 ` Marco Wahl
@ 2017-01-04 17:38   ` Roger Mason
  2017-01-04 18:13     ` Nick Dokos
  0 siblings, 1 reply; 10+ messages in thread
From: Roger Mason @ 2017-01-04 17:38 UTC (permalink / raw)
  To: emacs-orgmode

Hello Marco,

Marco Wahl <marcowahlsoft@gmail.com> writes:

> Guess: You should add scheme to org-babel-load-languages.  E.g. use M-x
> customize-variable.

Sorry, i should have mentioned that I tried that customisation without
success.

Cheers,
Roger

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

* Re: editing scheme fragments
  2017-01-04 13:38 ` Eric S Fraga
@ 2017-01-04 18:01   ` Roger Mason
  0 siblings, 0 replies; 10+ messages in thread
From: Roger Mason @ 2017-01-04 18:01 UTC (permalink / raw)
  To: emacs-orgmode

Hi Eric,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Works fine for me with later version of org (and emacs).

Unfortunately, updating to Org mode version 9.0.3
(release_9.0.3-170-gfed1cf) did not make any difference.

Cheers,
Roger

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

* Re: editing scheme fragments
  2017-01-04 17:38   ` Roger Mason
@ 2017-01-04 18:13     ` Nick Dokos
  2017-01-04 18:56       ` Roger Mason
  0 siblings, 1 reply; 10+ messages in thread
From: Nick Dokos @ 2017-01-04 18:13 UTC (permalink / raw)
  To: emacs-orgmode

Roger Mason <rmason@mun.ca> writes:

> Hello Marco,
>
> Marco Wahl <marcowahlsoft@gmail.com> writes:
>
>> Guess: You should add scheme to org-babel-load-languages.  E.g. use M-x
>> customize-variable.
>
> Sorry, i should have mentioned that I tried that customisation without
> success.
>
> Cheers,
> Roger
>
>
Try with a minimal init file, avoiding all your customizations (other than loadin
org and enabling scheme):

 emacs -q -l /path/to/minimal/init/file

Does it still fail?

-- 
Nick

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

* Re: editing scheme fragments
  2017-01-04 18:13     ` Nick Dokos
@ 2017-01-04 18:56       ` Roger Mason
  2017-01-04 22:33         ` Marco Wahl
  0 siblings, 1 reply; 10+ messages in thread
From: Roger Mason @ 2017-01-04 18:56 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode

Hello Nick,

Nick Dokos <ndokos@gmail.com> writes:

> Try with a minimal init file, avoiding all your customizations (other than loadin
> org and enabling scheme):
>
>  emacs -q -l /path/to/minimal/init/file
>
> Does it still fail?

Yes, but in trying this out I discovered that the keybinding I read as
"C-c `" (i.e. backtick) should be "C-c '" (i.e. apostrophe).  When I use
the correct keybinding it works as advertised.  Gosh.

I apologise for wasting the time of those who read my post and offered
their suggestions.  Maybe I'm just too old and stunned and in need of
new spectacles.

Thanks for your help,
Roger

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

* Re: editing scheme fragments
  2017-01-04 18:56       ` Roger Mason
@ 2017-01-04 22:33         ` Marco Wahl
  0 siblings, 0 replies; 10+ messages in thread
From: Marco Wahl @ 2017-01-04 22:33 UTC (permalink / raw)
  To: emacs-orgmode

Roger Mason <rmason@mun.ca> writes:

> Hello Nick,
>
> Nick Dokos <ndokos@gmail.com> writes:
>
>> Try with a minimal init file, avoiding all your customizations (other than loadin
>> org and enabling scheme):
>>
>>  emacs -q -l /path/to/minimal/init/file
>>
>> Does it still fail?
>
> Yes, but in trying this out I discovered that the keybinding I read as
> "C-c `" (i.e. backtick) should be "C-c '" (i.e. apostrophe).  When I use
> the correct keybinding it works as advertised.  Gosh.

Haha.

> I apologise for wasting the time of those who read my post and offered
> their suggestions.  Maybe I'm just too old and stunned and in need of
> new spectacles.

You showed at least one reader the C-c ` binding.  How could this be a
waste of time?

AFAICS the C-c ` binding is only useful on tables.  I think I will add a
respective check to help avoid confusion with C-c '.


Best regards

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

end of thread, other threads:[~2017-01-04 22:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-04 13:11 editing scheme fragments Roger Mason
2017-01-04 13:46 ` John Kitchin
2017-01-04 17:35   ` Roger Mason
2017-01-04 14:06 ` Marco Wahl
2017-01-04 17:38   ` Roger Mason
2017-01-04 18:13     ` Nick Dokos
2017-01-04 18:56       ` Roger Mason
2017-01-04 22:33         ` Marco Wahl
     [not found] <2768898debaf419aa10dd63e136f043c@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-01-04 13:38 ` Eric S Fraga
2017-01-04 18:01   ` Roger Mason

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