[BUG] org-emphasis-regexp-components [9.6.15 (release_9.6.15 @ /snap/emacs/current/usr/share/emacs/29.4/lisp/org/)]

2024-08-07 Thread berchas
Desired behaviour: emphasis markers that only work within a
paragraph (sentences without a line break). In the following example,
only the
first expression should appear in bold: 

*jk j*

*jk
j* 


So I set the maximum new lines to zero in org-emphasis-regexp-
components (instead of the default of 1):

(setcar (last org-emphasis-regexp-components) 0)
(org-set-emph-re 'org-emphasis-regexp-components org-emphasis-regexp-
components)

This works. 
However, now the first expressions does not appear in bold
either. Only single words without any spaces like *jk* still appear in
bold. Sentences do not appear in bold anymore. Do I misinterpret the
meaning of max newlines in org-emphasis-regexp-components? 

KR, berchas

---
-



Emacs : GNU Emacs 29.4 (build 2, x86_64-pc-linux-gnu, GTK+ Version
3.24.20, cairo version 1.16.0)
of 2024-06-24
Package: Org mode version 9.6.15 (release_9.6.15 @
/snap/emacs/current/usr/share/emacs/29.4/lisp/org/)



[FEATURE] On line-numbers inside Org Babel Source Blocks.

2024-08-07 Thread divya
Hello, Org Mode!

I've been using Org Mode for literate programming purposes, and would like to 
have line-numbers within `src` blocks. I am able to export the Org buffer and 
get the line-numbers, but I am unable to do the same with regards to just in 
Org buffers. I am aware of `org-edit-special`, but I would rather appreciate if 
I can just look at a piece of code and know how long it is. I believe a header 
argument can be useful in toggling this.

Since the source blocks can already implement syntax highlighting, font and 
other means of interacting with displaying Babel source blocks, theoretically 
this shouldn't be that difficult to implement? I'd be glad to help implementing 
this feature, if I can be slightly guided on where to refer to look for in the 
codebase.

Regards,

Divya Ranjan



Summation of effort estimates in columnview dblock

2024-08-07 Thread General discussions about Org-mode.
Dear Org Developers,

I'm using Org 9.7.9, and I'm seeing behaviour of the (undocumented?)
"%Effort" vs. "%Effort{:}" in the column view dblock, which confuses me.

Consider this example:
 Begin Quote -
#+BEGIN: columnview :maxlevel 1 :indent t :format "%ITEM(Task) 
%EFFORT(Estimated) %EFFORT(Estimated Total){:}" :id global
| Task   | Estimated | Estimated Total |
|+---+-|
| Task 1 |2d | 7d 0:00 |
#+END:

#+BEGIN: columnview :maxlevel 2 :indent t :format "%ITEM(Task) 
%EFFORT(Estimated) %EFFORT(Estimated Total){:}" :id global
| Task | Estimated | Estimated Total |
|--+---+-|
| Task 1   |2d | 7d 0:00 |
| \_  Task 1.1 |3d |  3d |
| \_  Task 1.2 |4d |  4d |
#+END:

* Task 1
:PROPERTIES:
:EFFORT:   2d
:END:

** Task 1.1
:PROPERTIES:
:EFFORT:   3d
:END:

** Task 1.2
:PROPERTIES:
:EFFORT:   4d
:END:
- End Quote --

I would have expected the estimated total (rightmost column) for "Task
1" (first body row) in both dblocks to be 9 days (instead of seven)?

What am I missing?


Many thanks in advance and cheers,

  --alexander



Re: [BUG] org-emphasis-regexp-components [9.6.15 (release_9.6.15 @ /snap/emacs/current/usr/share/emacs/29.4/lisp/org/)]

2024-08-07 Thread Ihor Radchenko
berchas  writes:

> Desired behaviour: emphasis markers that only work within a
> paragraph (sentences without a line break). In the following example,
> only the
> first expression should appear in bold: 
>
> *jk j*
>
> *jk
> j* 
>
>
> So I set the maximum new lines to zero in org-emphasis-regexp-
> components (instead of the default of 1):
>
> (setcar (last org-emphasis-regexp-components) 0)
> (org-set-emph-re 'org-emphasis-regexp-components org-emphasis-regexp-
> components)
>
> This works. 
> However, now the first expressions does not appear in bold
> either. Only single words without any spaces like *jk* still appear in
> bold. Sentences do not appear in bold anymore.

Confirmed.  To be re-considered after new font-lock code.

> ... Do I misinterpret the
> meaning of max newlines in org-emphasis-regexp-components? 

