[O] How can I add a note to a TODO state change sometimes but not always?

2014-09-11 Thread William Denton

I have this in a projects file:

#+TODO: TODO(t!) WAITING(w!) DONE(d!) CANCELED(c@)

When I move something from TODO to WAITING, it adds a timestamp without asking 
for a note.  That's fine 8 or 9 times out of 10 ... but sometimes I want to add 
a note too.


If I use the @ it will always ask me for a note, and I have to C-c C-c to get 
out of that.  I'd like to avoid that if I can.


Is there a way (a prefix or alternate command) that I can use to have Org let me 
add an optional note when I change a TODO state?


I see that C-c C-z (org-add-note) adds a note, but it does it to the item as a 
whole, not to the WAITING workflow change, like so:


* WAITING Find out how to sometimes add a note when I change to WAITING
  - Note taken on [2014-09-11 Thu 11:36] \\
Asked on mailing list
  - State "WAITING"from "WAITING"[2014-09-11 Thu 11:30]
  - State "WAITING"from "TODO"   [2014-09-11 Thu 11:25]

Thanks,

Bill
--
William Denton ↔  Toronto, Canada ↔  http://www.miskatonic.org/

[O] electric-indent-mode in Emacs 25 not indenting in Org

2014-10-15 Thread William Denton
I got tired of waiting for prettify-symbols-mode so I compiled Emacs from 
source, which gives me version 25.0.50.1 (25 being next after 24.4).


I noticed something odd with electric-indent-mode, which I had enabled, and 
which is on by default in 24.4.


If I run Emacs 24.3 (my Ubuntu system default) as emacs -Q, then run M-x 
electric-indent-mode to enable the mode, open foo.org, and type


* Heading

then when I hit return the cursor ends up under the H.  That is one of the 
things electric-indent-mode does.


But when I run Emacs 25 with emacs -Q, check to make sure electric-indent-mode 
is enabled and see that it is because that's the default, open foo.org, and type


* Heading

then when I hit return the cursor ends up under the *!

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] No mention of ":results graphics" in docs on code blocks

2014-10-19 Thread William Denton
I just noticed there's no mention of the ":results graphics" header argument in 
the Org manual.


This worg documentation about source code blocks and R does mention it:

http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html

"If the value is :results graphics then 'base' graphics output is captured on 
disk, and a link to the graphics file is inserted into the Org Mode buffer (as 
is also the case with the graphics-only languages such as gnuplot, ditaa, dot, 
and asymptote.)"


(It goes on to say ":results output graphics" is necessary with ggplot2 images, 
but that's no longer true.)


I'm afraid I don't know enough about this header argument or its use elsewhere 
to offer a documentation patch, so I'm just pointing it out.


Working with R code blocks in Org is great.

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] electric-indent-mode in Emacs 25 not indenting in Org

2014-10-20 Thread William Denton

On 20 October 2014, Bastien wrote:


But when I run Emacs 25 with emacs -Q, check to make sure
electric-indent-mode is enabled and see that it is because that's the
default, open foo.org, and type

* Heading

then when I hit return the cursor ends up under the *!


What happens if you run M-x electric-indent-mode RET *twice* (to
disable and re-enable it) after you open the buffer?


Nothing different---the cursor ends up under the * after I hit return (and under 
the H if I hit C-j, as someone else noticed).


Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] R code blocks and 'could not find function ".ess.eval"'

2014-10-28 Thread William Denton
This problem was reported last month and then again earlier this month, for 
example here:


https://lists.gnu.org/archive/html/emacs-orgmode/2014-10/msg00178.html

I'm running Emacs 25.0.50.2, Org 8.2.10 and ESS 14.1x.  I'm getting a lot of

   Error: could not find function ".ess.eval"

errors when evaluating R code blocks, even simple ones like this:

  #+BEGIN_SRC R :session :exports results
  1 + 1
  #+END_SRC

I have a more complicated Org file with a bunch of R in it that I want to export 
to a PDF, but I get this:


   Args out of range: #, 0 ,1

I've been trying to debug it and seemed to narrow down a minimal example to 
whether or not a simple block had ":exports results" in it, but yesterday when 
working on this some process would go haywire and my machine would slow down 
and then freeze!  I had to force a reboot.  I've never had Emacs do that before.


I see that a patch was introduced for ob-R.el that fixes the 'could not find 
function ".ess.eval"' problem---will that be pushed into the main release soon?


And has anyone else been running into problems like this recently?  From what I 
saw in the archives it looks like it went away for most people.


Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] latex formatted output in buffer?

2014-11-07 Thread William Denton

On 7 November 2014, Lawrence Bottorff wrote:


Is there any way to have latex formatted math in a live org buffer? That
is, not in separate outputted pdf, ps, or html file, but right in the
running buffer?  I'm guessing it would be like babel where you run the code
snippet to see output -- and some sort of image of the formatted math would
be inserted?


Like this?

http://orgmode.org/org.html#Previewing-LaTeX-fragments


Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] Possible to recalculate tables automatically before exporting?

2014-11-13 Thread William Denton

Is it possible to make tables recalculate automatically when exporting?

In a file I'm working on now, I have a table with formulas that take two 
columns of numbers I enter and turn them into two columns of derived numbers.  I 
had missed one line of data, so I entered it, but forgot to recalculate the 
table, so when I exported some numbers were missing.


It was trivial to do by hand, of course, but I looked for a setting that would 
automate this and didn't see it.  Did I overlook it, or is it not there?


Thanks,

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] Using org-lookup-all to count values in a table column

2013-09-24 Thread William Denton
I'm taking a stab at keeping my reading diary in Org.  I keep track of all 
the books I read, and some other facts about them, including whether 
they're fiction (F) or nonfiction (N).


So I would have a table something like the books table below, and I'd like 
to do some analysis on it and put the results in another table.  I'd like 
to count how many books are of Type F and how many of Type N, and it looks 
like matching values with org-lookup-all (as explained in [1]) is the 
right way, but I can't get it to work.


I have this:

#+TBLNAME: books
| Title| Author | Type |
|--++--|
| NOS4A2   | Joe Hill   | F|
| Gun Machine  | Warren Ellis   | F|
| Carry On, Jeeves | P.G. Wodehouse | F|
| Time Reborn  | Lee Smolin | N|

#+TBLNAME: analysis
| Fact  | Value |
|---+---|
| Fiction books | 1 |
| Nonfiction  books |   |
#+TBLFM: $2@2='(length(org-lookup-all "F" '(remote(books,$3@2..$3@>)) nil))

The fiction count should be 3, not 1.  Can anyone see what I'm doing 
wrong?


Thanks,

Bill

[1] http://orgmode.org/worg/org-tutorials/org-lookups.html

--
William Denton
Toronto, Canada
http://www.miskatonic.org/




Re: [O] Using org-lookup-all to count values in a table column

2013-09-25 Thread William Denton
For the record I was mailed off-list and it was pointed out I had the 
row/column order reversed in my formula.



#+TBLFM: $2@2='(length(org-lookup-all "F" '(remote(books,$3@2..$3@>)) nil))


Using @2$2 etc makes it all work.

Org spreadsheets are great!

Bill
--
William Denton
Toronto, Canada
http://www.miskatonic.org/




Re: [O] Org Tutorials need more structure

2013-10-01 Thread William Denton

On 28 September 2013, Carsten Dominik wrote:


Can we have a discussion here on how this path should look like?
When you came to Org-mode as a newby, what were the three resources
that really made an impression on by being accessible and
providing feel and promise for digging deeper?


I'm fairly new to Org; I started just when it moved to version 8.  I'd 
been using outline mode or Markdown for notes and that was good enough for 
the way I managed my tasks, but what drew me over was:


- the compact guide and Organize Your Life in Plain Text, which showed how 
much more Org does than to-do lists
- seeing how I could embed code in a document with Babel, and view images 
inside Emacs
- seeing how I could export to Latex but still make everything look the 
way I like by including my usual header commands


The more I began to use Org for my own notes and research, and saw how 
other people managed their work in it, the more I saw in Org and the more 
I'd try.  (Talks like John Kitchin's sealed the deal.)


I'm grateful to everyone that's helped with the documentation or posted 
snippets on blogs or Stack Overflow ... there are lots of times when I'm 
not sure how to get something working but find a perfect example 
somewhere.


Bill
--
William Denton
Toronto, Canada
http://www.miskatonic.org/




[O] Small bug: No italic face when /italics/ inside a link

2013-10-04 Thread William Denton
When italics are applied to the anchor text of a link, the text is not 
italicized.  (I have org-fontify-emphasized-text set to t, so normally 
/italics/ are rendered in an italic face.)


