[BUG] org-appear error after uninstalled [9.8-pre (release_N/A-N/A-c426f4)

2024-07-15 Thread Kepa
Hi,

I have uninstalled org-appear several days ago, and I am constantly receiving 
this error:

Error in post-command-hook (org-appear--post-cmd): (wrong-type-argument 
number-or-marker-p nil)

I tried listing the hooks:
M-x describe-variable RET post-command-hook RET

But nothing related to org-appear appears there.

So, I ran these commands, getting a warning that advised me to inform the 
mailing list:
(require 'org-appear)
(add-hook 'post-command-hook 'org-appear--post-cmd)

Warning:
⛔ Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org 
buffer # (lisp-interaction-mode)
⛔ Warning (org-element): org-element--cache: Org parser error in 
*scratch*::305. Resetting.
 The error was: (error "rx ‘**’ range error")
 Backtrace:
nil
 Please report this to Org mode mailing list (M-x org-submit-bug-report).

Emacs : GNU Emacs 29.3 (build 2, x86_64-w64-mingw32)
of 2024-03-24

Package: Org mode version 9.8-pre (release_N/A-N/A-c426f4 @ 
./.emacs.d/elpa/org-9.8pre0.20240603.143202/)

Best regards,


Doubt about writing before PROPERTIES

2024-06-06 Thread Kepa
Hi

I would like to know if this "syntax" is ok or if I shouldn't write anything in 
the first line after a headline:

EXAMPLE 1:

** PROY CLIENT
DEADLINE: <2024-07-03 mi.> (26 weeks excluding week 52, ready)
:PROPERTIES:
:DIR:  c:/CLIENT
:END:
ETC
*** ETC


EXAMPLE 2:

** PROY CLIENT
DEADLINE: <2024-07-03 mi.>
(26 weeks excluding week 52, ready)
:PROPERTIES:
:DIR:  c:/CLIENT
:END:
ETC
*** ETC

Best regards


Possible bug: Adding a new item to a list "a)"

2024-06-01 Thread Kepa
I have a weird behavior when trying to add a new item to an ordered list.
Version: Org mode version 9.7-pre (release_N/A-N/A-a3c1a8502 @ 
c:/.../elpa/org-9.7pre0.20240524.175607/)

Instructions for the example:
Point: placed after "[...]" instead of "(point)".
Send: M-ENTER
Result: First line "a)..." is indented. 

Example:

* Error orgmode
a) /Estímulo único/. Consiste en
1) _entrenar varios grupos de sujetos para que un estímulo adquiera cierto 
control (convirtiéndolo en un E+ o en un E-)_
2) _y después exponer a cada grupo a un estímulo de prueba diferente, en 
cuanto a su parecido con el estímulo original._
[...] (point) cuanto mayor es el parecido de éste con el estímulo original 
mayor es la fuerza (probabilidad, tasa, intensidad, etc.) de la respuesta.

Behaviour:
* Error orgmode
a) /Estímulo único/. Consiste en
1) _entrenar varios grupos de sujetos para que un estímulo adquiera cierto 
control (convirtiéndolo en un E+ o en un E-)_
2) _y después exponer a cada grupo a un estímulo de prueba diferente, en 
cuanto a su parecido con el estímulo original._
[...]
b) c1) to mayor es el parecido de éste con el estímulo original mayor es la 
fuerza (probabilidad, tasa, intensidad, etc.) de la respuesta.

Expected behavior:

* Error orgmode
a) /Estímulo único/. Consiste en
1) _entrenar varios grupos de sujetos para que un estímulo adquiera cierto 
control (convirtiéndolo en un E+ o en un E-)_
2) _y después exponer a cada grupo a un estímulo de prueba diferente, en 
cuanto a su parecido con el estímulo original._
[...] 
b) cuanto mayor es el parecido de éste con el estímulo original mayor es la 
fuerza (probabilidad, tasa, intensidad, etc.) de la respuesta.

Behavior for my customized emacs; 
in emacs -q, after "a) ..." sending M-ENTER adds a new headline, instead of a 
new list item.


Best regards




