Re: Disabling automatic links for timestamps and tags

2020-10-10 Thread Kyle Meyer
Peter Bienstman writes:

> I don't want clicking on timestamps and tags to open a search Window.

You can customize org-highlight-links.  For example, assuming you have
seq and org loaded:

(setq org-highlight-links
  (seq-remove (lambda (x) (memq x '(tag date)))
  org-highlight-links))



Re: Disabling automatic links for timestamps and tags

2020-10-10 Thread Peter Bienstman
I don't want clicking on timestamps and tags to open a search Window.

On Sat, 10 Oct 2020, 17:33 Kyle Meyer,  wrote:

> Peter Bienstman writes:
>
> > How can I prevent orgmode from turning timestamps and tags into links?
>
> Could you provide a minimal example that demonstrates that behavior
> you're referring to?
>


Re: Bug: org-babel python with :results value sends function definition with a statement after a for loop to the shell incorrectly [9.3.6 (9.3.6-elpa @ /home/username/.emacs.d/elpa/org-9.3.6/)]

2020-10-10 Thread Jack Kamm
Checking back in on this since Org 9.4 has been released. This issue
should be fixed now, and my tests corroborate this. If you're still
experiencing this problem after updating, please let me know.

Best,
Jack

Jack Kamm  writes:

>> I redid the test but loaded the lastest org-mode and there was no
>> error. This means you probably don't need to debug this. It has been
>> fixed in the latest version, but the fix hasn't been updated in the
>> elpa package yet.  you can either wait for the next release or pull
>> the latest code from the repo.
>
> Thanks for checking this Ian, I believe that this issue would have been
> fixed by this patch:
>
> https://orgmode.org/list/87pnfdo88v@gmail.com/
>
> But I've been too swamped to check.



Re: [PATCH] ob-python: Rename exec tmpfile handle to prevent conflict

2020-10-10 Thread Jack Kamm
Hi Adrian,

Adrian Kummerländer  writes:

> I noticed that after updating to Org 9.4 many of my Python-based Org
> files fail to execute with various `io.TextIOWrapper' related error
> messages. The reason for this is that opening the exec tmpfile as `f'
> shadows this possibly user-defined variable.
>
> The attached patch fixes this problem for me. As this is my first
> time contributing to Org I am especially open for any suggestions!

The patch looks good.  I've pushed it to master, after making a couple
minor fixes to the commit message (adding a TINYCHANGE cookie and
adjusting some of the spacing).

Thanks for your contribution!

Jack



Re: Deadline w/o time not showing on daily agenda

2020-10-10 Thread Kyle Meyer
David Masterson writes:

> Is there a way to get tasks with a deadline that doesn't have a time
> (just a day) to show on the daily agenda?  Tasks w/ timed deadline do
> show on the daily agenda.

Could you provide a minimal example that shows the issue?

On the current master branch (23f9415), I tried with this as the only
configuration

(require 'org)
(require 'org-agenda)
(setq org-agenda-files '("/tmp/scratch.org"))
(global-set-key (kbd "C-c a") #'org-agenda)

where the content of /tmp/scratch.org is

--8<---cut here---start->8---
* TODO a
  DEADLINE: <2020-10-10 Sat>

* TODO b
  DEADLINE: <2020-10-10 Sat 21:00>
--8<---cut here---end--->8---

Visiting that file and hitting `C-c a a v d' shows

Day-agenda (W41):
Saturday   10 October 2020
   8:00.. 
  10:00.. 
  12:00.. 
  14:00.. 
  15:06.. now - - - - - - - - - - - - - - - - - - - - - - - 
- -
  16:00.. 
  18:00.. 
  20:00.. 
  scratch:21:00.. Deadline:   TODO b
  scratch:Deadline:   TODO a



Re: Reply-All noise

2020-10-10 Thread c.buhtz
On 2020-10-10 20:57 Maxim Nikulin  wrote:
> openssl s_client --starttls sieve -connect posteo.de:sieve
> 
> "IMPLEMENTATION" "Dovecot Pigeonhole"

Great!

I knew and intensiv used "sieve" on my posteo.de Server.
But sieve-Support was unofficial and they simply deactivated it without
reason or any news about it.

I asked often and also by physical mail to the CEO of the company to
turn it on again. But no reaction. I never tried after that.

Now you gave the hint that it is activated again. Great. :)

I used a nice double-post-on-mailing-list-filter via this sieve file in
the past. But my problem was that it was deactivated.



Deadline w/o time not showing on daily agenda

2020-10-10 Thread David Masterson
Is there a way to get tasks with a deadline that doesn't have a time
(just a day) to show on the daily agenda?  Tasks w/ timed deadline do
show on the daily agenda.

-- 
David Masterson



Re: Disabling automatic links for timestamps and tags

2020-10-10 Thread Kyle Meyer
Peter Bienstman writes:

> How can I prevent orgmode from turning timestamps and tags into links?

Could you provide a minimal example that demonstrates that behavior
you're referring to?



Re: Reply-All noise

2020-10-10 Thread Jens Lechtenboerger
On 2020-10-09, to...@tuxteam.de wrote:

> 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!).
> [...]
> [1] https://cr.yp.to/proto/replyto.html

That is what I’m using with Gnus, see [2].  In my case,
message-subscribed-addresses contains "emacs-orgmode@gnu.org".

With that setting I say: Please send replies just to the list, not
to me individually.

Best wishes
Jens

[2] 
https://www.gnu.org/software/emacs/manual/html_node/message/Mailing-Lists.html



Disabling automatic links for timestamps and tags

2020-10-10 Thread Peter Bienstman
Hi,

How can I prevent orgmode from turning timestamps and tags into links?

Thanks!


Re: Reply-All noise

2020-10-10 Thread Maxim Nikulin

10.10.2020 15:53, c.bu...@posteo.jp wrote:

On 2020-10-10 15:03 Maxim Nikulin  wrote:

1. Use "duplicate" sieve extension.
[..]

2. Just add filter
[..]


This are workarounds but not solutions.


Certainly.


IMO the problem is the list user that "Answers to all".

Why should I modify my system because another one make errors?


Just because people make errors. Most of them do not care and they do 
not have any problem. Even ones, who aware, sometimes press wrong 
button. Relax. If it is so annoying for you, I am afraid, the only 
option is to fix it on your side.


There are a lot of wide spread ways to use email in a "strange" way. 
Usually discomfort, even if noticed, does not deserve efforts to enforce 
strict rules. You might achieve more results in educating people, how to 
use email properly, by telling your friends and colleagues a story how 
you made your life better by arranging a couple of filtering rules.


10.10.2020 15:57, c.bu...@posteo.jp wrote
>
> Btw: It is nice that all of you using Gnus and (maybe) a local
> mailserver with powerfull filtering. I don't.

I do not see any reason to complain concerning features available on the 
server of your email provider


curl --location 
https://posteo.jp/.well-known/autoconfig/mail/config-v1.1.xml
curl: (51) SSL: no alternative certificate subject name matches target 
host name 'posteo.jp'


curl --location --insecure 
https://posteo.jp/.well-known/autoconfig/mail/config-v1.1.xml | grep 
--after-context=1 imap


  posteo.de

openssl s_client --starttls sieve -connect posteo.de:sieve

"IMPLEMENTATION" "Dovecot Pigeonhole"
"SIEVE" "fileinto reject envelope encoded-character vacation subaddress 
comparator-i;ascii-numeric relational regex imap4flags copy include 
variables body enotify environment mailbox date ihave vnd.dovecot.duplicate"


P.S. Despite I believe that reply should be sent to the list only unless 
sender explicitly asked to to retain her/his address in Cc, I do not 
think it is worth struggling with people who intentionally use reply to 
all or do not care.





Re: Reply-All noise

2020-10-10 Thread c.buhtz
On 2020-10-10 11:10  wrote:
> I made myself quite a bit of work to explain to you what you can do.
> Even with a link to mailman docs on how you can set your subscription
> settings.

You did not. You wrote

> experiment with setting the Mail-Followup-To: header [1]

and pointed to
https://cr.yp.to/proto/replyto.html

The context of that "setting" is missing. I did not understand that
you wrote about mailman. You do not gave enough information but an
potentially insecure URL.

I couldn't find a setting named "Mail-Followup-To: header" but "Avoid
duplicate copies of messages?"

kind



Re: Bug: unexpected new page started after bullet line [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.3/lisp/org/)]

2020-10-10 Thread Richard Lawrence
Hi Rob,

Rob Sargent  writes:

> This construct causes a new page to be started
> * head
> ** subhead
> - bullet

... in which export backend? You say you are using LibreOffice, but you
provided an example Org file with many LaTeX-related options. Do you see
the page break in a LibreOffice document? in a LaTeX-compiled PDF? both?

If in LibreOffice, do you see the same behavior if you don't have all
the LaTeX-related options in place?

FWIW, I tried exporting this construct to both LaTeX and ODT *without*
the LaTeX options on Org 9.4 and do not see the page breaks you are
seeing.

-- 
Best,
Richard



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

2020-10-10 Thread Dr. Arne Babenhauserheide

Daryl Manning  writes:

> 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

I don’t do consultancy, but we I need to book for multiple projects at
work. I track my time and projects with org-mode (and found that
whenever I think “this is so small, I don’t need an org-headline for
this”, time gets out of hand). At the end of the week I then book my
time on the corresponding Jira issues using the clocktable in
agenda-view.

These are my essential customizations for that:

(use-package org-agenda
  :defer 8
  :custom
  (alert-default-style 'libnotify)
  (appt-disp-window-function 'alert-for-appt)
  (appt-delete-window-function (lambda ()))
  (org-agenda-clock-consistency-checks
   (quote
(:max-duration "12:00" :min-duration 0 :max-gap "0:05" :gap-ok-around
   ("4:00" "12:00")
   :default-face
   ((:background "DarkRed")
(:foreground "white"))
   :overlap-face nil :gap-face nil :no-end-time-face nil 
:long-face nil :short-face nil)))
  (org-agenda-clockreport-parameter-plist (quote (:link t :maxlevel 2 
:properties ("Effort"
  (org-agenda-start-with-clockreport-mode t)
  :config
  ;; Rebuild the reminders everytime the agenda is displayed
  (add-hook 'org-agenda-finalize-hook (lambda () (org-agenda-to-appt t)))
  ;; Run once when Emacs starts
  (org-agenda-to-appt t)
  ;; Activate appointments so we get notifications
  (appt-activate t))

(defun my/org-agenda-show-kanban ()
  (interactive)
  (save-excursion
(search-forward ":KANBAN:")
(org-agenda-goto)
(org-narrow-to-subtree)
(show-all)
(fit-window-to-buffer)
(widen)
(recenter-top-bottom 0)))

;; KDE: show custom agenda with kanban via f12:
(with-eval-after-load 'org
  (setq org-agenda-custom-commands
'(("o" "Agenda and TODOs"
   ((agenda)
(tags-todo "-notodo" ((org-agenda-block-separator ?-)))
(tags "KANBAN" ((org-agenda-block-separator 
?-)(org-agenda-compact-blocks nil)(org-agenda-overriding-header "")))

;; from https://www.emacswiki.org/emacs/TransposeWindows solution by Robert Bost
(defun rotate-windows (arg)
  "Rotate your windows; use the prefix argument to rotate the other direction"
  (interactive "P")
  (if (not (> (count-windows) 1))
  (message "You can't rotate a single window!")
(let* ((rotate-times (prefix-numeric-value arg))
   (direction (if (or (< rotate-times 0) (equal arg '(4)))
  'reverse 'identity)))
  (dotimes (_ (abs rotate-times))
(dotimes (i (- (count-windows) 1))
  (let* ((w1 (elt (funcall direction (window-list)) i))
 (w2 (elt (funcall direction (window-list)) (+ i 1)))
 (b1 (window-buffer w1))
 (b2 (window-buffer w2))
 (s1 (window-start w1))
 (s2 (window-start w2))
 (p1 (window-point w1))
 (p2 (window-point w2)))
(set-window-buffer-start-and-point w1 b2 s2 p2)
(set-window-buffer-start-and-point w2 b1 s1 p1)))


(defun agenda-and-todo ()
  (interactive)
  (org-agenda nil "o")
  (delete-other-windows)
  (my/org-agenda-show-kanban)
  (rotate-windows 1))
;;  systemsettings shortcuts: map f12 to
;;emacsclient -e '(progn (show-frame)(agenda-and-todo))'
(global-set-key (kbd "") 'agenda-and-todo)

;; KDE: record new issue with M-f12 (alt f12):
;;  systemsettings shortcuts: map alt f12 to
;;emacsclient -e '(progn (show-frame)(org-capture))'
(global-set-key (kbd "M-") 'org-capture)

;; clock into the current task via S-f12 (shift f12). rationale: shift
;; is used to shift from one task to another without clocking out.
(global-set-key (kbd "S-") 'org-clock-in)

;; KDE: global clock out via M-S-f12 (alt-shift f12):
;;  systemsettings shortcuts: map f12 to
;;emacsclient -e '(progn (show-frame)(org-clock-out))'
(global-set-key (kbd "M-S-") 'org-clock-out)

(defun show-frame ( frame)
  "Show the current Emacs frame or the FRAME given as argument.

And make sure that it really shows up!"
  (raise-frame)
  ; yes, you have to call this twice. Don’t ask me why…
  ; select-frame-set-input-focus calls x-focus-frame and does a bit of
  ; additional magic.
  (select-frame-set-input-focus (selected-frame))
  (select-frame-set-input-focus (selected-frame)))


I have a dedicated emacs environment for work that I brought over into
homeoffice.

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken


signature.asc
Description: PGP signature


Re: Reply-All noise

2020-10-10 Thread tomas
On Sat, Oct 10, 2020 at 10:57:26AM +0200, c.bu...@posteo.jp wrote:
> There is a "Sender:" header entry I can filter on.
> 
> But I do not setup anything because I don't case the problem.

I don't unerstand this sentence.

> Btw: It is nice that all of you using Gnus and (maybe) a local
> mailserver with powerfull filtering. I don't.

FWIW, I'm using mutt (I plan to switch to gnus some day, but that's
irrelevant).

> It is kind of a religious problem. :D

Fine. You keep your religion, others keep their religions. Don't try
to force your religion on me: I might turn nasty.

> Isn't there a setting on the mailinglist site (e.g. mailman) that can
> handle problems like this?

I made myself quite a bit of work to explain to you what you can do.
Even with a link to mailman docs on how you can set your subscription
settings.

Do you read the responses you receive?

Cheers
 - t


signature.asc
Description: Digital signature


Re: Reply-All noise

2020-10-10 Thread tomas
On Sat, Oct 10, 2020 at 10:53:08AM +0200, c.bu...@posteo.jp wrote:
> On 2020-10-10 15:03 Maxim Nikulin  wrote:
> > 1. Use "duplicate" sieve extension.
> > [..]
> > 
> > 2. Just add filter
> > [..]
> 
> This are workarounds but not solutions.
> 
> IMO the problem is the list user that "Answers to all".

"The problem are always the others". Way to go!

Did you read the reference I sent in reply to you? Did you take
into account that this list is open to non-subscribers?

> Why should I modify my system because another one make errors?

It's not "errors". It's the way an open mailing list works.

Entering a room and yelling "Hey, all of you stop doing things
the way you're doing it. I'm gonna tell ya how you gotta do
things now" is, to put it politely, slightly unpolite :-)

Cheers
 - t


signature.asc
Description: Digital signature


Re: Reply-All noise

2020-10-10 Thread c.buhtz
There is a "Sender:" header entry I can filter on.

But I do not setup anything because I don't case the problem.

Btw: It is nice that all of you using Gnus and (maybe) a local
mailserver with powerfull filtering. I don't.

It is kind of a religious problem. :D

Isn't there a setting on the mailinglist site (e.g. mailman) that can
handle problems like this?

Kind



Re: Reply-All noise

2020-10-10 Thread c.buhtz
On 2020-10-10 15:03 Maxim Nikulin  wrote:
> 1. Use "duplicate" sieve extension.
> [..]
> 
> 2. Just add filter
> [..]

This are workarounds but not solutions.

IMO the problem is the list user that "Answers to all".

Why should I modify my system because another one make errors?



Re: Reply-All noise

2020-10-10 Thread Maxim Nikulin

10.10.2020 02:24, c.bu...@posteo.jp wrote:


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.


I have not tried myself the following suggestions from another mail 
list, so I do not know real value of them or non-obvious drawbacks:


1. Use "duplicate" sieve extension. FRC7352 (not 7353). It is supported 
e.g. by dovecot
https://tools.ietf.org/html/rfc7352 Sieve Email Filtering: Detecting 
Duplicate Deliveries
https://wiki2.dovecot.org/Pigeonhole/Sieve/Extensions/Duplicate 
Pigeonhole Sieve: Duplicate Extension


2. Just add filter that drops messages having mail list in To or Cc but 
have not passed mail list server.