# --- sample
Italics outside link: /[[http://orgmode.org/][Org]]/

Italics inside link: [[http://orgmode.org/][/Org/]]
# ---

When I look at it in Emacs, "Org" in the first line is in italics (no /s), but in the second line I 
see


   /Org/

as the anchor text.

When exported to HTML it is turned into  as it should, so that's fine, 
but shouldn't it show in italics in Emacs?


Bill
--
William Denton
Toronto, Canada
http://www.miskatonic.org/




Re: [O] org-mode in the wild

2013-11-02 Thread William Denton

On 2 November 2013, John Kitchin wrote:


We had another manuscript written in org-mode accepted in Topics in
Catalysis (http://link.springer.com/article/10.1007%2Fs11244-013-0166-3)!
Check out references 14, 39 and 40 ;)


Lovely!  Here's the start of section 4, "Manuscript Preparation Method:"

"This manuscript was prepared in a manner sufficiently different than 
standard methods that we feel it warrants discussion. In this work, we 
have prepared a single document containing all of the raw data, the 
analysis of the raw data that has led to the figures and conclusions in 
the manuscript, and the manuscript itself. The document is in plain text 
format, marked up using org-mode syntax [14]. Org-mode is a lightweight 
text markup language that enables intermingling of narrative text, data 
and analysis code in an active document [39] when viewed in the editor 
Emacs (http://www.gnu.org/software/emacs/). This approach is known as 
literate programming and reproducible research [40]. Notably, files in 
org-mode syntax can be exported to a variety of other formats including 
LaTEX, PDF and html. The export can be done selectively to include only 
portions of the complete document. The published manuscript was exported 
from this document to create LaTEX source which was submitted to this 
journal. The Supplementary information file is the document itself, which 
includes all of the data used in the analysis. All analysis was done using 
Python (http://python.org), and figures were generated with Matplotlib 
[24]. All of these software packages are open-source and freely 
available."


The citations:

14. Dominik C (2010) The Org Mode 7 Reference Manual: Organize your life with 
GNU Emacs. Network Theory, UK.
39. Schulte E, Davison D (2011) Active documents with org-mode. Comput Sci Eng 
13(3):66–73
40. Schulte E, Davison D, Dye T, Dominik C (2012) A multi-language computing 
environment for literate programming and reproducible research. J Stat Softw 
46(3):1–24


Bill
--
William Denton
Toronto, Canada
http://www.miskatonic.org/


[O] Exporting tables to ODS spreadsheets, with formatting?

2015-10-01 Thread William Denton
M-x org-table-export lets me export a table to a TSV or CSV file, which can be 
very useful, but it exports the pure text, so [[URL][links]] and such shows.


Exporting to ODT turns the table into a nice table in a word processing 
document, with URLs as links.


Is there a way to export a table to an ODS spreadsheet?  Has anyone hacked ODT 
export so that works, perhaps?


Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] Latex compilation broken on orgmode master?

2015-10-01 Thread William Denton

On 29 September 2015, Kaushal Modi wrote:


Doing C-c C-e l o on any org file gives me the error

Symbol's value as variable is void: compile

If I use the latest org-mode-plus-contrib package from org elpa, latex
compilation works fine.

Can anyone using org git master confirm this?


I got that too, but restarting Emacs fixed it.

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] contributing to work on citations

2015-11-04 Thread William Denton

On 4 November 2015, Will Monroe wrote:


As someone who uses Zotero and org-mode quite a bit, I'd be glad to help
with testing, if that would be useful.  I'm learning Elisp but I'm still
a beginner.  Nevertheless, I have a keen interest in bringing together
these tools.


Same here---I'm glad to test.

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] footnote fontify causing massive slowdown

2015-12-05 Thread William Denton

On 5 December 2015, Nicolas Goaziou wrote:


However, this report raises an interesting question about footnotes:
should we still support plain (e.g., "[1]") footnotes in Org documents?

The pattern is very common an regularly introduces false positives.
Also, IIRC, it was introduced for non-Org buffers (e.g., in Message mode
buffers), to provide some common features with "footnote.el" library.

I think we could remove this kind of footnotes, and yet preserve
`org-footnote-normalize' to change Org footnotes into these ones, for
foreign documents.


+1.  The false positives are a common problem for me, and [fn:1] works cleanly 
and clearly.


Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] "Symbol's value as variable is void: org-file-apps"

2015-12-21 Thread William Denton
After compiling from a fresh pull from Git today, setting org-file-apps is 
causing problems.  I have this so make Org exports to PDF open in evince instead 
of Emacs's built-in docview:


(delete '("\\.pdf\\'" . default) org-file-apps)
(add-to-list 'org-file-apps '("\\.pdf\\'" . "evince %s"))

This was fine last week, but today, on startup, either line causes this error:

Symbol's value as variable is void: org-file-apps

If I C-x C-e those two lines after startup has halted, there are no complaints.

Did something about this variable change?  I had a bit of a look but didn't see 
what could have caused it.


Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] Adjust Keywords

2016-01-31 Thread William Denton

On 31 January 2016, Martin wrote:


I don't know why, but sometimes the Keywords which are ragged right are
not in line anymore.  Is there a way to put them all in the correct
position as if I would do C-c C-c RET on  the header in all the lines?


Tags on headlines?  They will realign with C-u C-c C-q.

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] Problem with src_ruby inline code and []

2016-03-15 Thread William Denton
I was updating and exporting a file where I use Ruby to do some basic 
arithmetic on tables, and noticed that inline code blocks where I reference an 
array aren't working.


If you C-c C-c on this simple src_ruby example you get the results.

src_ruby{1 + 2} {{{results(=3=)}}}

But this doesn't work:

#+NAME: sampletable
| name | one | two |
| Me   |   5 |   3 |
| You  |   4 |   6 |

src_ruby[:var t=sampletable]{t[2][2]}

It changes the line to

src_ruby[:var t=sampletable]{t[2] {{{results(==)}}}[2]}

and says:

-:5: syntax error, unexpected keyword_end, expecting ']'
-:7: syntax error, unexpected end-of-input, expecting keyword_end

However, this does work:

#+BEGIN_SRC ruby :var t=sampletable
t[2][2]
#+END_SRC

#+RESULTS:
: 6


Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] How to export table from a src block?

2016-03-28 Thread William Denton
I have a big table (with #+NAME: mytable).  I can export it to a CSV file by 
hand by having the point somewhere in the table and running


M-x org-table-export

but how could I do this from a source block?  I've got one line so far, but how 
would I get it to be in the table when it runs?  There's nothing else in this 
file, just a table and then this source block.


#+BEGIN_SRC emacs-lisp
(org-table-export "/tmp/mytable.csv" "orgtbl-to-csv")
#+END_SRC

Any help appreciated!

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] Recent bug in R source blocks generating images

2016-04-07 Thread William Denton

This is

#+BEGIN_SRC R :session :results graphics :file example.png :width 800 :height 
400
library(ggplot2)
ggplot(mpg, aes(class)) + geom_bar()
#+END_SRC


--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] Recent bug? in R source blocks generating images

2016-04-07 Thread William Denton

Sorry about that; hit send too soon.

There's something odd happening to me tonight with R source blocks and :session.

This works, and generates an image:

#+BEGIN_SRC R :results graphics :file example.png
plot(1)
#+END_SRC

But if I start an R session (M-x R) and then run this, with :session, I get an 
error.


#+BEGIN_SRC R :session :results graphics :file example.png
plot(1)
#+END_SRC

The error is

+ + Error: unexpected symbol in:
"plot(1)
},error=function(e){plot(x=-1:1, y=-1:1, type='n"

That error= bit at the end looks related to my plot() example, but I don't think 
it is: the same error appears if I use ggplot2 (which is how I noticed it).


This is with Emacs and Org compiled from current source trees.  It was working 
earlier this week, but I've updated since then.  I refreshed everything 
(including R packages) and still get the error.  I looked at the recent Org 
commits but don't see what might have done it, but I also don't think I'm doing 
anything wrong.


Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] Recent bug? in R source blocks generating images

2016-04-08 Thread William Denton

On 8 April 2016, Rainer M Krug wrote:


than I went back to

Org-mode version 8.3.4 (release_8.3.4-702-gcd47ab 
@/Users/rainerkrug/.emacs.d/org-mode/lisp/)

and it was not working either. But there was an update of ESS at the
same time which should have caused this.

OK - commit 9be858b of ESS is still fine.

Could you please submit this to the ESS list?


Thanks for looking.  I've reported this to the ESS list.

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] Recent bug? in R source blocks generating images

2016-04-08 Thread William Denton

On 8 April 2016, Rainer M Krug quoted me:


There's something odd happening to me tonight with R source blocks and :session.


This is fixed now.  It was a problem with ESS.  Thanks for the pointer.

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] Using source blocks instead of Ansible

2016-04-27 Thread William Denton
Is anyone using Org for remote configuration management instead of a tool like 
Ansible?


For example:  I like to install R from source to /usr/local/src/R/ so that I 
always have the latest version.  I do this (changing the version numbers as 
needed, though looking at it now I see I should set the version number as a 
variable):


#+BEGIN_SRC shell
cd /usr/local/src/R
curl -O http://cran.utstat.utoronto.ca/src/base/R-3/R-3.2.4.tar.gz
tar xzvf R-3.2.4.tar.gz
cd R-3.2.4
./configure
make
make check
cd ..
rm -f R Rscript
ln -s R-3.2.4/bin/R R
ln -s R-3.2.4/bin/Rscript Rscript
#+END_SRC

I do that on a few machines and copy and paste as needed.  Now, I could use

:dir /me@remote:

to run that on another machine.  And if I want to run that on multiple machines 
I could change the target as needed.


Has anyone taken this to the next level so it's easier to manage tasks like 
this, more reproducible, tidier, and closer to Ansible or Chef?  If so I'd love 
to see an example.  Or if anyone's tried and found it's just easier to use a 
proper purpose-built system, that's good to know too.


Looking in the archives I see there was mention a couple of years ago of 
org-converge, but it's idle:


https://github.com/wallyqs/org-converge

Cheers,

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] R source block :session errors, perhaps due to recent ESS change

2016-05-03 Thread William Denton
I updated my packages today and now Org documents with R source blocks are 
failing when I try to use a running R session.


If you start R and leave that session open, then run this in an Org doc, it will 
fail (though it will success without the :session parameter):


#+BEGIN_SRC R :session :results values
1
#+END_SRC

The error I get (which includes a lot of junk I can't paste; why, I don't know) 
is


ess-eval-buffer: Wrong number of arguments: #[(start end toggle &optional 
message) ... junk ... [ess-local-customize-alist toggle ess-eval-visibly message 
proc visibly ess-force-buffer-current "Process to use: " "Starting 
evaluation..." ess-setq-vars-local ...] 6 
("/home/wdenton/.emacs.d/elpa/ess-20160502.557/lisp/ess-inf.elc" . 48726) "r

P"], 5

Now, the most recent commit to lisp/ess-inf.el had the comment "Get rid of 
needless `inject` argument:"


https://github.com/emacs-ess/ESS/commit/6b89391a13322ff2297fb3895ed665ff2048fc10#diff-724cde45c58d919c6bb8e85b26faf792

Perhaps that is the cause?  I suspect it's Org talking to ESS, but if it's a 
problem in ESS I can take it to that mailing list.



Emacs  : GNU Emacs 25.1.50.29 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.7)
 of 2016-05-03

Org-mode version 8.3.4 (release_8.3.4-771-g36dbdb @ 
/usr/local/src/org-mode/lisp/)


ess-version: 15.09-2 patched [elpa: 20160502.557] (loaded from 
/home/wdenton/.emacs.d/elpa/ess-20160502.557/)


Thanks,

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] R source block :session errors, perhaps due to recent ESS change

2016-05-04 Thread William Denton
Thanks.  The issue is fixed now, so Org R users can upgrade ESS without fear. 
It seems there's something in ESS that they didn't know anything relied on, but 
it turns out Org does.


Bill

On 3 May 2016, John Hendy wrote:


On Tue, May 3, 2016 at 3:58 PM, John Hendy  wrote:

On Tue, May 3, 2016 at 2:55 PM, William Denton  wrote:

I updated my packages today and now Org documents with R source blocks are
failing when I try to use a running R session.


Submitted a github issue on this:
- https://github.com/emacs-ess/ESS/issues/328

John



--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] Using source blocks instead of Ansible

2016-05-04 Thread William Denton

On 27 April 2016, William Denton wrote:

Is anyone using Org for remote configuration management instead of a tool 
like Ansible?


I decided to try to get this working for what I needed, and I was able to do it:

https://www.miskatonic.org/2016/05/05/conforguration/

It just does one thing, but I like the way it works.

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] Trouble evaluating R source code blocks with C-c C-c

2016-05-28 Thread William Denton

On 28 May 2016, Vikas Rawal wrote:

Thanks John. Appreciate that you cared to respond to such a vague query. I am 
at a loss with this one. It does not happen all the time. I think it happens 
when I am processing large datasets, and CPUs and RAM of my system are 
struggling to keep up. But I could be wrong.


I've had the same kind of thing happen---but C-g (sometimes many) to kill the 
command, then rerunning, usually works without any trouble.  Some strange 
combination of CPU and RAM and all that, the kind of thing that's not easily 
reproducible.


Relatedly, sometimes if I have ":results output" for one block and then 
":results values" for the next one, the second block picks up the output from 
the first one.  But then other times not!  Seems to depend on how intensive the 
R work is.


Bill
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



[O] Upper or lower case in BEGIN_SRC and other keywords

2016-06-16 Thread William Denton
When I use the #+RESULTS is in upper case too.  I noticed other people have these keywords in 
lower case in examples or config files, so I looked in the manual, which says 
[1]


"Org uses option keywords (like #+TITLE to set the title) and environment 
keywords (like #+BEGIN_HTML to start a HTML environment). They are written in 
uppercase in the manual to enhance its readability, but you can use lowercase in 
your Org files."


There's a footnote [2] that says:

"Easy templates insert lowercase keywords and Babel dynamically inserts 
#+results."


How come this doesn't happen for me?  I don't see any variable that's making 
things default to upper case for me.


This isn't a problem ... I'm just curious.

Bill

[1] http://orgmode.org/org.html#Conventions
[2] http://orgmode.org/org.html#fn-3

--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



Re: [O] Citation syntax: a revised proposal

2015-02-16 Thread William Denton
+1 from me too, observing from the sidelines but also wanting to be able to 
handle citations.


Bill

On 16 February 2015, Eric S Fraga wrote:


On Saturday, 14 Feb 2015 at 18:29, Richard Lawrence wrote:

Hi everyone,

Since discussion seems to have petered out on the previous thread (see:
http://thread.gmane.org/gmane.emacs.orgmode/94524), I took some time to
go back over the discussion and write up a concrete proposal for
citation syntax.


+1 emphatically.

I would like to see something along these lines implemented so we can
"suck it and see"...

For my use case, you've covered everything and, as John Kitchin says,
most cite insertions could be automated through appropriate code and key
bindings but, very importantly, common uses are quite straightforward to
type directly.

With respect to the bibliography database, for completeness, I would
like to see linking with org-bibtex data instead of bibtex etc.

Thanks,
eric



--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] spreadsheet-like "fill down" in org tables?

2015-03-17 Thread William Denton

On 17 March 2015, Matt Price wrote:


I'm starting to use org tables quite a bit. One thing I would like to do is
to quickly fill in one or more cells using the value from a cell directly
above.  In spreadsheets one usually does this by grabbing a cell "handle"
and draggind downwards.  Is there anything analogous in org?


Shift-RET will copy in what's in the cell above.

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] fontenc makes pdf non-searchable

2015-03-21 Thread William Denton

On 21 March 2015, Martin Leduc wrote:


I'm using org-mode to write a paper and export it to a pdf. It compiles just 
fine.

However, when opening the experted pdf (with evince or okular) and searching 
for a word, the output from the search function is a list of words with 
apparently incorrect character encoding.

I get the same result when compiling directly the exported tex file. However, 
if I remove the line:

\usepackage[T1]{fontenc}

the compiled pdf becomes correctly interpreted by the search function. According to the 
documentation of the org-article latex class, "There is no facility to disable 
loading fontenc".


That seems odd to me.  Can you provide an ECM, a minimal complete example, that 
causes this problem?


Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] fontenc makes pdf non-searchable

2015-03-22 Thread William Denton

On 21 March 2015, Martin Leduc wrote:


You can find a minimal example here [1], with the org file, and the tex and pdf 
files generated from it. Firts try to search within the pdf. It does not work 
(at least on my side) To solve the problem, remove the line with
\usepackage[T1]{fontenc}

in the tex file, and compile it. It should now search normally.


"It works for me" is all I can say, which isn't too helpful.  Everything happens 
as it should, and I can search the PDF (in evince).  Maybe it's something with 
your LaTeX setup?  Sorry I can't suggest anything more.


Bill

[1] https://www.dropbox.com/sh/7s6di4en5ljbkcq/AAAzyQeg6VkMHnC1X9dQTg6ua?dl=0

--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] Using Org mode and R with the sessions switch

2015-03-25 Thread William Denton

On 25 March 2015, Shawn Way wrote:


This get's sent to R but I get the following error in R:

Error: could not find function ".ess.eval"

After looking at the archives it looks like a fix may have been found, but
I'm not sure that it made it back to 8.2.10.

Can some one please let me know if I'm using this wrong or if this is a
bug in the system?


As far as I remember, this is a bug, and it's fixed in the 8.3 development 
version but not in the stable 8.2 release.  This is another of the improvements 
that won't be widely available until there's a proper new release.


Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] A Microsoftesque detail in org

2015-05-18 Thread William Denton

On 18 May 2015, Brett Witty wrote:

While there can be a bit of a culture shock getting used to org's "do the 
useful thing" as opposed to "do the literal thing", I think it's an advantage 
of the system, not a disadvantage. Headers are sacred in org-mode, so breaking 
headers with RET seems suboptimal when there's vastly more things you'd care 
about.


I'm on this side too.  I like the current behaviour.

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] How to make footnotes be fnlocal by default?

2015-06-15 Thread William Denton

I'm writing something with a bunch of footnotes and instead of doing them by 
hand I'm using C-c C-x f, which in the usual Emacs/Org way strikes me as a more 
difficult at first but then turns into magic.

By default, adding a footnote puts it at the bottom of the document.  This is 
because of org-footnote-define-inline:


'Non-nil means define footnotes inline, at reference location. When nil, 
footnotes will be defined in a special section near the end of the document. 
When t, the [fn:label:definition] notation will be used to define the footnote 
at the reference position."


However, there are three (not two) possible options available in STARTUP 
options:



fninlinedefine footnotes inline
fnnoinline  define footnotes in separate section
fnlocal define footnotes near first reference, but not inline


I found I like fnlocal, which puts the footnotes at the bottom of the paragraph 
or section, where they are nearby and easy to see.


I'd like to make this the default in all Org files by setting 
org-footnote-define-inline, but it seems I can't---all I can definte that way 
are the fninline and fnnoinline options.  Am I correct?  Is there some way 
around this, or perhaps a (setq org-footnote-define-inline 'fnlocal) setting 
could be added?


Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] How to make footnotes be fnlocal by default?

2015-06-15 Thread William Denton

Thanks, Kyle and Rasmus.

Attached is a tiny patch to add mention of this variable in the section of the 
docs where all those options are listed.


Bill


On 16 June 2015, Rasmus wrote:


William Denton  writes:


I'm writing something with a bunch of footnotes and instead of doing
them by hand I'm using C-c C-x f, which in the usual Emacs/Org way
strikes me as a more difficult at first but then turns into magic.

By default, adding a footnote puts it at the bottom of the document.
This is because of org-footnote-define-inline:

'Non-nil means define footnotes inline, at reference location. When
nil, footnotes will be defined in a special section near the end of
the document. When t, the [fn:label:definition] notation will be used
to define the footnote at the reference position."

However, there are three (not two) possible options available in
STARTUP options:


fninlinedefine footnotes inline
fnnoinline  define footnotes in separate section
fnlocal define footnotes near first reference, but not inline


I found I like fnlocal, which puts the footnotes at the bottom of the
paragraph or section, where they are nearby and easy to see.

I'd like to make this the default in all Org files by setting
org-footnote-define-inline, but it seems I can't---all I can definte
that way are the fninline and fnnoinline options.  Am I correct?  Is
there some way around this, or perhaps a (setq
org-footnote-define-inline 'fnlocal) setting could be added?


How about:
   (setq org-footnote-section nil)

Rasmus




--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/*** org.texi	2015-05-31 13:00:44.415430490 -0400
--- org.texi.new	2015-06-15 21:17:30.771751673 -0400
***
*** 17155,17161 
  @vindex org-footnote-auto-adjust
  To influence footnote settings, use the following keywords.  The
  corresponding variables are @code{org-footnote-define-inline},
! @code{org-footnote-auto-label}, and @code{org-footnote-auto-adjust}.
  @cindex @code{fninline}, STARTUP keyword
  @cindex @code{nofninline}, STARTUP keyword
  @cindex @code{fnlocal}, STARTUP keyword
--- 17155,17162 
  @vindex org-footnote-auto-adjust
  To influence footnote settings, use the following keywords.  The
  corresponding variables are @code{org-footnote-define-inline},
! @code{org-footnote-auto-label}, @code{org-footnote-auto-adjust},
! and @code{org-footnote-section}.
  @cindex @code{fninline}, STARTUP keyword
  @cindex @code{nofninline}, STARTUP keyword
  @cindex @code{fnlocal}, STARTUP keyword


Re: [O] Emacs/ESS/org freezes/hangs on big data/ RAM(~256GB) processes when run in org/babel

2015-06-17 Thread William Denton

On 17 June 2015, Xebar Saram wrote:


I do alot of modeling work that involves using huge datasets and run
process intensive R processes (such as complex mixed models, Gamms etc). in
R studio all works well yet when i use the orgmode eval on R code blocks it
works well for small simple process but 90% of the time when dealing with
complex models and bug data (up to 256GB) it will just freeze emacs/ess.
sometimes i can C-c or C-g it and other times i need to physically kill
emacs.


I've been having the same problem for a while, but wasn't able to isolate it any 
more than large data sets, lack of memory, and heavy CPU usage.  Sometimes 
everything hangs and I need to power cycle the computer. :(


Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] Tables recently stopped aligning

2015-07-06 Thread William Denton
Last week I got caught up on a week or two of Emacs and Org development (I run 
both from development trees) and some tables stopped aligning.  I worked one 
down to five lines:


https://gist.github.com/wdenton/ab890c36090cd4048d49

With Org compiled from the dev tree in Git, when I load that file (align.org) 
and hit C-c C-c, it doesn't align.  emacs -Q loads Org 8.2.10 (from the Emacs 
source) and it does align.


Does it work for others?  I assume it does---surely if other people noticed this 
problem they'd have reported it already.


Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

Re: [O] Tables recently stopped aligning

2015-07-08 Thread William Denton
Thanks for locating this.  I don't know enough about Org's workings to see what 
in the change introduced the bug, but something did go wrong, and column widths 
+ table alignments are broken.  I hope someone can fix it!


Bill

On 7 July 2015, Nick Dokos wrote:


William Denton  writes:


Last week I got caught up on a week or two of Emacs and Org
development (I run both from development trees) and some tables
stopped aligning.  I worked one down to five lines:

https://gist.github.com/wdenton/ab890c36090cd4048d49

With Org compiled from the dev tree in Git, when I load that file
(align.org) and hit C-c C-c, it doesn't align.  emacs -Q loads Org
8.2.10 (from the Emacs source) and it does align.

Does it work for others?  I assume it does---surely if other people
noticed this problem they'd have reported it already.



I can reproduce it with release_8.3beta-1274-gc76fef.
I bisected it to the following commit:

--8<---cut here---start->8---
6d60138260d54bf8403b9c87155682447808335e is the first bad commit
commit 6d60138260d54bf8403b9c87155682447808335e
Author: Nicolas Goaziou 
Date:   Sun Jun 28 15:45:31 2015 +0200

   org-table: Do not modify buffer needlessly when aligning table

   * lisp/org-table.el (org-table-align): Compare new table with old one
 before replacing it.  Only replace modified lines.

:04 04 2ef4220238baf6508c5de7270b6ac37733ac0934 
f7d7ff100f0fdaee2ddab08b3514908d6d7643a0 M  lisp
--8<---cut here---end------->8---




--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] Do you like to have your TODOs at the same headline level?

2015-08-25 Thread William Denton
I'm trying to spend more time in a sparse tree view where I just see TODOs (C-c 
/ t).  I didn't like having the TODOs at different levels of indentation, 
though.  I prefer seeing them all lined up, so I moved them all to be 
fourth-level headline.  It's visually pleasing, and I don't care if a 
second-level headline has a fourth-level child without a third-level one.


Do other people do this?

Bill
--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] Jekyll and Pygments

2015-09-15 Thread William Denton
Is there anyone on the list who uses Jekyll (the Ruby-based static site 
generator [1]) and has a way of writing in Org that works with the syntax 
highlighting done with Pygments [2]?


Bill

[1] http://jekyllrb.com/
[2] http://jekyllrb.com/docs/templates/

--
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

[O] Importing from LaTeX

2014-01-24 Thread William Denton
I have a couple of big files that I'd like to move from LaTeX to Org, and 
wondered if there's already an easier way to manage this than to do a 
bunch of tedious searching and replacing on \section and \begin{quote} and 
the like.


I found this thread in the list archives, from about three years ago, 
where Marvin Doyley had the same question:


http://thread.gmane.org/gmane.emacs.orgmode/34020

Matt Lundin said he'd hacked up something in Perl and he'd put it in Worg, 
but I can't find it in there ... Matt, did you ever post it?


Thanks,

Bill
--
William Denton
Toronto, Canada
http://www.miskatonic.org/




Re: [O] Importing from LaTeX

2014-01-24 Thread William Denton

On 24 January 2014, Anthony Lander wrote:


Take a look at pandoc (http://johnmacfarlane.net/pandoc/). It reads and
writes several markup formats, including LaTeX and org.


Thanks!  I completely forgot about pandoc.

$ pandoc --no-wrap foo.latex -o foo.org

did the job beautifully (once I'd converted all my compactitem lists to 
itemize).


Bill
--
William Denton
Toronto, Canada
http://www.miskatonic.org/




Re: [O] Is anyone spending money for Org-mode?

2014-03-12 Thread William Denton
How much money is coming in?  Might there be something that could be paid for 
that would be helpful, such as getting professionally done subtitles/captions on 
one of the videos?  Or something else that's in the class of tasks that someone 
could volunteer to do but if it's possible to spend a bit of money to get it 
really well done then it ends up being worth it.  I have no strong opinion about 
the money but wanted to mention this as a possible idea.


My continuing thanks to Bastien, Nicholas, Carsten and everyone else for such 
amazing work on Org!


Bill
--
▮ William Denton ▮ Toronto, Canada ▮ http://www.miskatonic.org/ ▮

[O] How to use an image as an anchor in HTML export?

2014-03-18 Thread William Denton
I would like to use an image as an anchor in an HTML export (specifically in a 
reveal.js export---I really like this). I can't figure out how to make it work, 
and just end up with either a link with a missing image or an image with no 
link. I don't see this documented.  Is it possible?


What I want to end up with in the output is something like:



Thanks,

Bill
--
▮ William Denton ▮ Toronto, Canada ▮ http://www.miskatonic.org/ ▮


Re: [O] How to use an image as an anchor in HTML export?

2014-03-18 Thread William Denton

On 18 March 2014, Rick Frankel wrote:


What I want to end up with in the output is something like:





#+BEGIN_SRC org
,* Test image link
[[http://example.com][file:image1.png]]
#+END_SRC


Cripes, I was sure I'd tried that, but I guess I didn't.  And of course it's the 
easiest and obvious way to do it---the usual Org approach.


Thanks.

Bill
--
▮ William Denton ▮ Toronto, Canada ▮ http://www.miskatonic.org/ ▮


Re: [O] Space in Exported Text

2014-03-26 Thread William Denton

On 26 March 2014, Esben Stien wrote:


|-+-+---++-|
| foo | bar | xyzzy | hukarz | |
| qux | | corge | grault | garply waldo fred plugh |
| baz | |   || |
|-+-+---++-|

, it's not so beautiful anymore if I send it in an email.


It looks fine in my monospaced font---isn't it just a matter of formatting when 
you paste it into your preferred email client?


Bill
--
▮ William Denton ▮ Toronto, Canada ▮ http://www.miskatonic.org/ ▮


[O] xwidgets

2016-09-20 Thread William Denton

Emacs 25.1 supports xwidgets, which Mickey Petersen explains as [1]:

This is a really cool feature. You can embed other widgets inside Emacs 
buffers. It’s a feature that Windows users will handily recognize as OLE 
integration – a staple feature of Windows since the 90s. This feature is more 
limited, however, as it only works with GTK.


For now there is just one feature that makes use of this: the Webkit browser 
integration. You can now browse web pages with webkit inside Emacs. The 
feature – having played with it a lot – is in the very early stages still. I 
would consider it alpha quality, but with it integrated into Emacs progress is 
likely to be swift.


Is anyone thinking about how this could (should? would?) be used in Org?  It 
struck me that this could lead to Org being able to do more interactive things 
with sliders like Jupyter notebooks and RStudio (for R) allow.


Whether that's a good thing to do, or indeed possible, I don't know, but I'm 
curious to know if anyone's got ideas about how xwidgets might be used in Org, 
if they're hacking on it, etc.


Cheers,

Bill

[1] https://masteringemacs.org/article/whats-new-in-emacs-25-1

--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.

Re: [O] How to use org mode shell with ssh?

2016-09-21 Thread William Denton

On 22 September 2016, Xi Shen wrote:


#+BEGIN_SRC sh :dir /sshx:openwrt:/mnt/sda1
ls -al
#+END_SRC


Just use ssh, not sshx, and it should work.

Bill
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



[O] Bug? org-export-babel-evaluate setting breaks :exports results

2016-09-29 Thread William Denton
I'm working on a big Org file on a slow machine, so I set 
org-export-babel-evaluate to nil so exporting to PDF just generates the file 
from what's in the buffer, without doing any calculating.


I have a mix of source blocks, and all of a sudden the code began to appear in 
the PDF when all I wanted were the results.  I boiled it down to the example 
below.  If you save that to a file, load it, ~C-c C-e l o RET~ to export to PDF, 
you will see the ls command and the output, even though the setting is ":exports 
results".


Now delete the org-export-babel-evaluate line, ~C-x C-v RET~ to reload the 
file and pick up the new setting, then export to PDF.  You will not see the ls 
command, just the output.


## BEGIN
# -*- org-export-babel-evaluate: nil -*-

#+BEGIN_SRC shell :results value :exports results
ls /etc | wc -l
#+END_SRC

#+RESULTS:
: 307
## END

I'm not sure what's happening, but it seems like a bug.

(This is on Emacs 25.2.50.2 with Org compiled from source today, up to 
Nicolas's 2b22d503e1ee83f3a2681964f9de8405438a6385 commit yesterday).


Bill
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



Re: [O] Bug? org-export-babel-evaluate setting breaks :exports results

2016-10-03 Thread William Denton

On 29 September 2016, Charles C. Berry wrote:

I'm working on a big Org file on a slow machine, so I set 
org-export-babel-evaluate to nil so exporting to PDF just generates the 
file from what's in the buffer, without doing any calculating.


Actually it does a lot LESS than that.


My sincere thanks for pointing this out.

I spent an hour narrowing down the problem to one variable, but then didn't read 
the documentation on it.  To help myself remember to try to never do this again, 
I wrote it up:


https://www.miskatonic.org/2016/10/03/orgexportbabelevaluate/

There's always something new to learn in Org---and something new to be learned 
from this mailing list.


Bill
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



Re: [O] [RFC] Change visibility for bracket links

2016-10-06 Thread William Denton

On 6 October 2016, Eric S Fraga wrote:


In any case, Nicolas, I am fully in favour of your proposed
change.  Editing links has always been very frustrating for me and your
suggestion would make it much easier.


+1 from me too.

Bil
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



Re: [O] [RFC] Change visibility for bracket links

2016-10-13 Thread William Denton

On 13 October 2016, Daniele Nicolodi wrote:

As such, I believe, having the [ ] markers should be an option, and probably 
not enabled by default.


After seeing further conversation I've changed my mind, and don't like the idea 
of [ ] markers around links, so FWIW I agree with Daniele.


Bill
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



Re: [O] Orgmode for managing OS configuration

2016-11-03 Thread William Denton

On 3 November 2016, Giacomo M wrote:


I would like to clean up my Linux setup to be easily replicable. I am
considering keeping everything in one org file, and then tangling files
(e.g. exec scripts, systemd service unit files) and executing bash snippets
(e.g. for installing packages and sed'ing config files). Then one would
need just emacs and git (or rsync) to start with.


I'm doing this in a small way with Conforguration:

https://github.com/wdenton/conforguration

It's just personal files right now, nothing in /etc/ or up there, but it might 
be useful.  I'll be configuring a new (Ubuntu) machine or two soon so I'll be 
adding to it with packages and some system configuration information.


Bill
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



Re: [O] Release 9.0

2016-11-03 Thread William Denton

On 2 November 2016, Bastien Guerry wrote:


Org 9.0 is out!


Wonderful news, and I give my sincere thanks to everyone who helped.  Org is a 
great system.  I use it every day and am very happy it exists.


Bill
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



[O] Make fails on Git (c130b2e)

2016-12-20 Thread William Denton

I just pulled the source and ran make, and it failed here:

Done (Total of 115 files compiled, 3 skipped)
make[2]: Leaving directory '/usr/local/src/org-mode/lisp'
make[1]: Leaving directory '/usr/local/src/org-mode/lisp'
make -C doc info
make[1]: Entering directory '/usr/local/src/org-mode/doc'
org-version: 9.0.2 (release_9.0.2-132-gc130b2)
makeinfo --no-split org.texi -o org
org.texi:10468: @item outside of table or list
Makefile:55: recipe for target 'org' failed
make[1]: *** [org] Error 1
make[1]: Leaving directory '/usr/local/src/org-mode/doc'
mk/targets.mk:126: recipe for target 'info' failed
make: *** [info] Error 2


Bill

--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



Re: [O] How do you store web pages for reference?

2017-01-16 Thread William Denton

On 16 January 2017, Alan Schmitt wrote:


Thanks a lot for the suggestion. I thought Zotero was only for
bibliography, but I see it has a nice way to save web pages. I need to
see how much of a data silo it is.


Zotero's wonderful, and with a Firefox add-on and an Emacs package you can 
easily search it and pull links into Org:


http://www.mkbehr.com/posts/a-research-workflow-with-zotero-and-org-mode/

Bill
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



[O] How to have a sideways longtable?

2017-01-20 Thread William Denton
I have a long and wide table of text I'd like to have sideways (landscape 
orientation) and stretch over multiple pages.  I can do either one but not both 
together.


Here's a gist with a long, wide table:

https://gist.github.com/wdenton/f11acf2e5257b29789f806b854d0709e

If you take that and export it to LaTeX it will be long (on two pages) but not 
sideways, with some columns are cut off on the right---the float is being 
ignored, it seems.


Using the float on its own does work, and this appears in the output:

\begin{sidewaystable}[htbp]

But when the longtable is there, it's just this without any sidewaystable:

\begin{longtable}{rrll}

Is this a bug?  I assumed they'd work together out of the box, but maybe I need 
to do something special.


Bill
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



Re: [O] How to have a sideways longtable?

2017-01-26 Thread William Denton

On 20 January 2017, John Hendy wrote:


#+LATEX_HEADER: \usepackage{lscape}

#+latex: \begin{landscape}
#+latex: \tiny
#+attr_latex: :align |ll|lll|lll :env longtable
| table | goes | here |
#+latex: \end{landscape}


I'm several days late, but: thank you!  This works perfectly.

Bill
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



Re: [O] Feature request: lists with letters

2017-02-03 Thread William Denton

On 3 February 2017, Rainer M Krug wrote:


I must admit, I haven't read the thread mentioned, and I am sure
Carsten's point was correct, but orgmode is more and more used for
non-structure tasks. As an example I see the whole field of reproductive
research and scientific paper writing, which, in my opinion, has many
more elements than structure. Another example are html emails (like them
or not - I also dislike them) which people compose in org, or org as a
LaTeX frontend.

Exporting, i.e. typesetting and sharing, becomes much more important
these days and possibly as important as the structure.

In a nutshell: I agree with Titus' point and also would love to have
alphabetical bullets.


I'm all in favour too, and hope that someone might implement this.

Bill
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



[O] Hanging indents in paragraphs just appeared

2017-06-19 Thread William Denton
I was away on vacation last week, and when I got back I refreshed my Org source 
code and recompiled the latest version.  (I'm sure many of you do the same.)


Text paragraphs now have hanging indents.  What used to look like this (I have 
both visual-line-mode and org-startup-indented turned on):


This is a paragraph, and I will make the line length
shorter so that it looks like it would look, except
normally the line length would be much longer.

Now looks like this:

This is a paragraph, and I will make the line length
shorter so that it looks like it would look, except
normally the line length would be much longer.

I think this was introduced earlier today or yesterday in this commit:

002e2a072cc org-indent: Fix line and wrap prefixes

I can't figure out how to make it look like it used to.  How could I do this?

Thanks,

Bill
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



Re: [O] mimetype for orgmode files

2017-06-21 Thread William Denton

On 21 June 2017, Mario Martelli wrote:


If official would mean registered with IANA, then it’s not.
https://www.iana.org/assignments/media-types/media-types.xhtml 
<https://www.iana.org/assignments/media-types/media-types.xhtml>


On a related note, the =file= command [1] doesn't have the magic to identify Org 
files.


$ file work-notes.org
work-notes.org: UTF-8 Unicode text, with very long lines

Writing a pattern to make this work could be an interesting project if someone 
has some spare time some day ...


Bill

[1] https://en.wikipedia.org/wiki/File_%28command%29
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.

[O] Table columns not aligning when width set

2017-08-08 Thread William Denton
I noticed this last week, but I'm on vacation.  I'm compiling and running Org 
and Emacs from source, and have been keeping up to date, but the problem's been 
there for a while.  For Org, I'm on the master branch, not tables, and running 
"make update" to update.


In the example below, the <40> and <10> widths are not respected.  If you hit 
C-c C-C on the STARTUP line, first one things goes wrong and then another, and 
you can toggle back and forth.


Bill

# --

#+TITLE: Table column problem
#+STARTUP: align

| Forty| Ten  |
| <40> | <10> |
|--+--|
| This cell has more than forty characters in it, but it won't align | Under.   
|
| This cell has under forty characters.| More than ten over here. |

# --

--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] Table columns not aligning when width set

2017-08-14 Thread William Denton
I was able to use git bisect (on master) to narrow down where the problem 
started (for me, at least):


27466a38bcd6f5f3c6bd3c61b8ec9253d4dbf4e4 is the first bad commit
commit 27466a38bcd6f5f3c6bd3c61b8ec9253d4dbf4e4
Author: Nicolas Goaziou 
Date:   Thu Jul 27 15:22:45 2017 +0200

Fix `org-string-width'

* lisp/org.el (org-string-width): Better handle various invisible
  characters.

I'm not sure what's going on ... is anyone else seeing this problem with tables?

Bill

On 8 August 2017, William Denton wrote:

I noticed this last week, but I'm on vacation.  I'm compiling and running Org 
and Emacs from source, and have been keeping up to date, but the problem's 
been there for a while.  For Org, I'm on the master branch, not tables, and 
running "make update" to update.


In the example below, the <40> and <10> widths are not respected.  If you hit 
C-c C-C on the STARTUP line, first one things goes wrong and then another, 
and you can toggle back and forth.


Bill

# --

#+TITLE: Table column problem
#+STARTUP: align

| Forty| Ten  |
| <40> | <10> |
|--+--|
| This cell has more than forty characters in it, but it won't align | Under. 
|

| This cell has under forty characters.| More than ten over here. |

# --



--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] R source code block :session

2018-09-30 Thread William Denton

On 30 September 2018, Berry, Charles wrote:


Notice the "R> " prompt that prefixes the actual output.


The issue is that babel has to clean up dangling prompts from the R session 
buffer and is currently not smart enough to do this in your case.
...
I think your easiest path forward is to use the default R prompt. Or maybe use 
these header args:

:session :results value drawer :prologue "capture.output({" :epilogue 
"})"


Having the "library" call in its own block, with results silent, also works.

#+NAME: setup
#+BEGIN_SRC R :session :results silent
library(ascii)
#+END_SRC

#+NAME: test01
#+BEGIN_SRC R :session :results output
numstbl <- table(1:4, 1:4)
summary(numstbl)
#+END_SRC

That's how I usually do things, perhaps because I use "ℝ>" as m prompt and I 
ran into the same problem but found this got around it (though it's been a while 
and I can't remember for sure).  It also saves time when rerunning code because 
I don't reload stuff over and over.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/

Re: [O] An Org-based productivity tool

2018-10-10 Thread William Denton

On 10 October 2018, Marcin Borkowski wrote:


I am making an Org-mode-based tool to help boost my productivity.
...
- is anyone interested in something like this?


I am---I'd love to see what you come up with.  I'm doing something similar, but 
much less fancy, with clock tables and some R:


https://www.miskatonic.org/2017/11/16/clocktableii/

I need to do one more post about that to wrap it up.  It's working well for me, 
but warnings about not being clocked in to something, and better understanding 
of what I'm doing based on headings or tags, would be useful.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



[O] In LaTeX export, can I control what heading type a headline goes to?

2018-11-28 Thread William Denton
By default the LaTeX export uses the article class, and headline levels are 
mapped to headings this way:  top level becomes section, second level becomes 
subsection, third level becomes subsubsection.  That's simple and works very 
well.


If the book class is used, then the top level becomes part, the second level 
becomes chapter, the third level becomes section, the fourth level becomes 
subsection, etc.  That works well too, of course, but what if I don't want to 
use "part"?


Is there a way, exporting as a book, to make Org skip "part" and make a 
top-level Org headline turn into a chapter?  Is there a built-in way, or do I 
need to make my own class in org-latex-classes that has the structure I want?


(In LaTeX the problem doesn't arise, of course:  don't use \part{} and just 
start with \chapter{}.)


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] the 'new' template system some questions

2018-12-13 Thread William Denton

On 13 December 2018, Uwe Brauer wrote:


And I used both quite a bit, it seems that the new syntax has a begin
and end mandatory. So what I can I with this sort of templates?


yasnippet?  I think that's what a lot of people moved to.

Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



[O] Shift-RETURN in table doesn't copy the value of the cell above

2019-01-23 Thread William Denton



|A|B|

This set of keystrokes makes:

| A | B |
|   |   |
|   |   |

But it used to make:

| A | B |
| A |   |

Shift-RETURN doesn't copy the value of the cell above.  This changed a little 
while ago (in the main development tree) but I don't know exactly when.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



[O] Very nice how pointer stays in place when moving from source code block to major mode edit buffer

2019-03-08 Thread William Denton
I never noticed it before, but if you're in a source block in an Org document, 
moving and editing, and then you hit C-c ' to open up the block in a buffer of 
its own with the proper major mode, the pointer stays where you were!  (At least 
with R blocks.)  This is really nice.  Somehow I just always asssumed I'd end up 
at the start of the new buffer.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



[O] "File mode specification error: (user-error Empty table - created default table)"

2019-03-21 Thread William Denton
I've updated Org from source a couple of times in the last couple of days and 
this started happening:  when I restart Emacs, I get an error saying "File mode 
specification error: (user-error Empty table - created default table)" and this 
happens:  an empty table is added!  Here's an example:


#- begin

#+NAME: count
#+BEGIN_SRC sql :engine mysql :dbuser user :database db_name :exports results
SELECT count(*) AS foo FROM bar
#+END_SRC

|   |   |   |   |   |
|---+---+---+---+---|
|   |   |   |   |   |
#+RESULTS: count
| foo   |
|---|
|  2782 |

#- end

Anyone else seeing this?

Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



[O] Recent troubles with org-bullets?

2019-04-23 Thread William Denton
For any people on the list who both A) compile Org from source and update it 
fairly often and B) use org-bullets, do A and B imply C) sometimes org-bullets 
doesn't run automatically and it needs to be started by hand?


