Re: [O] Suppress table when creating gnuplot on HTML export?

2018-02-27 Thread John Kitchin
Can you just put the table in a section tagged noexport, e.g.


* data
 :noexport:

#+tblname: mydata
| -2 | 0 |
| -0.015 | 0 |
||   |
|  0.015 | 1 |
|  2 | 1 |

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 Tue, Feb 27, 2018 at 6:27 PM, Lawrence Bottorff 
wrote:

> I've got this:
>
> #+tblname: mydata
> | -2 | 0 |
> | -0.015 | 0 |
> ||   |
> |  0.015 | 1 |
> |  2 | 1 |
>
> ##+begin_src gnuplot :var data=mydata :exports results :file
> images/gap1.png
> #+begin_src gnuplot :var data=mydata :results output :file images/gap1.png
> reset
> set terminal png size 350,262
> set border linewidth 1.5
> # set style line 1 lc rgb '#0060ad' lt 1 lw 2 pt 6 ps 1.25 # --- blue
> set style line 1 lc rgb '#0060ad' lt 1 lw 2 # --- blue
> set data missing
>
> unset key
>
> set ytics 1
> set tics scale 0.75
>
> set xrange [-2:2]
> set yrange [-0.5:1.5]
> set xzeroaxis linetype 2 linewidth 1
> set yzeroaxis linetype 2 linewidth 1
> set tics scale 0.75
> set xtics 1
> set ytics 0.5
>
> # Defining a step function
> #s(x) = x<0 ? 0.0 : 1.0
>
> plot data with lines ls 1
> #+end_src
>
> which works fine producing exactly the image I want. However, I don't
> really need the table showing up on an export (to html at the moment). Is
> there a way to suppress the table `mydata` from being shown?
>
> LB
>


[O] Suppress table when creating gnuplot on HTML export?

2018-02-27 Thread Lawrence Bottorff
I've got this:

#+tblname: mydata
| -2 | 0 |
| -0.015 | 0 |
||   |
|  0.015 | 1 |
|  2 | 1 |

##+begin_src gnuplot :var data=mydata :exports results :file images/gap1.png
#+begin_src gnuplot :var data=mydata :results output :file images/gap1.png
reset
set terminal png size 350,262
set border linewidth 1.5
# set style line 1 lc rgb '#0060ad' lt 1 lw 2 pt 6 ps 1.25 # --- blue
set style line 1 lc rgb '#0060ad' lt 1 lw 2 # --- blue
set data missing

unset key

set ytics 1
set tics scale 0.75

set xrange [-2:2]
set yrange [-0.5:1.5]
set xzeroaxis linetype 2 linewidth 1
set yzeroaxis linetype 2 linewidth 1
set tics scale 0.75
set xtics 1
set ytics 0.5

# Defining a step function
#s(x) = x<0 ? 0.0 : 1.0

plot data with lines ls 1
#+end_src

which works fine producing exactly the image I want. However, I don't
really need the table showing up on an export (to html at the moment). Is
there a way to suppress the table `mydata` from being shown?

LB


Re: [O] Bug: org-paste-subtree displaces folded content [9.1.6 (9.1.6-48-gfe7619-elpaplus @ /home/ionasal/.emacs.d/elpa/org-plus-contrib-20180212/)]

2018-02-27 Thread Allen Li
On Mon, Feb 26, 2018 at 3:11 PM Nicolas Goaziou 
wrote:

> Hello,

> Allen Li  writes:

> > I modified the example a bit and made the undesired behavior unclear.
> >
> > * foo
> > :PROPERTIES:
> > :ID: a
> > :END:
> > * bar
> > :PROPERTIES:
> > :ID: b
> > :END:
> >
> > Folded, this looks like
> >
> > * foo...
> > * bar...
> >
> > With point on the f in foo, press C-c C-x C-w.  With point on the b in
bar,
> > press C-c C-x C-y.  Results in
> >
> > * bar
> > * foo...
> >
> > Unfolded, this looks like
> >
> > * bar
> > * foo
> > :PROPERTIES:
> > :ID: a
> > :END:
> > :PROPERTIES:
> > :ID: b
> > :END:
> >
> > I would expect C-c C-x C-y to work like C-RET rather than M-RET, that
is to
> > always append after the heading and body rather than splitting it.

