Re: [feature request] org-at-timestamp-p should accept multiple parameters

2020-09-09 Thread Adam Faryna
Thanks. I understand now.

I think to generate a patch in this case it's too much hustle, for a minor
benefit.

--
Adam

On Wed, 9 Sep 2020 at 09:13, Bastien  wrote:

> Hi Adam,
>
> Adam Faryna  writes:
>
> > Ok, maybe I misunderstood the purpose of this function. I wanted to
> > use it to check if the timestamp is active or inactive and I tried to
> > get it by using (org-at-timestamp-p 'inactive) while pointing at the
> > timestamp. But actually when I call it on any timestamp like
> > [2020-09-04 Fri], <2020-09-04 Fri> I always get nil. So either it's a
> > bug, or I miss something.
>
> (org-at-timestamp-p) returns t on an active timestamp.
>
> (org-at-timestamp-p 'inactive) returns t on any timestamp, including
> inactive ones.
>
> If you think the docstring could be enhanced, can you share a patch?
>
> See https://orgmode.org/worg/org-contribute.html on how to contribute.
>
> Thanks,
>
> --
>  Bastien
>


Re: [feature request] org-at-timestamp-p should accept multiple parameters

2020-09-08 Thread Adam Faryna
Ok, maybe I misunderstood the purpose of this function. I wanted to use it
to check if the timestamp is active or inactive and I tried to get it by
using (org-at-timestamp-p 'inactive) while pointing at the timestamp. But
actually when I call it on any timestamp like [2020-09-04 Fri], <2020-09-04
Fri> I always get nil. So either it's a bug, or I miss something.

Thanks,

Adam

On Tue, 8 Sep 2020 at 15:26, Bastien  wrote:

> Hi Adam,
>
> thanks, but I still need to understand the exact change you suggest
> and what general fix/improvement it will provide.  Probably a patch
> will be easier to understand for this.
>
> Thanks,
>
> --
>  Bastien
>


Re: [feature request] org-at-timestamp-p should accept multiple parameters

2020-09-08 Thread Adam Faryna
I think the problem is general. If you work with any timestamp that is
agenda like, you can't check using this function if it's active or
inactive. The one solution would be to remove parameter "agenda" and
consider every timestamp as a agenda like (the "timestamp" in "
org-at-timestamp-p" suggest that there is time information in it anyway) by
default, or keep it as it is but extend parameter list with support of
named parameters where agenda-like can be activated with :agenda t,
inactive timestamp with :inactive t, with default values nil.

Thanks,
Adam

On Sat, 5 Sep 2020 at 13:59, Bastien  wrote:

> Hi Adam,
>
> you forgot to copy the emacs-orgmode list - can you repost your email
> there?
>
> Thanks,
>
> --
>  Bastien
>


Bug: org-agenda-sorting-strategy priority has no effect [9.3.7 (9.3.7-16-g521d7f-elpaplus @ /Users/devil/.emacs.d/elpa/org-plus-contrib-20200803/)]

2020-08-05 Thread Adam Faryna
09) (:endgroup))
 org-modules '(ol-w3m ol-bbdb ol-bibtex ol-docview ol-gnus ol-info ol-irc 
ol-mhe ol-rmail ol-eww
   org-habit org-drill org-collector org-depend org-eww 
org-checklist)
 org-shiftup-final-hook '(windmove-up)
 org-ascii-headline-spacing '(1 . 1)
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent 
org-depend-block-todo)
 org-export-creator-string "Adam Faryna (appdy.net)"
 org-odt-preferred-output-format "doc"
 org-mode-hook '(#[0 "\301\211\207" [imenu-create-index-function 
org-imenu-get-tree] 2]
 (closure
  (org-agenda-skip-regexp org-table1-hline-regexp
   org-table-tab-recognizes-table\.el org-table-dataline-regexp
   org-table-any-border-regexp 
org-agenda-restriction-lock-overlay
   org-agenda-overriding-restriction org-agenda-diary-file
   org-complex-heading-regexp calendar-mode-map t)
  nil (setq imenu-create-index-function (quote 
org-imenu-get-tree)))
 org-clock-load
 (lambda nil (set (make-local-variable (quote paragraph-start)) 
"[:graph:]+$")
  (set (make-local-variable (quote paragraph-separate)) 
"[:space:]*$"))
 #[0 "\300\301\302\303\304$\207"
   [add-hook change-major-mode-hook org-show-all append local] 
5]
 #[0 "\300\301\302\303\304$\207"
   [add-hook change-major-mode-hook org-babel-show-result-all 
append local] 5]
 (closure
  (org--rds reftex-docstruct-symbol org-element-greater-elements
   org-clock-history org-agenda-current-date org-with-time 
org-defdecode org-def
   org-read-date-inactive org-ans2 org-ans1 
org-columns-current-fmt-compiled
   org-clock-current-task org-clock-effort 
org-agenda-skip-function
   org-agenda-skip-comment-trees org-agenda-archives-mode 
org-end-time-was-given
   org-time-was-given org-log-note-extra org-log-note-purpose
   org-log-post-message org-last-inserted-timestamp 
org-last-changed-timestamp
   org-entry-property-inherited-from org-blocked-by-checkboxes 
org-state
   org-agenda-headline-snapshot-before-repeat 
org-capture-last-stored-marker
   org-agenda-start-on-weekday org-agenda-buffer-tmp-name 
org-priority-regexp
   org-mode-abbrev-table org-mode-syntax-table 
buffer-face-mode-face org-tbl-menu
   org-org-menu org-struct-menu org-entities org-last-state 
org-id-track-globally
   org-clock-start-time texmathp-why remember-data-file
   org-agenda-tags-todo-honor-ignore-options 
iswitchb-temp-buflist
   calc-embedded-open-mode calc-embedded-open-formula 
calc-embedded-close-formula
   align-mode-rules-list org-emphasis-alist 
org-emphasis-regexp-components
   org-export-registered-backends org-modules 
org-babel-load-languages
   org-id-overriding-file-name org-indent-indentation-per-level
   org-element-paragraph-separate ffap-url-regexp 
org-inlinetask-min-level t)
  nil
  (add-hook (quote change-major-mode-hook) (quote org-show-all) 
(quote append)
   (quote local))
  )
 (closure
  (org-src-window-setup *this* 
org-babel-confirm-evaluate-answer-no
   org-babel-tangle-uncomment-comments 
org-src-preserve-indentation
   org-src-lang-modes org-link-file-path-type 
org-edit-src-content-indentation
   org-babel-library-of-babel t)
  nil
  (add-hook (quote change-major-mode-hook) (quote 
org-babel-show-result-all)
   (quote append) (quote local))
  )
 org-babel-result-hide-spec org-babel-hide-all-hashes 
