Re: [O] NLS/Augment

2019-08-19 Thread Samuel Wales
a playwright once had a line like "The reasonable man adapts himself
to the world; the unreasonable one persists in trying to adapt the
world to himself. Therefore all progress depends on the unreasonable
man".

there are not many unreasonable men of the right kind (englebart
perhaps), too many of the wrong kind, and too many reasonable men who
don't realize the need to become unreasonable until it has become too
late for them, even them personally.

that last one is why mass human rights violations sneak up on
populations and are rejected out of hand until it is too late, and,
imo trivially, why computers interfaces in the broad sense are dumb.

i don't think there is any intent behind computer dumbness except get
it out the door.  the dbas of the past could have had no intent to
create the y2k problem, just to save space.  and with that i am out of
this ot discussion :).

-- 
The Kafka Pandemic

What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.



Re: [O] Pandoc and Org-mode: list indention

2019-08-19 Thread Jean Louis
* Devin Prater  [2019-08-19 19:34]:
> I, blind myself, teach other blind people how to use technology and
> software, along with my supervisor and quite a few others. We have
> many courses on the use of Microsoft Office, Gmail, Internet basics,
> and so on. These courses are handled by Moodle, which accepts HTML
> and Markdown formatted text. Why it doesn’t use Org-mode, which is
> superior to Markdown in every way, is beyond me.

Thank you, I have learned about Moodle as resource for teaching.

> I’ve taken it upon myself to clean all this up, and Org-mode does it
> all. The only problem is, when I convert from HTML to Org-mode using
> Pandoc, just doing:

> Pandoc -I lesson1.html -o lesson1.org 

> The lists are not made into indented ones, just a paragraph, which I
> manually have to indent, marking the lines below the list marker
> line, and doing C-x C-I, then indenting 3 or four spaces, then
> filling the paragraph just to make sure.

> Is there anything I can do to make this less tedious?

Please send the file lesson1.html for review, and if I find right
workflow for you, I will tell you how I have done that.

Regarding moodle, I would make lessons in Emacs, and people would
accessing them from Emacs to the central database and answering it
that way. But that is my opinion, browsers are by opinion of other
people more practical.

Jean



[O] Pandoc and Org-mode: list indention

2019-08-19 Thread Devin Prater
Hi all. I am not a programmer, but have found Org-mode useful for editing 
course lessons.
I, blind myself, teach other blind people how to use technology and software, 
along with my supervisor and quite a few others. We have many courses on the 
use of Microsoft Office, Gmail, Internet basics, and so on. These courses are 
handled by Moodle, which accepts HTML and Markdown formatted text. Why it 
doesn’t use Org-mode, which is superior to Markdown in every way, is beyond me.
So, these course lessons are awfully malformed HTML. Empty  tags, misused 
 things litter these files, and “middle dot” characters are used instead 
of  elements.
I’ve taken it upon myself to clean all this up, and Org-mode does it all. The 
only problem is, when I convert from HTML to Org-mode using Pandoc, just doing:
Pandoc -I lesson1.html -o lesson1.org 
The lists are not made into indented ones, just a paragraph, which I manually 
have to indent, marking the lines below the list marker line, and doing C-x 
C-I, then indenting 3 or four spaces, then filling the paragraph just to make 
sure.
Is there anything I can do to make this less tedious?
Other than all that, Org-mode does amazingly for everything I’ve used it for, 
so thanks so much for all who, knowing much more than I do about code, work on 
Org-mode, and Emacs in general.

[O] Feature Request: Use ~org-set-tags-command~ for ~%^g~ in capture

2019-08-19 Thread Samuel W. Flint
Hello!

Is there a way to use the ~org-set-tags-command~ function to complete
tags during capture?  It currently uses whatever my normal completion
method is, but this means that I can't use the faster tag-selection
method that I'm used to otherwise.

Thanks,

Sam Flint

-- 
Samuel W. Flint
4096R/FA13D704
  (F50D 862B 4F65 5943 A8C2  EF0E 86C9 3E7A FA13 D704)



Re: [O] NLS/Augment

2019-08-19 Thread Jean Louis
* Adam Porter  [2019-08-12 21:50]:
> Thanks for sharing those links, those videos are fascinating.  It's
> amazing how much some of what he demonstrates resembles features in Org
> and Emacs, and even surpasses them, over 50 years ago!  Even the
> presentation itself, with picture-in-picture videoconferencing with
> screen sharing, surpasses most conference presentations on YouTube!