A few weeks ago this started to happen to me, but not all the time.  I've been 
having some other funny things happen with Org now and then (for example, I have 
indenting turned on, but sometimes files don't indent) but they seem transient 
and I haven't figured them out.  This org-bullets problem seems more tangible so 
I thought I'd ask.


My Org init are here: 
https://github.com/wdenton/.emacs.d/blob/master/setup/setup-orgmode.el


I have

(add-to-list 'load-path "/usr/local/src/org-mode/lisp")

and then a few lines later

(use-package org-bullets
  :config
  (setq org-bullets-bullet-list '("⊢" "⋮" "⋱" "⋱" "⋱"))
  :init
  (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
)

Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/

Re: [O] Resize an org-table

2019-05-01 Thread William Denton

On 1 May 2019, Sharon Kimble wrote:

How can I resize an org-mode table that was created on a desktop machine but 
is now needed on a laptop with a much smaller screen? The desktop uses a 
25-inch monitor, whereas the laptop screen is only 16-inch, so I need to find 
some way of 'shrinking' the table to fit the smaller screen.


With a bit of experimenting you might find some column widths, like <40>, that 
work to make it fit, as explained here:


https://orgmode.org/org.html#Column-Width-and-Alignment

Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] LaTeX export section level cutoff?

2019-05-06 Thread William Denton

On 6 May 2019, Christian Lynbech wrote:


What determines at what level LaTeX export goes from sections to
enumerations?


According to this, by default it's three levels of sections, then it turns into 
lists:


https://orgmode.org/org.html#LaTeX-header-and-sectioning

But H in the export settings (or org-export-headline-levels) can change that:

https://orgmode.org/org.html#Export-Settings


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



[O] What happened to ATTR_ORG?

2019-05-24 Thread William Denton
It used to be possible use ATTR_ORG on images to make them display at a 
different size, which was very useful when the images were large.  It worked 
like this:


#+ATTR_ORG: :width 300
[[file:very-large-image.jpg]]

I haven't needed it for a while, but today I went to use it and it's gone!  I 
grepped the source code, ORG-NEWS and the git log, but didn't see any mention of 
it.  What happened?  Did it go in version 9?  Am I overlooking something?  I 
feel like I've stepped into some parallel universe where everything is the same 
except this one Org command.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



[O] Compile failure

2019-06-24 Thread William Denton
The current source isn't compiling, at least for me (this is with an Emacs 
freshly compiled from source):


$ make
make -C doc clean;  make -C lisp clean;
make[1]: Entering directory '/usr/local/src/org-mode/doc'
rm -f org orgguide *.pdf *.html *_letter.tex org-version.inc \
  org-version.tex *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys \
  *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps
make[1]: Leaving directory '/usr/local/src/org-mode/doc'
make[1]: Entering directory '/usr/local/src/org-mode/lisp'
rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc 
org-install.elc

rm -f *.elc
make[1]: Leaving directory '/usr/local/src/org-mode/lisp'
make -C lisp compile
make[1]: Entering directory '/usr/local/src/org-mode/lisp'
rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc 
org-install.elc

org-version: 9.2.4 (release_9.2.4-381-g226363)
emacs: could not resolve realpath of "(null)": No such file or directory
Makefile:70: recipe for target 'org-version.el' failed
make[1]: *** [org-version.el] Error 1
make[1]: Leaving directory '/usr/local/src/org-mode/lisp'
mk/targets.mk:95: recipe for target 'compile' failed
make: *** [compile] Error 2


--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] Compile failure

2019-06-24 Thread William Denton

On 24 June 2019, Robert Pluim wrote:


Thatʼs an emacs issue, not an org-mode issue. If you specify the full
path to your emacs binary instead of using a symlink, does it compile?


I'm just going to wait, not touch anything more, and wait until the Emacs 
developers fix things.  I should have realized it wasn't an Org problem.


It's often fun to keep on top of the current Emacs development tree, but then 
things like this happen.  Ah well!


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/

[O] R-generated images not showing

2019-09-11 Thread William Denton
This problem started for me a little while ago:  images generated from R source 
blocks no longer appear even though I have images display turned on.


For example, this file:

# -
#+begin_src R :results graphics file :file /tmp/src.png
x <- seq(-4, 4, length=200)
y <- dnorm(x, mean=0, sd=1)
plot(x,y, type = "l", lwd = 2, xlim = c(-3.5,3.5))
#+end_src

#+RESULTS:
[[file:/tmp/src.png]]
# -

I don't see the image, I just see the text "file:/tmp/src.png".  When 
image-display is off (C-c C-x C-v) it becomes a link, and when I toggle it back 
on it's just plain text.


The file on disk really is there and is a valid image.

If I run the three R lines in an ESS window (M-x R) then the image pops up in 
its own window, as normal.


I ran "emacs -Q" and loaded up Org and enough Babel stuff to the source block to 
work, and the image appeared inline as it should!  So it's something to do with 
my config [1] but I can't figure out what.


Has anyone ever had this happen, or noticed it recently?  I'm compiling Emacs 
and Org from source and both are current.  I'm not sure what the easiest way to 
identify the problem is.


Bill

[1] https://github.com/wdenton/.emacs.d/blob/master/setup/setup-orgmode.el

--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] R-generated images not showing