`org-emphasis-regexp-components' is not a user customization.
I do not recommend using it.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: Summation of effort estimates in columnview dblock

2024-08-07 Thread Ihor Radchenko
Alexander Adolf via "General discussions about Org-mode."
 writes:

> I'm using Org 9.7.9, and I'm seeing behaviour of the (undocumented?)
> "%Effort" vs. "%Effort{:}" in the column view dblock, which confuses me.

The manual says:

SUMMARY-TYPE
 The summary type.  If specified, the column values for parent nodes
 are computed from the children(1).

In other words, Org mode computes the value of the property for your
Task 1, from Task 1.1, and Task 1.2.  Whatever is inside Task 1 does not
matter.  In fact, it might be overwritten in some cases.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: PATCH: Add tip to integrate spellchecking with #+LANGUAGE:

2024-08-07 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez  writes:

> put his on hold FTMB, please. I don't yet understand why I get 'en'
> regardless the language I state in org 9.7.x

Because Org mode never changes that custom option by itself. It is user
who sets it. Variable watches make no sense there.

Canceled.

> However, "evaluating" #+LANGUAGE: at startup may be a nice feature for the
> future, in the sense of reducing the amount of lines to setup Emacs for a
> specific document.

Overwriting the user customization is not a good practice, even though
we historically do such things in some cases.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



[BUG] Bug: Invalid search bound (wrong side of point) [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)]

2024-08-07 Thread Dotan Cohen
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.




Emacs  : GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.41, cairo version 1.18.0)
 of 2024-04-01, modified by Debian
Package: Org mode version 9.6.15 (release_9.6.15 @
/usr/share/emacs/29.3/lisp/org/)

current state:
==
(setq
 org-link-elisp-confirm-function 'yes-or-no-p
 org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-insert-heading-hook '(#[128 "\302\301\303\300 \"\"\207" [(1)
evil-insert apply append] 6
"\n\n(fn &rest ARGS2)"]
  )
 org-persist-after-read-hook '(org-element--cache-persist-after-read)
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-show-empty-lines
 org-cycle-optimize-window-after-visibility-change
org-cycle-display-inline-images)
 org-persist-before-read-hook '(org-element--cache-persist-before-read)
 org-image-actual-width nil
 org-mode-hook '(org-tempo-setup
#[0 "\300\301\302\303\304$\207"
  [add-hook change-major-mode-hook org-fold-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]
org-babel-result-hide-spec org-babel-hide-all-hashes
(lambda nil (org-sticky-header-mode) (setq org-sticky-header-full-path
'full)
 (defalias 'heading-date
  #'(lambda nil (interactive) (insert "\n* ")
 (insert (format-time-string "<%Y-%m-%d %a>")) (insert "\n\n"))
  )
 (global-set-key (kbd "") 'heading-date)
 (defalias 'ff-link-org
  #'(lambda nil (interactive)
 (insert
  (shell-command-to-string
"lz4jsoncat $FIREFOX_DIR/sessionstore-backups/recovery.jsonlz4 | jq -r
'.windows[0].tabs | sort_by(.lastAccessed)[-1] | .entries[.index-1] |
\"[[\" + (.url) + \"][\" + (.title) + \"]]\"' | tr -d '\n'")
  )
 )
  )
 (global-set-key (kbd "C-c f") 'ff-link-org) (require 'org-tempo)
 (local-set-key (kbd "C-c C-c") 'org-table-align)
 (local-set-key (kbd "C-c C-f") 'org-table-calc-current-TBLFM)
(org-indent-mode t)
 (setq bidi-paragraph-direction nil) (visual-line-mode 1)
 (add-hook 'org-insert-heading-hook (apply-partially #'evil-insert 1))
 (custom-set-faces '(org-level-3 ((t (:foreground "#88DD55"
  '(org-block ((t (:background "#00")
 (defalias 'org-tab-toggle-column
  #'(lambda nil "Handle collapsing inside a table, otherwise do the default
thing."
 (interactive) (cond ((org-table-p) (org-ctrl-c-tab)) (t (org-cycle
  )
 (local-set-key (kbd "TAB") 'org-tab-toggle-column)
 (defalias 'my-adjoin-to-list-or-symbol
  #'(lambda (element list-or-symbol)
 (let
  ((list (if (not (listp list-or-symbol)) (list list-or-symbol)
list-or-symbol)))
  (require 'cl-lib) (if (memql element list) list (cons element list)))
 )
  )
 (mapc
  #'(lambda (face)
 (set-face-attribute face nil :inherit
  (my-adjoin-to-list-or-symbol 'fixed-pitch (face-attribute face
:inherit)))
 )
  (list 'org-code 'org-block 'org-table 'org-date 'org-link 'org-footnote))
 )
)
 org-babel-load-languages '((shell . t) (python . t))
 org-confirm-shell-link-function 'yes-or-no-p
 outline-isearch-open-invisible-function 'outline-isearch-open-invisible
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-src-preserve-indentation t
 org-babel-tangle-lang-exts '(("python" . "py") ("emacs-lisp" . "el")
("elisp" . "el"))
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-speed-command-hook '(org-speed-command-activate
org-babel-speed-command-activate)
 org-fold-core-isearch-open-function 'org-fold-core--isearch-reveal
 org-persist-before-write-hook '(org-element--cache-persist-before-write)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-link-shell-confirm-function 'yes-or-no-p
 org-babel-pre-tangle-hook '(save-buffer)
 org-agenda-loop-over-headlines-in-active-region nil
 org-occur-hook '(org-first-headline-recenter)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-sticky-header-full-path 'full
 org-link-parameters '(("attachment" :follow org-attach-follow :complete
org-attach-complete-link)
  ("id" :follow org-id-open)
  ("eww" :follow org-eww-open :store org-eww-store-link)
  ("rmail" :follow org-rmail-open :store org-rmail-store-link)
  ("mhe" :follow org-mhe-open :store org-mhe-store-link)
  ("irc" :follow org-irc-visit :store org-irc-store-link :export
org-irc-export)
  ("info" :follow org-info-open :export org-info-export :

How to correctly display the new symbol of `org-babel-sh-prompt`?

2024-08-07 Thread Christopher M. Miles

The `org-babel-sh-prompt' changed from "org_babel_sh_prompt> " -> "𒆸 ".
TODO: Use `describe-char' to get the symbol's code. Then set font for this 
symbol.
I searched there is a way to set font for a range of characters like bellowing.

(set-fontset-font t '(#x2ff0 . #x9ffc) (font-spec :family "LXGW" :size 18 
:weight 'bold))

I'm currently using font "FiraCode Nerd Font".
(set-face-attribute 'default nil :family "FiraCode Nerd Font" :weight 'medium)

-- 

[ stardiviner ]
I try to make every word tell the meaning that I want to express without 
misunderstanding.

Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3


signature.asc
Description: PGP signature