I am glad to have found that information as it clarifies what means
Internet as from its beginnings. That is definitely the first thing to
teach in computer classes when mentioning Internet.

It is also sad state that for long time the concepts were not
available to people and still are not.

The file system concept is somehow unintentionally or intentionally
hidden to common people. It is a hierarchy, a data tree, that is well
suitable for nice sorting of files, but how to sort files really is
not well explained, it is somehow lacking. For example there is not
example concept given in books or instructions of operating systems
on how to keep files. I think it would be beneficial.

So is the concept of hierarchical data management or structured data
management.

And I remember the concept of entering the links and menus already
from the BBS[1], and I do not know why and how, I remember being
isolated in former Yugoslavia, without any contact to Internet or
outside knowledge, and we were making similar menus like on the demo
of Douglas Engelbart[2] on our small replicas of TRS-80 computers.

Video conferencing is quite a large need and have been shown in movies
so many times, but is still not developed and not in use by large. Sad
situation, I was really expecting much more from the 21st century,
about 50 years after the inventions of Douglas Engelbart.

Org mode is a simple way by which one can build such augmented
information systems. But it is not as integrated.

Look at "What it offered"[3]:
> Doug's lab pioneered progressive work processes while using each
> successive version of NLS/Augment for all its own knowledge work,
> from drafting, publishing, email, shared screen collaborative
> viewing and editing

There are packages and possibilities for shared screen and
collaborative viewing, publishing on Internet and editing. I am not
sure if this is really demanded overall. But in one way or other we
have it in GNU Emacs.

GNU Emacs basically became what NLS/Augment offered and what Douglas
Engelbart envisioned

> document cataloging

Not sure about that, but software tools exist for this, maybe one such
is Orgadoc[4], and document indexers also exist. However, not well
integrated and not easily accessible to population.

> project management

We are lucky that Org mode offers project management features provided
the user knows how to start and where to start. But what about the
population? Project management shall be introduced in my opinion by
every operating system.

In fact every operating system shall be given to user with one or
other similar information management package.

For my biased needs it would be best to improve the GNU Emacs to the
level that it can boot and then offer to users options to launch other
software. 

> shared address book,

I guess that LDAP[5] and various CRM[6] related software do offer such
possibilites. We still do not have such options from GNU Emacs, I wish
we would. It is necessary for any larger organization or remote work
stations to have some kind of centralized database from which access
to shared address book would be possible.

I guess this can be easily implemented in GNU Emacs by creating an SQL
database to which Emacs work stations could gain the access.

Of course there would be no need for slow motion browsers.

> all source code development and maintenance

This we surely have within Emacs

> -- all in an integrated hyper groupware environment filled with
> special features for high performance work.

Emacs has this pretty much, but not as much as I would wish and
like. Hyperlinking is important feature. We cannot just link
everything in Emacs. GNU Hyperbole[7] have given the concept of
linking to many information references, but it is not as polished and
not as easy to go for common man.

> For example, you can create a link to any paragraph or line of code
> or email paragraph

That would be great. I need this feature, this would be so useful. It
should not matter which type of file it is. Not just Org files, it
should work like Hyperbole on many other files. 

> you can see when paragraphs and lines of code were last edited and
> by whom

Version control systems exist, we have this.

> and even view a file filtered by author since a certain date and
> time (as in why doesn't the code work this morning, let's see who
> was in there changing what when!)

This can be known today by using version control systems, including
file system ownership.

> you can browse with outline views,

Many outlines modes exist in GNU Emacs. Org mode is one of them. I
wish Org could have some 

[O] Bug: org-babel-tangle-file [9.2.4 (9.2.4-3-g7bc6f8-elpaplus @ /home/stettberger/.emacs.d/elpa/org-plus-contrib-20190701/)]

2019-08-19 Thread Christian Dietrich
Hi!

I think a found a bug in org-babel-tangle-file. It closes an user-opened
buffer if called with a symlink that points to the same file. Please see
the attached patch, which fixes the problem for me.

chris

Emacs  : GNU Emacs 27.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.0)
 of 2018-10-06
Package: Org mode version 9.2.4 (9.2.4-3-g7bc6f8-elpaplus @ 
/home/stettberger/.emacs.d/elpa/org-plus-contrib-20190701/)

>From 7901afc9c9b535cf2b5a523c4610ada37a468dfb Mon Sep 17 00:00:00 2001
From: Christian Dietrich 
Date: Tue, 13 Aug 2019 15:43:03 +0200
Subject: [PATCH] Fix bug in org-babel-tangle-file with symlinked files