Error message after upgrading to devel version: const:tag

2024-05-25 Thread Kepa
Hi

After updating org-mode to org-9.7pre0.20240524.175607

I get this warning message:
■  Warning (emacs): Value 't' does not match type (choice (const :tag nofold: 
show all nofold) (const :tag fold: overview fold) (const :tag fold: show two 
levels show2levels) (const :tag fold: show three levels show3levels) (const 
:tag fold: show four levels show4evels) (const :tag fold: show five levels 
show5levels) (const :tag content: all headlines content) (const :tag show 
everything, even drawers showeverything))

Best regards



Possible bug in sparse trees Todo keywords

2024-05-20 Thread Kepa
Sparse tree doesn't seem to work if the Todo states finishes with a dot. For 
example "PROJ."

Best regards


Re: I can't make a custom face to take effect

2024-03-30 Thread Kepa

You're right, I moved it near the top of my init file, and it works


Solved!

Thanks

On 30/03/2024 12:43, yantar92 at posteo.net wrote:

Kepa  writes:


I have added a custom face, but it doesn't work unless I do "M-x
org-mode-restart".

The custom face:

(defun yant/apply-custom-faces ()
    (add-to-list 'org-font-lock-extra-keywords
'("(\\([^)]*?[A-Z]+[^)]+?[0-9]\\{3,4\\}[^)]*\\))" . (0 'shadow prepend))
'append))

(add-hook 'org-font-lock-set-keywords-hook #'yant/apply-custom-faces)

I have tried saving the desktop manually, but it doesn't take effect, I
have to reload org-mode each session.

I suspect that the part of your config defining the hook is loaded too
late. Try to reproduce the problem starting from emacs -Q, as described
inhttps://orgmode.org/manual/Feedback.html#Feedback


[FR] Add customization for default answers to `org-attach-set/unset-directory' prompt (was: Org-attach risks)

2024-03-30 Thread Kepa

Hi Ihor



In addition to the sequence of prompts when changing the attachment
directory:

1. Copy over attachments from old attachment directory to new one?
2. Delete old attachment directory?

we can introduce a custom variable `org-attach-move-attachments' with
the following values:

1. 'ask (default) - display the prompts
2. 'move - move the attachments form old to new directory (same as yes,
yes answer)
3. 'copy - copy the attachments, keeping the old directory (yes, no answer)
4. 'keep or nil - keep the attachments in the old directory (no, no answer)

It would solve it. Thanks.


I can't make a custom face to take effect

2024-03-30 Thread Kepa

Hi

I have added a custom face, but it doesn't work unless I do "M-x 
org-mode-restart".


The custom face:

(defun yant/apply-custom-faces ()
  (add-to-list 'org-font-lock-extra-keywords 
'("(\\([^)]*?[A-Z]+[^)]+?[0-9]\\{3,4\\}[^)]*\\))" . (0 'shadow prepend)) 
'append))


(add-hook 'org-font-lock-set-keywords-hook #'yant/apply-custom-faces)

I have tried saving the desktop manually, but it doesn't take effect, I 
have to reload org-mode each session.


This is my desktop-save config:

 '(desktop-auto-save-timeout nil)
 '(desktop-base-file-name "emacs-desktop")
 '(desktop-file-name-format 'tilde)
 '(desktop-lazy-idle-delay 0)
 '(desktop-load-locked-desktop t)
 '(desktop-missing-file-warning nil)
 '(desktop-path '("~/.emacs.d/"))
 '(desktop-restore-eager t)
 '(desktop-restore-forces-onscreen 'all)
 '(desktop-save nil)

(setq desktop-restore-frames t)
(setq desktop-restore-in-current-display t)
(desktop-read)



Re: Org-attach risks

2024-03-17 Thread Kepa

Kepa  writes:

>/Each time I change the DIR property for attachments, I have to answer /
>/correctly two questions: if I want to move every file to the new 
path, and if /

>/I want to delete the old folder./
>
>/Is it possible to not receive these questions?/
>/For me, it's a big risk I don't want to take every time./

May you elaborate on what other behavior you would prefer to see?