2019-09-13 Thread William Denton

On 11 September 2019, Nick Dokos wrote:


The usual method is to bisect your setup-orgmode.el file: comment out
the bottom half and if that makes it work, then you know that the
problem is in the part that you commented out. Recursively, bisect
further.


My problem report wasn't very good, I admit.  I was hoping someone might 
recognize the problem so I could avoid bisecting.  Thanks for having a look at 
my config and taking some time to do some testing.


It turns out I found the cause by accident!  I've been using

./configure --with-imagemagick

to configure Emacs before compiling it.  I tried it without that option, and now 
the problem has gone away and images are displaying as they should.


The details of how Org and images and ImageMagick work together are beyond me, 
but I hope noting this is useful.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] R-generated images not showing

2019-09-13 Thread William Denton

On 13 September 2019, William Denton wrote:


It turns out I found the cause by accident!  I've been using

./configure --with-imagemagick

to configure Emacs before compiling it.  I tried it without that option, and 
now the problem has gone away and images are displaying as they should.


Aha ... and now that I've caught up with other messages I see the source of this 
problem has been identified.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: Good way to pre/view LaTeX-lines?

2019-10-27 Thread William Denton

On 27 October 2019, Dmitrii Korobeinikov wrote:


I am looking for a comfortable way to view LaTeX (for math formulas) in
org-mode.