> I changed the behaviour of `org-paste-subtree' in master. Does it solve
> the issue?

No, the issue still exists.


> Thank you.

> Regards,

> --
> Nicolas Goaziou



Re: [O] [RFC] Could we get rid of Org specific "mark ring"

2018-02-27 Thread Samuel Wales
oh, oops, didn't notice the replace xref bindings part.  that's up to
xref users.



Re: [O] [RFC] Could we get rid of Org specific "mark ring"

2018-02-27 Thread Samuel Wales
no objections, assuming tags users don't need those bindings?

no objections to anything allen said.

other things that can be useful in org mark ring imo are refile-goto
and going to outline from agenda.

===

off topic question:

  - why are any mark rings rings?  why are they not queues?  do users
prefer to cycle around 16, 32, or whatever number of times instead of
using next and prev?

same questions about kill ring.



[O] Broken Worg link

2018-02-27 Thread Thomas S. Dye

Aloha all,

https://orgmode.org/worg/org-contrib/babel/languages.html 404s 
here.


All the best,
Tom

--
Thomas S. Dye
http://www.tsdye.com



Re: [O] Add C-u behavior to ?

2018-02-27 Thread Nicolas Goaziou
Hello,

Kaushal Modi  writes:

> Lately, I have seen myself end up in a scenario where the point is at | as
> shown below, and I need to insert an Org heading at point.
>
> =
> * heading
> - list item
> |
> content
> =
>
> Currently, I cannot any way to insert heading at point while *not
> respecting* the content, when the point is *immediately* after a list item.
>
> C-return, C-u C-return, M-return, C-u M-return, none work.
>
> I see that C-u C-return is "free".
>
> C-return is bound to `org-insert-heading-respect-content ' whose definition
> is simply:
>
> (defun org-insert-heading-respect-content ( invisible-ok)
>   "Insert heading with `org-insert-heading-respect-content' set to t."
>   (interactive)
>   (org-insert-heading '(4) invisible-ok))
>
> Would a patch be accepted that passes nil as ARG to org-insert-heading,
> instead of '(4)?

My gut feeling is that we should first try to rationalize functions for
`M-RET' and `C-RET' along with all their prefix arguments. For example,
the behaviour you describe might be better served with `C-u M-RET', as
in "insert a headline right here, whatever that means".

I don't suggest to change `M-RET' itself, but I'm sure we can discuss
about what can be done with the other relative bindings.

I don't think C-RET is available in a terminal either. It may limit us
about what we can do with it.

Regards,

-- 
Nicolas Goaziou



Re: [O] Broken worg link

2018-02-27 Thread Eric S Fraga
On Tuesday, 27 Feb 2018 at 08:57, Alex Branham wrote:
> On this page:
>
> https://orgmode.org/worg/org-tutorials/org-google-sync.html
>
> the link ical2org.awk 404s for me.

Ah, interesting.  I probably should have checked that link before
recommending looking at the code...

In the meantime, I attach my current version of this awk script which
does differ to what is on Worg in some subtle ways but the differences
should not matter for many use cases.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-352-g92176c


ical2org.awk
Description: Binary data


signature.asc
Description: PGP signature


Re: [O] Ical to org, in Go lang.

2018-02-27 Thread Robert Horn

Eric S Fraga writes:

> If you use gnus, it comes with a gnus-icalendar package which will
> convert calendar attachments to org entries.  You can export to org &
> accept/decline events.  I use this all the time.

I use mu4e, but I may steal from gnus-icalendar.

Thanks

-- 
Robert Horn
rjhorn...@gmail.com



[O] Add C-u behavior to ?

2018-02-27 Thread Kaushal Modi
Hello,

Lately, I have seen myself end up in a scenario where the point is at | as
shown below, and I need to insert an Org heading at point.

=
* heading
- list item
|
content
=

Currently, I cannot any way to insert heading at point while *not
respecting* the content, when the point is *immediately* after a list item.

C-return, C-u C-return, M-return, C-u M-return, none work.

I see that C-u C-return is "free".

C-return is bound to `org-insert-heading-respect-content ' whose definition
is simply:

(defun org-insert-heading-respect-content ( invisible-ok)
  "Insert heading with `org-insert-heading-respect-content' set to t."
  (interactive)
  (org-insert-heading '(4) invisible-ok))

Would a patch be accepted that passes nil as ARG to org-insert-heading,
instead of '(4)?

-

I am aware that M-return does what I want if I first manully insert
newlines after a list to "break" the list (by first moving the point as
shown below).

=
* heading
- list item


| (now do M-return)
content
=

But still, having C-u C-return binding would be nicer..
-- 

Kaushal Modi


Re: [O] [RFC] Could we get rid of Org specific "mark ring"

2018-02-27 Thread Nicolas Goaziou
Hello,

Allen Li  writes:

> I retract my previous stance and think that we should keep the
> org-mark-ring for now.  While I do not use the org-mark-ring, I do use
> xref's marker ring, and I appreciate the value of a "link ring"
> separate from mark-ring and global-mark-ring.

[...]

> My opinion is thus to keep org-mark-ring for now and discuss on
> emacs-devel.  It’s true that emacs-devel is conservative (and slow),
> but I think it’s worth asking at least.

Then I suggest to bind `org-mark-ring-push' to `M-.' and
`org-mark-ring-goto' to `M-,', i.e., replace xref global bindings for
Org buffers. This will at least solve the third issue I pointed out.

Any objection?

Regards,

-- 
Nicolas Goaziou



[O] Broken worg link

2018-02-27 Thread Alex Branham
On this page:

https://orgmode.org/worg/org-tutorials/org-google-sync.html

the link ical2org.awk 404s for me.

Thanks,
Alex



Re: [O] Ical to org, in Go lang.

2018-02-27 Thread Eric S Fraga
On Monday, 26 Feb 2018 at 15:35, Robert Horn wrote:
> I have been working on converting ICal format files (.ics, .vcs, etc.)
> into org content.  This is now ready to share (by adventurous users
> only).

Thanks for this.  You might wish to have a look at the awk script I
wrote some years ago in case it helps with any remaining bits you need
to work on.  It's on worg:

https://orgmode.org/worg/org-tutorials/org-google-sync.html

It doesn't handle everything but does do the job for me in importing
outlook and google calendar events.

>  2.) Convert Ical formatted attachments.  I get a lot of these in
>  emails.  I'll eventually add something to emacs or mu4e. So far
>  I've saved them to files and converted the files.

If you use gnus, it comes with a gnus-icalendar package which will
convert calendar attachments to org entries.  You can export to org &
accept/decline events.  I use this all the time.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-352-g92176c


signature.asc
Description: PGP signature