Assume that there is file A and symlink B that points to file A. If
there is an open buffer that points to A and we
call (org-babel-tangle-file "B"), then this function kills the buffer
since get-file-buffer does not follow symlinks.
---
 lisp/ob-tangle.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el
index f9f785910..7dbd618a6 100644
--- a/lisp/ob-tangle.el
+++ b/lisp/ob-tangle.el
@@ -174,7 +174,7 @@ export file for all source blocks.  Optional argument LANG can be
 used to limit the exported source code blocks by language.
 Return a list whose CAR is the tangled file name."
   (interactive "fFile to tangle: \nP")
-  (let ((visited-p (get-file-buffer (expand-file-name file)))
+  (let ((visited-p (find-buffer-visiting (expand-file-name file)))
 	to-be-removed)
 (prog1
 	(save-window-excursion
-- 
2.23.0.rc1



Re: [O] change font-size in python plots depending on context

2019-08-19 Thread Thomas S. Dye

Aloha Johanna May,

This works:

#+name: fs
#+BEGIN_SRC emacs-lisp
10
#+END_SRC

#+RESULTS: fs
: 10

#+header: :var fontsize=fs() :results output
#+begin_src python
print(fontsize)
#+end_src

#+RESULTS:
: 10

Note "fs()" instead of "fs".

All the best,
Tom

--
Thomas S. Dye
http://tsdye.online/tsdye



Re: [O] [week?] (was: insert date-stamp for one month)

2019-08-19 Thread Thomas Plass
Hello,

Uwe Brauer wrote at 16:33 on August 18, 2019:

: The problem seems to be that there is no function
: calendar-last-day-of-week.

Well, there is, it's called `calendar-week-end-day'.

This returns the index into 'calendar-day-name-array.  Note that the
variable 'calendar-week-start-day should be set properly (it defaults
to 0 = $SUNDAY, while I set this to 1, meaning $MONDAY).

This will only get you as far as computing the name of the day.
Computing a date and/or timestamp for an instance of that day name
relative to a date is quite another matter.  The file
calendar/time-date.el might provide useful stuff for doing so.

Thomas



Re: [O] change font-size in python plots depending on context

2019-08-19 Thread Fraga, Eric
Hi Johanna,

> I have various files that go together in one document, either
> chapterwise or the whole book. And just as with tikz (latex) I want the font
> size of python plots to change automatically when the context changes.

What I do, for a similar use case, is to define values using properties
and then extract these values with a little function I wrote (see
below).  For example,

#+begin_src org
,#+property: myvariable 10
...
,#+begin_src ... :var v=(esf/get-parameter "myvariable")
... (use v in here)
,#+end_src
#+end_src

The esf/get-parameter function is:

#+begin_src emacs-lisp
  (defun esf/get-parameter (p)
(let ((value (org-entry-get (point) p 'inherit)))
  (message "parameter %s value obtained %s" p value)
  (if value
  (if (string-match-p "^[-+ ]*[[:digit:].]+$" value)
  (string-to-number value)
value)
(error "Property parameter \"%s\" not known." p
#+end_src

I'm sure there are better ways but this is what I have developed
organically over the years...

HTH,
eric

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-401-gfabd6d



[O] change font-size in python plots depending on context

2019-08-19 Thread johanna . may
Dear org-mode fans,

I have various files that go together in one document, either
chapterwise or the whole book. And just as with tikz (latex) I want the font
size of python plots to change automatically when the context changes.

So I tried to define a variable in one of the header files like this:

#+name: fs
#+BEGIN_SRC emacs-lisp
10
#+END_SRC

I also tried to define it like this

#+name: fs
#+begin_src python :results output :session :exports none
fontsize=10
return fontsize
#+end_src

And then, in another file (that is being included by the header file) I
added :var fontsize=fs to the header and replaced the number by this
variable. I understand it complained that fs could not be found if I
used C-c C-c directly to test, since apparently the variable fs only
belongs to the other buffer (This is the first problem).

However, it doesn't work either when I compile everything (the second problem). 
Probably it
is also possible to solve this with some function in elisp. But, I have
to admit, that I haven't started learning elisp yet.

Does anyone have a solution to this problem? Any hints to helpful blogs
or stackexchange pages would be appreciated. I did a search but probably
not using the right keywords.

Thanks!

J