This shows how:

https://orgmode.org/org.html#Previewing-LaTeX-fragments

I don't use it often, but it works very nicely.

Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: https://staplr.org/



Re: [Idea] Org Collections

2019-12-16 Thread William Denton

On 14 December 2019, Gustav Wikström wrote:


2 Idea
==

 I propose to introduce `Collection' as a concept in the realm of Org
 mode. [1]


This is very interesting, and I think I have some cases where I could use this. 
When there's something to test, I'll certainly try it.  It's a good idea, and 
I hope your work on it goes well.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: https://staplr.org/

Re: R code block produces no output

2019-12-17 Thread William Denton

On 17 December 2019, Vikas Rawal wrote:


A simple code block like the following does not create the graph.

#+NAME: test
#+BEGIN_SRC R :results output graphics :exports results :file temp.jpg :width 
2400 :height 1200  :res 300 :session temp


That should be ":results file graphics".

Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: https://staplr.org/



Re: Bug: R src blocks fail to produce link to graphics file [9.3 org-plus-contrib-20200127]

2020-01-27 Thread William Denton

On 27 January 2020, Tyler Smith wrote:


#+begin_src R :results graphics :file test.jpg
plot (1:10)
#+end_src


":results file graphics" should do it.

Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: https://staplr.org/



Re: C-c C-c to close the buffer in *Org Src ...* buffers

2020-01-31 Thread William Denton

On 31 January 2020, Bastien wrote:


I'd like to make  an equivalent to  in Org Src buffers
so that hitting  will close the buffer, which seems natural.


Sound sensible.

I use a tip from Artur Malabarba 
(http://endlessparentheses.com/emacs-narrow-or-widen-dwim.html) to use C-x C-s 
to save and close the buffer, which is easy to remember, but C-c C-c is natural 
and very Orgish.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: https://staplr.org/



How to collapse all LOGBOOKS at once?

2020-02-26 Thread William Denton
The only thing I really use drawers for is with clock tracking, so for me this 
is just about :LOGBOOK: but it could be about other types of drawers, or all 
drawers:  is there a way to collapse them all at once?


When I'm fixing up the amounts of time I've been working on this, or when I sync 
a file across two machines, I often end up with a lot of LOGBOOK drawers open 
but they're just taking up screen space.  Using TAB to close them one by one is 
good for a bit of tidying, but I'd like to do them all at once.


Thanks,

Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: https://staplr.org/



Re: How to collapse all LOGBOOKS at once?

2020-02-26 Thread William Denton

On 27 February 2020, Kyle Meyer wrote:


William Denton  writes:


The only thing I really use drawers for is with clock tracking, so for me this
is just about :LOGBOOK: but it could be about other types of drawers, or all
drawers:  is there a way to collapse them all at once?


I'm not aware of a dedicated command that does that, but I think you can
get the behavior you're after by defining a command that calls

 (org-cycle-hide-drawers 'all)


Aha, thanks!  There are probably many betters way to do it, but this works:

;; Use C-c d to close all the open drawers in a file
(defun add-org-close-all-drawers-key ()
  (local-set-key (kbd "C-c d") (lambda () (interactive) (org-cycle-hide-drawers 
'all
(add-hook 'org-mode-hook 'add-org-close-all-drawers-key)

Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: https://ghg.earth/
Caveat lector.  ---   STAPLR: https://staplr.org/



[O] Ag (the Silver Searcher) knows about Org files now

2017-08-31 Thread William Denton
A recent commit means that the very useful tool ag recognizes --org as an option 
to let you search just Org files.


Ag: https://github.com/ggreer/the_silver_searcher

It'll take a while for that to make its way into package updates on different 
operating systems, but it's good news.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



[O] Table aligning and editing in 9.2

2017-09-07 Thread William Denton
The new approach to table alignment, that will be in 9.2, is there now if you 
compile from source, which I did.  etc/ORG-NEWS says



** Incompatible changes
*** =align= STARTUP value no longer narrow table columns

Columns narrowing (or shrinking) is now dynamic. See [[*Dynamically
narrow table columns]] for details. In particular, it is decoupled from
aligning.


I can't find the "Dynamically narrow table columns" documentation, though. 
Where is it?


My main question is: Is it now necessary to use C-c ` to edit a cell in a table? 
Moving the point around skips from cell to cell without letting me edit it.  I 
hope this isn't permanent. :(


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] Table aligning and editing in 9.2