--
Ihor Radchenko // yantar92,

Hi Ihor.

It would be enough to have the option to not having those prompt.

If I could set it to don't offer to copy files, and the option to don't 
offer to delete old folder, it would be enough.


Best regards,

Kepa




Org-attach risks

2024-03-14 Thread Kepa
Hi

Each time I change the DIR property for attachments, I have to answer correctly 
two questions: if I want to move every file to the new path, and if I want to 
delete the old folder.

Is it possible to not receive these questions?
For me, it's a big risk I don't want to take every time.

Best regards


Re: Help: How to change faces of words between parenthesis

2024-02-24 Thread Kepa

Thanks, William

I'm not writing citation. I am studying a text, and it has citations. To 
delete them all, generates friction, while to let them all be, generates 
distraction. So with the help of Ihor (and chatgpt) I have added this 
code to my init file, so they are shadowed:


(defun yant/apply-custom-faces ()
  (add-to-list 'org-font-lock-extra-keywords 
'("(\\([A-Z][a-zA-Z]*[^)]*[0-9]\\{4\\}[^)]*\\))" . (0 'shadow prepend)) 
'append))

(add-hook 'org-font-lock-set-keywords-hook #'yant/apply-custom-faces)


About citations: A time ago I learned to use org-ref, but my PC is not 
very powerful, so Emacs turned to be too slow. Then I stopped working 
with citations.


By now I am adding bibtex properties to my headlines, so in the future I 
can use org-bibtex and probably I will learn about citation with your 
tutorials: https://www.miskatonic.org/2024/01/08/org-citations-basic/


Best regards


On 14/02/2024 0:33, William Denton wrote:

On Sunday, February 11th, 2024 at 08:57, Ypo  wrote:


Could it be possible to change the color of words between parentheses?

For example, in:

"mejorar su bienestar psicológico (Cronin et al., 2012; Molero, Fuster, Jetten y 
Moriano, 2011; Outten, Schmitt, García y Branscombe, 2009; Pérez-Garín et al., 
2016)."

For citations in brackets, another approach might be to use Org's citation 
system with the CSL export processor, and then use András Simonyi's 
org-cite-csl-activate and customize the face:

https://github.com/andras-simonyi/org-cite-csl-activate

That might involve changing your whole citation process, which is a big step, 
but citations are on my mind so I thought I'd mention it.

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada





Best regards

Re: Help with my first elisp

2022-05-24 Thread Kepa Diez



maybe use something like

>/> (define-key mh-letter-mode-map/
>/> (kbd "C-c s")/
>/> 'ggm-mh-sentaddrs-completion)/

but, using whatever the name of the logos-focus mode map, pointing at
your functions?


Hi Greg

I think "logos" doesn't have a map, is it possible?



On Mon, May 23, 2022 at 09:46:09AM -0700, Greg Minshall wrote:
>/Ypo,/
>//
>/> (defun salto ()/
>/> (interactive)/
>/> (if posicion 1/

You are comparing the value of posicion to 1?

Then it should probably be "(if (= posicion 1) ...)" or
"(if (equal posicion 1) ...)" or something like that.

Cheers
--
t
Thanks, Tomas. It seems the "if" part works, now I use my elisp just 
with the spacebar :-)


(add-hook 'logos-focus-mode-hook #'(lambda ()

(defvar posicion
  "Position where is the cursor.")

  (defun focusPointStart ()
  (interactive)
  (next-line 1)
  (beginning-of-visual-line)
  (forward-char 6)
  (setq posicion 1)
)

(defun focusPointInter ()
  (interactive)
  (forward-char 23)
  (setq posicion 2)
)


(defun focusPointEnd ()
  (interactive)
  (end-of-visual-line) ;;C-e
  (backward-char 7)
  (setq posicion 3)
)

(defun focusJump ()
  (interactive)
  (if (equal posicion 1)
    (focusPointInter)
  (if (equal posicion 2)
  (focusPointEnd)
    (if  (equal posicion 3)
    (focusPointStart)

(define-key global-map (kbd "SPC") #'focusJump)
))