Re: Reply-All noise

2020-10-09 Thread Tory S. Anderson
I do use reply-to-all (gnus-style), but I don't notice doubles. It might be 
because I have my client set up to do deduping, though.

 writes:

> Hi,
>
> I had this discussion in several mailinglists but gave up.
>
> But I am suprised to see this phenomenon in a emacs related (means:
> "super nerdy") mailinglist, too.
>
> So tell me please how do you handle this "problem"? Or do I setup
> something wrong with my list account?
>
> From my point of view, the problem is that most of you press "Reply
> All" when answering to a mailinglist posting. But that is IMO wrong
> because you answer to the list AND to the thread opener in that case.
>
> So the thread opener receive two (nearly) identical messages.
>
> Do you receive double mails? Doesn't it bother you?



Re: patch: ob-clojure improvements

2020-10-09 Thread General discussions about Org-mode.

Nice work, I did some testing here...

* Comment: Should babashka be added as an option for custom?

(defcustom org-babel-clojure-backend nil
  "Backend used to evaluate Clojure code blocks."
  :group 'org-babel
  :type '(choice
  (const :tag "inf-clojure" inf-clojure)
  (const :tag "cider" cider)
  (const :tag "slime" slime)
  (const :tag "Not configured yet" nil)))

* I wonder if there’s something wrong here?

... Inside ‘ob-clojure-eval-with-cider’

(push (or (nrepl-dict-get response "root-ex")
(nrepl-dict-get response "ex")
(nrepl-dict-get
 response (if (or (member "output" result-params)
  (member "pp" result-params))
  "out"
"value")))
result0)

That didn’t work for me, using an instance of Cider *connected to
babashka*.  But it did work when I swapped "value" and "out"!

- Testing code and inspecting with edebug:

#+begin_src clojure :backend cider :results output
  (range 10)
#+end_src

* Lastly, the documentation and implementation have drifted apart...?

https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html

Ag Ibragimov writes:

Hi everyone, here's my attempt to add clojure CLI and babashka support 
for ob-clojure.el


- Adds a header parameter to override org-babel-clojure-backend
- Adds :args param (right now only used for clojure-cli)

I have tested it with these minimal cases:

#+begin_src clojure :backend clj-cli :args "-Sdeps '{:deps {inflections 
{:mvn/version \"0.13.2\"}}}'"

  (use 'inflections.core)
  (plural "word")
#+end_src

#+begin_src clojure :backend babashka :results output
  (range 10)
#+end_src

Please let me know what you think. Any advice is appreciated, since I 
have never contributed before. Thank you.




Re: Reply-All noise

2020-10-09 Thread tomas
On Fri, Oct 09, 2020 at 10:10:41PM +0200, to...@tuxteam.de wrote:
> On Fri, Oct 09, 2020 at 09:24:34PM +0200, c.bu...@posteo.jp wrote:
> > Hi,

[...]

> There is no clear-cut answer to that [...]

You might also want to experiment with setting the Mail-Followup-To:
header [1] in your mails to the list (I have no experience with that,
so take with a fist of salt!).

No idea how many MUAs out there will support that -- and whether your
reply "in the middle of a thread" would break that thread for non-
subscribers.

Cheers

[1] https://cr.yp.to/proto/replyto.html

 - t




signature.asc
Description: Digital signature


Re: Reply-All noise

2020-10-09 Thread tomas
On Fri, Oct 09, 2020 at 09:24:34PM +0200, c.bu...@posteo.jp wrote:
> Hi,
> 
> I had this discussion in several mailinglists but gave up.
> 
> But I am suprised to see this phenomenon in a emacs related (means:
> "super nerdy") mailinglist, too.
> 
> So tell me please how do you handle this "problem"? Or do I setup
> something wrong with my list account?

There is no clear-cut answer to that. For mailing lists which allow
posting by non-subscribers (this is one), reply-to-all makes more
sense to reply-to-all, since you can't be sure that everyone is
subscribed.

As for what I do, I have a mail filter (procmail) which weeds out
duplicates fairly effectively.

For this list, specifically, which is managed by Mailman, you can
tell the list manager [1] to not send you a duplicate when your
address is in the To: or Cc: header field. Note that you'll get
the copy sent to you, not the one sent via the list; if you are
filtering based on list headers, this might not be what you want.

To appreciate the whole "interesting" complexity see [2]. In a
nutshell, there's no ideal solution working for all tastes.

Cheers

[1] https://www.gnu.org/software/mailman/mailman-member/node21.html
[2] http://david.woodhou.se/reply-to-list.html

 - t


signature.asc
Description: Digital signature


Reply-All noise

2020-10-09 Thread c.buhtz
Hi,

I had this discussion in several mailinglists but gave up.

But I am suprised to see this phenomenon in a emacs related (means:
"super nerdy") mailinglist, too.

So tell me please how do you handle this "problem"? Or do I setup
something wrong with my list account?

From my point of view, the problem is that most of you press "Reply
All" when answering to a mailinglist posting. But that is IMO wrong
because you answer to the list AND to the thread opener in that case.

So the thread opener receive two (nearly) identical messages.

Do you receive double mails? Doesn't it bother you?



Re: org-mode time tracking setup integrating with SaaS (Harvest, Toggl, Bonsai etc)

2020-10-09 Thread Russell Adams
On Fri, Oct 09, 2020 at 07:21:24PM +0800, Daryl Manning wrote:
> I'm just setting up a new time tracking system and have in the past used
> Harvest to track and bill clients.
>

I bill my clients from work I log with Org.

I keep one file per project per customer. Every time I change tasks,
leave the keyboard and return, or just feel it is appropriate I add an
inactive timestamp to my notes. I've simplified that with a keybind to
make it one keypress instead of C-u C-c ! Enter.

At the end of the month, I look at a per Org file agenda via with
logbook mode and inactive timestamps enabled (C-c a 1 a L [) and count
up the hours. On issue with automating the counting (ie: clocking in
and out) is that each customer may have different rules (ie: minimum
hours for a task, emergency after hours support, etc). I haven't a
good way to encode that information. I do tend to make a simple table
with my count.

I enter this data manually into other timekeeping systems depending on
the customer, or my invoicing system. Unfortunately given the variety
I see no good way to directly export and invoice.

I find the flexibility of Org allows me to quickly do this with all my
needed data in one place. I often put ticket #'s as tags on my
headlines, and if a customer questions the bill I just save my agenda
view as HTML and send it over.

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3



Re: org-tables with monetary amounts

2020-10-09 Thread Daniele Nicolodi
Hello Christian,

thank you for your input. calc support for units indeed covers the
basics of working with currencies. I gave it a spin on some notes I have
been working on recently. While some things work very nicely, other are
a bit ugly. It is a good start and I'll explore this approach more.

On 24/09/2020 11:17, Christian Moe wrote:

> Now, with the Calc command to simplify units, you can add dollars to
> euros and get the result in whichever currency comes first in the
> algebraic expression
> 
>   | 3 USD | 4 EUR | 6.58 EUR |
>   #+tblfm: $3=usimplify($2+$1)
> 
>   | 3 USD | 4 EUR | 7.6511628 USD |
>   #+tblfm: $3=usimplify($1+$2)

Having to explicitly use usimplify() is a bit too verbose. It would be
ideal if this could be somehow be implicit.

> I don't use this functionality, so I don't have answers to all the
> questions you'll now have -- including how to get the desired precision
> without lopping off the currency unit in the last example!

Having the desired fixed precision is quite important for this to be
useful. In y recent tests I had to drop the units (currencies) to
achieve this. It would be nice to find a way to avoid it.

> There are ways to enter user-defined units permanently. But exchange
> rates change, so to use this functionality on a daily basis, you'll want
> to have some kind of function to pull exchange rates and update the
> currency unit definitions in the Calc init file.

Computations usually refer to a specific point in time, thus this is npt
a big problem in practice. I already have scripts to pull exchange rates
at a given date. These can the be inserted as a property that can be
easily references from the computations.

> Apart from `usimplify', most Calc functions on units appear (?) to be
> missing corresponding algebraic versions that you can use in Calc
> expressions in Org tables, which limits the usefulness.
> 
> Org tables don't seem to have any specific formula syntax for leveraging
> Calc unit operations apart from what happens to work out of the
> box. This might be an area for improvement, though I'm not sure what to
> ask for.

I don't understand what you mean in the two paragraphs above. Can you
please clarify, maybe with examples?

Thank you.

Cheers,
Dan



bug on regex parsing breaks syntax highlighting on SRC block

2020-10-09 Thread rey-coyrehourcq
Hi,

I found that this specific line break syntax highlighting in org v9.4 : 

#+BEGIN_SRC nix
systemd.user.sessionVariables.NIX_PATH = lib.mkForce 
"nixpkgs=$HOME/nixpkgs\${NIX_PATH:+:}$NIX_PATH";
#+END_SRC

I suppose this is a bug localized on regex parsing, removing backslash here 
"\${NIX_PATH:+:}" repair the problem


Best regards,
-- 


Sébastien Rey-Coyrehourcq
Research Engineer UMR IDEES
02.35.14.69.30

{Stronger security for your email, follow EFF tutorial : https://ssd.eff.org/}




signature.asc
Description: This is a digitally signed message part


Re: Use-case: simple nodes and todo-list

2020-10-09 Thread Eric S Fraga
My use of org actually quite closely manages your paper based
approach.  I have 3 main org files that cover the tasks you have
described:

1. todo.org which has all my todo items.  every now and again, I go
   through this list and schedule some of them.  I do put deadlines on
   items if they have hard deadlines (i.e. of the type that says "this
   *has* to be done by then or else...") but I do not create artificial
   deadlines.

2. notes.org that is simple a collection of (a large number of)
   snippets, each in a single top level headline.  These are all tagged
   when created with as many tags per entry as I can think of at the
   time.  I can then usually find what I want very quickly through the
   tag search functionality in org-agenda (C-c a m TAG RET) with
   org-agenda bound to "C-c a".  But see below.

3. diary.org for appointments and meetings.  This is the file that sees
   the most activity but only because I seem to live in meetings these
   days...

The key with the first two is to not worry about how you structure
information.  If all else fails, you can use the full power of Emacs to
find things (occur; isearch-forward-regexp; etc.).  

HTH,
eric

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4-38-g16f505



Re: Annoyance when resolving clock idle time with emacsclient

2020-10-09 Thread Samuel Loury
Ihor Radchenko  writes:

>> Thanks for the tip, I'll try pressing 10 times the next time it happens
>> (which is probably today).
>
> That sounds really odd. Could it be that there are multiple open
> (without ending time) clocks existing in your org files?

In my case, I am pretty sure to have only one clock open at most. The
clock report don't show any unfinished clock or any overlapping ones
and org-resolve-clock does not find any other unfinished clock other
than the one I am into.

-- 
Konubinix
GPG Key: 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A


signature.asc
Description: PGP signature


Re: Annoyance when resolving clock idle time with emacsclient

2020-10-09 Thread Samuel Loury
Budiman Snowman  writes:

> On Thu, Oct 8, 2020 at 10:30 PM Eric S Fraga  wrote:
>
>> On Thursday,  8 Oct 2020 at 16:54, Samuel Loury wrote:
>> > Also, another boring behavior of org-resolve-clocks is that I generally
>> > have to press several times (about ten times) on the "i" key to ignore
>> > the message.
>>
>> Similar with the 'q' key (usually requires 2-3 presses) although not
>> with 'k' (single press sufficient always).
>>
>>
> I almost always choose 'k' (keep) and it is often not responding after the
> first or several presses. But as Samuel Loury pointed out, I'll try
> pressing ten times at least, the next time it happens.

IIRC, pressing 'k', even a lot, did not work. I realized that i might be
linked to the fact that 'k' asks for some minibuffer input and this
input is waited in the other frame. And when emacs is waiting for some
minibuffer input in one frame, there is nothing I could do to get the
control on the other frame.¹

What I am suggesting is to press a lot 'i', until org-mode releases its
grasp on the other frame. You notice that it is so when the letter 'i'
gets written in front of you :-). Then, when org-mode let you go, you
can run M-x org-resolve-clocks and you will be able to press 'k' this
time.

I hope this is clearer this time.

Good luck :-).

¹ Actually, there is one way. Send the SIGUSR2 signal to emacs (pkill
  -SIGUSR2 emacs) so that it starts the debugger (in your current focused
  frame), then close the debugger and re run manually M-x
  org-resolve-clocks. SIGUSR2 would have enabled the debug-on-quit, so
  disable it with M-x toggle-debug-on-quit
-- 
Konubinix
GPG Key: 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A


signature.asc
Description: PGP signature


org-mode time tracking setup integrating with SaaS (Harvest, Toggl, Bonsai etc)

2020-10-09 Thread Daryl Manning
I'm just setting up a new time tracking system and have in the past used
Harvest to track and bill clients.

With emacs clocking and calendaring, I was actually hoping to find some way
to have it interface/export with one of the SaaS systems and effectively
allow me to track time in emacs but then get data into one of those systems
(effectively for presentation, and invoicing and such.).

Has anyone run across a good integration for doing that or has a blog post
on their system particularly where they need to track hours/tasks across a
few clients and projects for consultancy purposes (or a roll your own would
be an interesting start though I do like the SaaS systems' invoicing and
payments and such.).

thanks!
Daryl.


Re: [PATCH] ob-java

2020-10-09 Thread ian martins
I noticed that the tests didn't run with "make test." This updates the
patch so that they can. I didn't add java to the list of default languages
because the java tests are slow.

On Mon, Oct 5, 2020 at 9:23 AM ian martins  wrote:

> I wrote those examples in an org file so I could test as I wrote them, and
> then exported it to make it more readable, but the export resulted in
> source block headers being lost.  Here is the same without export:
> 
> * Changes
>
> - support for functional mode (~:results value~)
> - accept variables
> - don't require package, class, and main definitions
> - write source and result tempfiles to ~org-babel-temporary-directory~,
> but respects the ~:dir~ header
> - work with tramp
>
> * Examples
> ** Example 1
> This outputs "hello."  If class and main definitions aren't given the
> code block will be wrapped in generic ones.
>
> #+begin_src java :results output silent
>   System.out.print("hello");
> #+end_src
>
> This is exactly equivalent:
>
> #+begin_src java :results output silent
>   public class Main {
>   public static void main(String[] args) {
>   System.out.print("hello");
>   }
>   }
> #+end_src
>
> ** Example 2
> This also outputs "hello."
>
> #+begin_src java :results value silent
>   return "hello";
> #+end_src
>
> ** Example 3
> This generates the class "Example" in the package "org.orgmode" in the
> current directory.
>
> #+begin_src java :results output silent :classname org.orgmode.Example
> :dir .
>   System.out.print("hello, org-mode");
> #+end_src
>
> ** Example 4
> The "Hey" class defines a static method but no main. C-c C-c on the
> "Hey" source block will write "./org/orgmode/Hey.java" and compile it.
>
> The "Main" class calls the "Hey" class. C-c C-c on the "Main" source
> block will write "./org/orgmode/Main.java" and compile and run it.
>
> #+begin_src java :results output silent :dir .
>   package org.orgmode;
>
>   public class Hey {
>   public static String say() {
>   return "hey";
>   }
>   }
> #+end_src
>
> #+begin_src java :results output silent :dir .
>   package org.orgmode;
>
>   public class Main {
>   public static void main(String[] args) {
>   System.out.print(Hey.say());
>   }
>   }
> #+end_src
>
> Instead of C-c C-c, we could have added tangle headers and written the
> source files out by tangling.
>
> ** Example 5
> This prints the variable from the header
>
> #+begin_src java :var msg="hello, org-mode" :results output silent
>   System.out.print(msg);
> #+end_src
>
> ** Example 6
> This prints "hello, org-mode." The table is provided to the method as a
> list of lists.
>
> #+name: table
> | message | hello, org-mode  |
>
> #+begin_src java :var tbl=table :results output silent
>   System.out.print(tbl.get(0).get(1));
> #+end_src
>
> ** Example 7
> This example returns a list.
>
> Note that you're allowed to specify imports without defining the class
> or main methods.
>
> #+begin_src java :results value :exports both
>   import java.util.Arrays;
>
>   return Arrays.asList("message", "hello, org-mode");
> #+end_src
>
> #+RESULTS:
> | message | hello, org-mode |
>
> On Mon, Oct 5, 2020 at 8:35 AM ian martins  wrote:
>
>> 1 Changes
>> =
>>
>>   - support for functional mode (`:results value')
>>   - accept variables
>>   - don't require package, class, and main definitions
>>   - write source and result tempfiles to
>> `org-babel-temporary-directory', but respects the `:dir' header
>>   - work with tramp
>>
>>
>> 2 Examples
>> ==
>> Some examples follow.  See the tests for more examples.  I'll write
>> proper docs after review.
>>
>> 2.1 Example 1
>> ~
>>
>>   This outputs "hello."  If class and main definitions aren't given the
>>   code block will be wrapped in generic ones.
>>
>>   ,
>>   | System.out.print("hello");
>>   `
>>
>>   This is exactly equivalent:
>>
>>   ,
>>   | public class Main {
>>   | public static void main(String[] args) {
>>   | System.out.print("hello");
>>   | }
>>   | }
>>   `
>>
>>
>> 2.2 Example 2
>> ~
>>
>>   This also outputs "hello."
>>
>>   ,
>>   | return "hello";
>>   `
>>
>>
>> 2.3 Example 3
>> ~
>>
>>   This generates the class "Example" in the package "org.orgmode" in the
>>   current directory.
>>
>>   ,
>>   | System.out.print("hello, org-mode");
>>   `
>>
>>
>> 2.4 Example 4
>> ~
>>
>>   The "Hey" class defines a static method but no main. C-c C-c on the
>>   "Hey" source block will write "./org/orgmode/Hey.java" and compile it.
>>
>>   The "Main" class calls the "Hey" class. C-c C-c on the "Main" source
>>   block will write "./org/orgmode/Main.java" and compile and run it.
>>
>>   ,
>>   | package org.orgmode;
>>   |
>>   | public class Hey {
>>   | public static String say() {
>>   | return "hey";
>>   | }
>>   | }
>>   `
>>
>>   ,
>>   | package org.orgmode;
>>   |
>>   | public class Main {
>>  

Re: Use-case: simple nodes and todo-list

2020-10-09 Thread Joost Kremers

Hi,
On Fri, Oct 09 2020, c.bu...@posteo.jp wrote:

1. Simple notes with keywords and endless time to life
I have notes (most of them as post-its on the wall and monitor 
in my 
office) with information's I am not able or willing to remember. 
But I 
need this information's every few days. e.g. numbers for 
bank-account, 
projects, persons
I find this information's by place (post-it glued to a specific 
place in 
my office). When they are digitized I would use keywords or 
in-text 
search. e.g. searching for the project name "my project" to find 
its 
number.


Yes, Org can definitely do this, though in this particular case, 
I'm not sure Org really has any advantage over using just plain 
text files or say markdown files. (The advantage of Org would be 
in the integration that would be possible with other parts of your 
setup.)


I personally have something similar: a bunch of files in which I 
keep notes of things I may need in the future. I keep them in Org 
format and I search them with Deft: 
. (Though I do not follow the 
advice on that page of using Melpa Stable. I just use the Melpa 
version.) Of course, searching them can also be done with grep (or 
one of its alternatives, ripgrep, ag, etc.) and an Emacs frontend 
(ivy, helm, what have you).



2.ToDo List without time information's


Yes, you can create todo-lists without time information. You can 
attach a deadline to a task, but you don't have to. You can also 
create multiple TODO-states (e.g., TODO, INPROGRESS, SUSPENDED, 
DONE, etc.) and set different priorities.


--
Joost Kremers
Life has its moments



Re: Use-case: simple nodes and todo-list

2020-10-09 Thread Robert Pluim
> On Fri, 09 Oct 2020 10:17:56 +0200, c.bu...@posteo.jp said:

c> Hello,
c> I still read something about org-mode.

c> It is a complex and powerfull tool. I now try fit/transform my current
c> workflow and use-cases to org-mode. So maybe you can give me a simple
c> yes-now if this could be fullfilled with org-mode.

c> 1. Simple notes with keywords and endless time to life

Yes. org *allows* you to invent a complex deadline/scheduling
workflow, but at its most basic you just write:

* Project 1 :work:
** Task 1
** Task 2
* Project 2 :play:

and just stick your notes in there (you can do things with lists,
checkboxes, etc, but Iʼd start simple).

c> I have notes (most of them as post-its on the wall and monitor in my
c> office) with information's I am not able or willing to remember. But I
c> need this information's every few days. e.g. numbers for bank-account,
c> projects, persons
c> I find this information's by place (post-it glued to a specific place
c> in my office). When they are digitized I would use keywords or in-text
c> search. e.g. searching for the project name "my project" to find its
c> number.

Everyone has their own system, but I put "stuff I donʼt need often" in
one org file, then I have a 'work' file and a 'play' file. Ordinary
emacs search commands are enough, but again org has support for
searching by tags, name etc.

c> 2.ToDo List without time information's
c> Currently I use a one-page-paper handwritten as a ToDo List. I
c> re-create it every week. It helps me. I make priorities with some
c> colors or underlines. And it (maybe) makes my workload visible to my
c> leaders when sitting in a meeting and having the ToDo list on the
c> table. ;)
c> In the past I also tried "taskwarrior". Very powerfull, I loved
c> it. But it did not fit to my workflow. I know this is apocalyptic and
c> hard to imagine but deadlines are useless in my workflow. :D So
c> taskwarrior did not helped be it just build up more pressure to
c> me. Simple explanation: My work is influenced by to much unknown
c> external spontaneous factors. It is useless to make
c> plans/deadlines. Yes it is horror, I work on it. But I am not on that
c> level of the hierarchy to make the fundamental needed changes.


* TODO get milk :housekeeping:
* TODO feed cat :housekeeping:pets:

(and the 'housekeeping' stuff is also completely optional).

For priorities org has support for 3 levels of priority built in, so
you'd have:

* TODO [#B] get milk   :housekeeping:
* TODO [#A] feed cat  :housekeeping:pets:

There are convenient key bindings for setting the priorites on items.

For what you've described, Iʼd start by reading (info "(org) TODO
Items"), and stopping when you've reached the level you want to use.

Robert
-- 



Use-case: simple nodes and todo-list

2020-10-09 Thread c . buhtz

Hello,

I still read something about org-mode.

It is a complex and powerfull tool. I now try fit/transform my current 
workflow and use-cases to org-mode. So maybe you can give me a simple 
yes-now if this could be fullfilled with org-mode.


1. Simple notes with keywords and endless time to life
I have notes (most of them as post-its on the wall and monitor in my 
office) with information's I am not able or willing to remember. But I 
need this information's every few days. e.g. numbers for bank-account, 
projects, persons
I find this information's by place (post-it glued to a specific place in 
my office). When they are digitized I would use keywords or in-text 
search. e.g. searching for the project name "my project" to find its 
number.


2.ToDo List without time information's
Currently I use a one-page-paper handwritten as a ToDo List. I re-create 
it every week. It helps me. I make priorities with some colors or 
underlines. And it (maybe) makes my workload visible to my leaders when 
sitting in a meeting and having the ToDo list on the table. ;)
In the past I also tried "taskwarrior". Very powerfull, I loved it. But 
it did not fit to my workflow. I know this is apocalyptic and hard to 
imagine but deadlines are useless in my workflow. :D So taskwarrior did 
not helped be it just build up more pressure to me. Simple explanation: 
My work is influenced by to much unknown external spontaneous factors. 
It is useless to make plans/deadlines. Yes it is horror, I work on it. 
But I am not on that level of the hierarchy to make the fundamental 
needed changes.


What do you think?

Do you have any sources that explain org-mode with showing real life 
use-cases?


kind