2017-09-07 Thread William Denton

On 7 September 2017, William Denton wrote:

I can't find the "Dynamically narrow table columns" documentation, though. 
Where is it?


Aha, checking the Git commit I see it (in doc/org.texi).  (The title doesn't 
match, which threw me off.)


"To see the full text, hold the mouse over the field---a tool-tip window
will show the full content.  To edit such a field, use the command
@kbd{C-c `} (that is @kbd{C-c} followed by the grave accent).  This will
open a new window with the full field."

I wish I'd tested this before and noticed this, so I could comment.  It makes 
using tables much less pleasurable, I think.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] Table aligning and editing in 9.2

2017-09-08 Thread William Denton

On 7 September 2017, Nicolas Goaziou wrote:


What workflow are you missing? Note that typing in a shrunk column
expands it.


Previously one could edit the contents of a cell in a shrunken column without 
doing anything special: move the point in, move to a position, then hit any key 
(space, delete, a letter), and the change is made.  If a character is deleted 
then the => at the end comes closer; if added it moves away.  C-c C-c or TAB 
realigns everything.  Everything is directly editable: the text can be operated 
on without any barriers.


But now the cell contents are locked until either a) C-C ` opens up an edit 
buffer (which was useful before for editing a long piece of text that got 
shrunk, but is a lot of work when you have something short like "Foo" in a <10> 
column and want to make it "Bar") or, as you point out, b) something is typed in 
the shrunk column.