org-eldoc-load)
 org-clock-persist t
 org-export-with-smart-quotes t
 org-odt-format-drawer-function '(closure
  (hfy-user-sheet-assoc hfy-html-quote-regex 
hfy-html-quote-map
   hfy-face-to-css hfy-begin-span-handler 
hfy-end-span-handler
   archive-zip-extract 
nxml-auto-insert-xml-declaration-flag t)
  (_name contents) contents)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-mime-src-mode-hook '(org-mime-src-mode-configure-edit-buffer)
 org-reverse-note-order t
 org-priority-start-cycle-with-default nil
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-hide-block-startup t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-bibtex-headline-format-function #[257 "\300\2

[feature request] org-at-timestamp-p should accept multiple parameters

2020-08-02 Thread Adam Faryna
Hi,

recently I was doing some customization and I needed to check if timestamp
at a point is active or inactive. That timestamp also contains an agenda
like information about reoccurring.

So I tried to use org-at-timestamp-p function for this purpose.

The problem is I needed to check if the timestamp is agenda like and
inactive or ignore the context at the same time. But org-at-timestamp-p
takes only one parameter, and I needed to give it multiple parameters,
which is not possible in the current version.

Can you amend the implementation of org-at-timestamp-p to make it accept a
list of parameters or named parameters instead of just one parameter?

Thanks,
Adam


[O] Bug: Tables with multibyte characters and ASCII are not aligned properly after org-table-align in GUI mode [9.2.1 (9.2.1-2-gc6d37c-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20190204/)]

2019-02-09 Thread Adam Faryna
Tables with multibyte characters and ASCII are not aligned properly after
org-table-align in GUI mode.

In -nw mode table is properly aligned, but its incorrect in GUI mode.

Steps to reproduce:
Start emacs in GUI mode. Copy and paste table below to org-mode buffer. Put
emacs cursor inside the table, run org-table-align, all columns should be
aligned properly, but they don't. Save buffer in file. Open the same file
in no-GUI mode, the table will be properly aligned.

|| RI   | MI   | PI   | BI   | HI   | NI   | ZI   | KI   | GI   |
| ゃ | りゃ | みゃ | ぴゃ | びゃ | ひゃ | にゃ | じゃ | きゃ | ぎゃ |
| ゅ | りゅ | みゅ | ぴゅ | びゅ | ひゅ | にゅ | じゅ | きゅ | ぎゅ |
| ょ | りょ | みょ | ぴょ | びょ | ひょ | にょ | じょ | きょ | ぎょ |



OS: OSX Yosemite 10.10.4
Emacs  : GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS
appkit-1348.17 Version 10.10.5 (Build 14F2511))
 of 2018-05-31
Package: Org mode version 9.2.1 (9.2.1-2-gc6d37c-elpaplus @
~/.emacs.d/elpa/org-plus-contrib-20190204/)


[O] Bug: org-capture when :prepend t org-capture-kill removes one char too much from target buffer [9.1.7 (9.1.7-18-g2f587d-elpaplus @ /Users/devil/.emacs.d/elpa/org-plus-contrib-20180312/)]

2018-03-24 Thread Adam Faryna
ete
org-bbdb-complete-link :store org-bbdb-store-link)
   ("w3m" :store org-w3m-store-link) ("id" :follow org-id-open)
   ("file+sys") ("file+emacs") ("doi" :follow org--open-doi-link)
   ("elisp" :follow org--open-elisp-link)
   ("file" :complete org-file-complete-link)
   ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" path
   ("help" :follow org--open-help-link)
   ("http" :follow (lambda (path) (browse-url (concat "http:" path
   ("https" :follow (lambda (path) (browse-url (concat "https:" path
   ("mailto" :follow
(lambda (path) (browse-url (concat "mailto:; path
   ("news" :follow (lambda (path) (browse-url (concat "news:; path
   ("shell" :follow org--open-shell-link))
 org-list-description-max-indent 5
 org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
 org-agenda-mode-hook '(hl-line-mode)
 org-agenda-files '("/Users/devil/.emacs.d/agenda/shared.org"
"/Users/devil/.emacs.d/agenda/tasks.org.gpg")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-shiftright-final-hook '(windmove-right)
 org-clock-out-remove-zero-time-clocks t
 org-agenda-skip-scheduled-if-deadline-is-shown t
 org-tag-alist '(("@health" . 104) ("@fun" . 117) ("@career" . 99)
("@family" . 102)
("@love" . 108) ("@wealth" . 119))
 )
-- 
Best Regards,
Adam Faryna
Appdy.net

I prefer to use encrypted email.
My public key fingerprint is F410 95D7 AE78 22C1 0E25  F16A 0876 80C6 DA35
C73A.
Learn how to encrypt your email https://emailselfdefense.fsf.org/en.