But when something is typed in a shrunk column, the column expands and the point 
is now at the start of the cell.  To edit anything in the cell, you need to hit 
"a" or SPC or something just to get in there, then you need to delete it, then 
move to where you want to make a change, then edit.


And then C-c C-c or TAB doesn't realign things, you need to hit C-c TAB.

So the workflow is different, and in each piece it's more awkward.  Everything 
works---and I appreciate that the code and implementation is much cleaner 
now---but it seems like some of the magic that makes Org tables so wonderful is 
now gone. :(


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] function for inserting a block

2017-11-08 Thread William Denton

On 8 November 2017, Bastien wrote:


I'm aware of Yasnippet, but it is not in Emacs core and it can
be daunting for newcomers to install, customize and use.

The previous function was very straightforward and simple, the
cost for losing it seems to high to me.  I'd rather have 10 lines
in Org (and in Emacs core) for it, than to ask users to install
something that does a lot more that they don't need.


I just realized that feature.  I hope it comes back so that a little bit of the helpful Org magic is 
built right in.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] R output with session polluted with ascii color codes

2018-03-16 Thread William Denton

On 16 March 2018, Tyler Smith wrote:


# A tibble: 150 x 5
  Sepal.Length Sepal.Width Petal.Length Petal.Width Species
    
    
 1 5.103.50 1.40   
0.200 setosa
 2 4.903.00 1.40   
0.200 setosa


I tried the example in my configured setup and didn't get the ASCII codes.  I 
don't know why and didn't dig into it, but I could; for now I figured I'd just 
mention this.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] R output with session polluted with ascii color codes

2018-03-16 Thread William Denton

On 16 March 2018, Tyler Smith wrote:

Thanks for checking. I should have mentioned that I'm running 27.0.50 with org 
9.1.7 and ess 17.11. I see this problem with emacs -Q and regular emacs. If 
you're using the same versions and don't see this, then there should be 
something I can do in my config to fix it.


I think we're the same---Org says it's 9.1.6, but I just compiled it fresh from 
source five minutes ago, so it should be up to date.  Not sure what's going on 
there.  I recompiled Emacs from fresh source, too, and updated the ESS package 
(17.11, ELPA 20180314.612).


Anyway, I tried again, and there was still no problem in Emacs.  That made me 
wonder if the difference was in R.  When I run "as_tibble(iris)" in the R 
console in a terminal I don't get the ASCII colour codes, so maybe that's where 
the difference lies?  I'm running R 3.4.2, compiled from source, on Ubuntu 
17.10.


Is there an R user on the list who sees the coloured text in the R console and 
can try the example in Org?


#+BEGIN_SRC R :results output :session RSESSION
library(tidyr)
library(dplyr)
as_tibble(iris)
#+END_SRC

Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] Support showing stars as pretty bullets

2018-04-02 Thread William Denton

On 2 April 2018, Alex Branham wrote:


It could go into some "org-art.el" library (along with Org bullet mode,
or something that would auto-number headlines) within the code base, or
simply in GNU ELPA.


I'm fine putting it into org-XXX.el if you want. I didn't for now since
it's only a few lines of code.


Wherever it goes, it would be great if it's integrated into the code base.  It's 
a very nice visual improvement.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] statistics with R, convert the result into an org table

2018-04-11 Thread William Denton

I don't think it is possible without a step in the middle, because
"Min.   :2." is all one string (in a cell in a matrix).

#+begin_src R :results output :var qual=qual :colnames yes
s <- summary(qual)
s[1]
#+end_src

#+RESULTS:
: [1] "Min.   :2.000  "

You would have to split each cell into two parts by splitting on the colon.  I 
think extract from tidyr [1] might do the job.


Bill

[1] http://tidyr.tidyverse.org/reference/extract.html

On 11 April 2018, Uwe Brauer wrote:


Hi

I use structure like this

Statistics with R

#+tblname: qual
| 8.3 | 1.4 |
| 7.3 | 5.6 |
|   2 | 1.3 |
| 5.7 | 9.3 |
| 5.3 | 5.9 |
|   4 | |
| 6.9 | |
#+begin_src R :results output :var qual=qual
summary(qual)
#+end_src

And obtain

#+RESULTS:
:V1  V2
:  Min.   :2.000   Min.   :1.3
:  1st Qu.:4.650   1st Qu.:1.4
:  Median :5.700   Median :5.6
:  Mean   :5.643   Mean   :4.7
:  3rd Qu.:7.100   3rd Qu.:5.9
:  Max.   :8.300   Max.   :9.3
:  NA's   :2.0

Is there a way to have the result already translated into an org table
resulting in

| V1  |   | |  V2 |   |
| Min.| 2.000 | Min.| 1.3 |   |
| 1st Qu. | 4.650 | 1st Qu. | 1.4 |   |
| Median  | 5.700 | Median  | 5.6 |   |
| Mean| 5.643 | Mean| 4.7 |   |
| 3rd Qu. | 7.100 | 3rd Qu. | 5.9 |   |
| Max.| 8.300 | Max.| 9.3 |   |


Uwe Brauer





--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



[O] Does anyone else have this table problem?

2018-04-19 Thread William Denton
I know this isn't a proper "emacs -q" bug report, but I'm not sure what's 
causing a problem I have with tables.  This is using the master branch of the 
Org development tree and has been going on for a while.


When I load this short file with one Org table:

https://www.miskatonic.org/tmp/table-2.org

and then run C-u C-c TAB, I see this:

https://www.miskatonic.org/tmp/org-table.png

Does anyone else have this?

Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



[O] Multiple tags on a heading?

2018-04-25 Thread William Denton
To set a tag for a heading one uses C-C C-q (or C-c C-c if one is on the 
heading).  The minibuffer shows you a listing of all the tags, and refines it as 
you type.  That works very well.


What about if one wants to have two tags?  Is there a similar way to add the 
second tag?  I have to type it in by hand---am I overlooking something?


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



  1   2   3   >