Question Regarding Easier Issues To Help With

2022-05-22 Thread Samuel Banya
Hey there,
So I took a look at the following link recently as I finally have had time 
again over the past couple of months since I've been dealing with a lot of 
personal family stuff, and got some time back again.

Can anyone lead me in the right direction for some beginner tier issues to take 
a look at, as well as hand holding for any workflow on how to actually work on 
the related issue / source code accordingly:
https://updates.orgmode.org/#help

I ask because I'm a bit of an Elisp newbie. I'm assuming the first step is to 
try to reproduce the bug given the user's info, and then attempt to look at the 
codebase to see what might be causing it?

Thanks,

Sam

Re: [PATCH] manual: fix keybinding for org-force-cycle-archived

2022-05-22 Thread Matt Lundin
I just noticed also that the name has been changed to
org-cycle-force-archived and that the key index reference was incorrect.
I've attached an additional patch to fix these in the manual.

Best,

Matt

>From 8412f476e98c3271fac88a170e26ad033501c3d6 Mon Sep 17 00:00:00 2001
From: Matt Lundin 
Date: Sun, 22 May 2022 15:13:09 -0500
Subject: [PATCH 2/2] manual: Fix function name and key index reference

* doc/org-manual.org: Change name to `org-cycle-force-archived` to
avoid obsolete name and fix key index reference.
---
 doc/org-manual.org | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index 686412d84..2f5f48120 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -7421,9 +7421,9 @@ The following commands help manage the =ARCHIVE= tag:
   child.  If point is /not/ on a headline when this command is
   invoked, check the level 1 trees.
 
-- {{{kbd(C-c C-TAB)}}} (~org-force-cycle-archived~) ::
+- {{{kbd(C-c C-TAB)}}} (~org-cycle-force-archived~) ::
 
-  #+kindex: C-TAB
+  #+kindex: C-c C-TAB
   Cycle a tree even if it is tagged with =ARCHIVE=.
 
 - {{{kbd(C-c C-x A)}}} (~org-archive-to-archive-sibling~) ::
-- 
2.36.1



[PATCH] manual: fix keybinding for org-force-cycle-archived

2022-05-22 Thread Matt Lundin


* doc/org-manual.org: Fix a keybinding in Internal archiving
---
 doc/org-manual.org | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index 7cba5f18d..686412d84 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -7373,7 +7373,7 @@ its location in the outline tree, but behaves in the 
following way:
   #+vindex: org-cycle-open-archived-trees
   It does not open when you attempt to do so with a visibility cycling
   command (see [[*Visibility Cycling]]).  You can force cycling archived
-  subtrees with {{{kbd(C-TAB)}}}, or by setting the option
+  subtrees with {{{kbd(C-c C-TAB)}}}, or by setting the option
   ~org-cycle-open-archived-trees~.  Also normal outline commands, like
   ~org-show-all~, open archived subtrees.
 
-- 



[PATCH] org-todo-yesterday: Fix interactive arg when in agenda buffer

2022-05-22 Thread Aaron L. Zeng
(I'm resubmitting this patch because my previous submission was in-reply-to
another email which I suspect was ignored.  Would love to get this relatively
simple bug fixed.  Thanks!)

* lisp/org.el (org-todo-yesterday): Fix an incorrect use of apply when
org-todo-yesterday intends to call org-agenda-todo-yesterday with the
same interactive arg.  Before this change, the command incorrectly set
the todo state of the task to blank when called with C-u C-u C-u in an
agenda buffer (supposed to bypass any blocked checkboxes/subtasks).

TINYCHANGE
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 6842bfe9b..b3b9c777b 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9666,7 +9666,7 @@ nil or a string to be used for the todo mark." )
   "Like `org-todo' but the time of change will be 23:59 of yesterday."
   (interactive "P")
   (if (eq major-mode 'org-agenda-mode)
-  (apply 'org-agenda-todo-yesterday arg)
+  (org-agenda-todo-yesterday arg)
 (let* ((org-use-effective-time t)
   (hour (nth 2 (decode-time (org-current-time
   (org-extend-today-until (1+ hour)))
--
2.33.3




Re: A test

2022-05-22 Thread Matt Lundin
I'm sorry for this spam. I was experimenting with org-msg mode. Hence
the nonsense prose in the email.

In particular, I was attempting to ensure that mail to mailing list
addresses would automatically switch to plain text instead of html
upon address completion. But I forgot to remove the Org Mode mailing
list address before sending.

My sincerest apologies!

Matt

Matt Lundin  writes:

> This is not cool. Really
>
> Matt Lundin  writes:
>
>> Dear so and so,
>>
>> Not again. What's with all this craziness?
>>
>> Now there.
>>
>> Goodbye.
>>
>> OK - now we are talking - we're going to make this into a good day.
>>
>> Donec vitae dolor.
>>
>>  Item   Amount 
>> ---
>>  Shoes  80 
>>  Socks  10 
>> ---
>> 90 


Re: A test

2022-05-22 Thread Matt Lundin
This is not cool. Really

Matt Lundin  writes:

> Dear so and so,
>
> Not again. What's with all this craziness?
>
> Now there.
>
> Goodbye.
>
> OK - now we are talking - we're going to make this into a good day.
>
> Donec vitae dolor.
>
>  Item   Amount 
> ---
>  Shoes  80 
>  Socks  10 
> ---
> 90 


Re: [PATCH] Avoid ignoring LaTeX export output errors when org-latex-pdf-process is a list

2022-05-22 Thread Daniel Fleischer
Ihor Radchenko [2022-05-22 Sun 11:51] wrote:

> The attached patch is fixing a rather annoying problem when
> org-latex-pdf-process is set to a list. Currently, only output of the
> last command in the list is preserved in *Org PDF LaTeX output* buffer,
> which sometimes prevents ox-latex from detecting compilation warnings.

> ox-latex relies on *Org PDF LaTeX output* to contain the output of latex
> compiler. However, unless the last command in the org-latex-pdf-process
> is something like pdflatex, the compiler errors are erased by
> `shell-command' called by `org-compile-file'.

Looks good. So the log buffer is going to be a concatenation of all the
logs. Will ox-latex parse the longer log in a meaningful way? Is it just
for the user to find issues by herself after a failed compilation?

Daniel Fleischer



Re: [BUG] org-table-blank-field missing keybinding [9.5.2 (N/A @ /gnu/store/zkm1kxbk6p56ag6rscsl4k8ckxksp1bz-emacs-org-9.5.2/share/emacs/site-lisp/org-9.5.2/)]

2022-05-22 Thread André A . Gomes
Ihor Radchenko  writes:

> André A. Gomes  writes:
>
>> org-table-auto-blank-field used to be bound to C-c SPC and the manual
>> still refers to it.  Was the keybinding removed by mistake?  Thanks.
>
> The manual has been fixed in Org 9.5.3. It will be included in Emacs
> 28.2. See https://orgmode.org/manual/Built_002din-Table-Editor.html
> Or you can update your Org mode manually and not wait for the Emacs
> release. See https://orgmode.org/manual/Installation.html#Installation

Great, thanks!


-- 
André A. Gomes
"You cannot even find the ruins..."



Re: org-cite styles don't allow * in them

2022-05-22 Thread Bruce D'Arcus
On Thu, Apr 21, 2022 at 4:06 AM Nicolas Goaziou  wrote:

> If there's no objection, I'll add asterisk character to the list of
> allowed characters in citation style.

It's been a month without objection. Could we please add this then?


Bruce



Eev-wconfig.el etc etc, or: "Exercise: Learn Org!"

2022-05-22 Thread Eduardo Ochs
Hi all,

I made a video that is mainly for people who are new to Emacs and who
are using M$ Windows, and it ends with an exercise that is roughly
this: "...now download a .zip file with Rainer Koenig's videos from
, unpack it somewhere,
and use eev to create an index of the video that you've watched, with
pointers to the parts that you will need to re-watch many times"...

The best way to watch the video is to download it and its subtitles by
doing this:

  wget http://angg.twu.net/eev-videos/2022-eev-wconfig.mp4
  wget http://angg.twu.net/eev-videos/2022-eev-wconfig.vtt

and then watch the local copy with a video player. The second best way
to watch it is to access its index, here,

  http://angg.twu.net/.emacs.videos.html#2022eevwconfig

and click on the timestamps of the parts that look interesting to play
the video on Youtube starting from that position.

The page about the video and all the ideas behind it is this one:

  http://angg.twu.net/eev-wconfig.html

All feedback welcome!
  Cheers,
Eduardo Ochs
http://angg.twu.net/#eev



Re: Help with my first elisp

2022-05-22 Thread Ypo

Thanks, Greg

 * Now I am able to run my script every time I am in logos-focus mode :D
 * But my keys don't get to be "normal" after I get out of logos-focus
   mode.

This is how my code is evolving (the "conditional part" is not working yet):

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

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

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

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

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

(defun salto ()
  (interactive)
  (if posicion 1
    (posicion2)
  (if posicion 2
  (posicion3)
    (if posicion 3
    (posicion1)

;; (define-key global-map (kbd "SPC") #'salto)
(local-set-key "j" 'posicion1)
(local-set-key "k" 'posicion2)
(local-set-key "l" 'posicion3)
))


El 22/05/2022 a las 15:27, Greg Minshall escribió:

Ypo,


Additional problem: I don't know how to recover keys 1, 2 and 3 to
their normal functioning, right now I can't type 1, 2 or 3 on my
Emacs. xD

you have, e.g.,


(define-key global-map (kbd "1") #'posicion1)
(define-key global-map (kbd "2") #'posicion2)
(define-key global-map (kbd "3") #'posicion3)

but, that is in the global map.  for a given mode, i sometimes do
something like that:


(add-hook 'mh-show-mode-hook #'(lambda ()
  (local-set-key "q" 'mh-show-execute-commands)))

or, closer to what you have, sometimes like


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

i am no elisp expert, and so those are just random things i've found
that work.  but, hopefully this may give you a hint of a direction to
follow.

cheers, Greg

Re: Help with my first elisp

2022-05-22 Thread Greg Minshall
Ypo,

> Additional problem: I don't know how to recover keys 1, 2 and 3 to
> their normal functioning, right now I can't type 1, 2 or 3 on my
> Emacs. xD

you have, e.g.,

> (define-key global-map (kbd "1") #'posicion1)
> (define-key global-map (kbd "2") #'posicion2)
> (define-key global-map (kbd "3") #'posicion3)

but, that is in the global map.  for a given mode, i sometimes do
something like that:

> (add-hook 'mh-show-mode-hook #'(lambda ()
>  (local-set-key "q" 'mh-show-execute-commands)))

or, closer to what you have, sometimes like

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

i am no elisp expert, and so those are just random things i've found
that work.  but, hopefully this may give you a hint of a direction to
follow.

cheers, Greg



Re: Trouble producing nicely aligned org tables from emacs-jupyter code blocks using latest org version

2022-05-22 Thread Richard Stanton
Odd. Invoking it as you do on my Mac, I get the same results I noted earlier. 

> On May 20, 2022, at 1:57 AM, Ihor Radchenko  wrote:
> 
> "Richard H. Stanton"  writes:
> 
>> Here’s a simple init.el that shows the problem (most of it is just 
>> boilerplate code to use straight.el to manage packages, and you may need to 
>> edit the python executable path).
>> ...
>> ——
>> 
>> Now execute the following source block and you’ll see the misaligned table.
>> 
>> #+begin_src jupyter-python :async yes :session py
>> [['aaa', 'a'], None, ['b', 'b']]
>> #+end_src
> 
> I am unable to reproduce the problem using Emacs 28.1 on Linux.
> I ran Emacs in a clean .emacs.d environment using
> https://github.com/alphapapa/with-emacs.sh:
> 
> $ with-emacs.sh -e emacs -OPR -- -Q -l /tmp/bug.el /tmp/bug.org
> 
> with bug.el containing your script with latest Org line uncommented and
> built-in Org line commented and bug.org containing the example source
> block.
> 
> Best,
> Ihor




Re: calculating quartils, tercils (or percentiles) Using R?

2022-05-22 Thread Uwe Brauer
Hello Jermie


> Hello Uwe,




> I would recommend checking the R documentation. 

Believe me, I tried (well I mostly googled, and I failed, I understand
now why, my column name was not consistent, with the call in src block grrr


> I believe that you might be looking for the following.

>  #+begin_src R :colnames t :var t1=TC 
>   quantile(t1$Data,c(1/3,2/3,1))
>  #+end_src

>  #+RESULTS:
>  |  x |
>  ||
>  | 14 |
>  | 25 |
>  | 35 |

Definitely! Works like charm! 

Thanks so much!

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


Help with my first elisp

2022-05-22 Thread Ypo

Hi


After thinking about learning elisp for years, today I've tried my first 
script. First I made some macros that worked as I intended, and then 
using this tutorial of Protesilaos I was able to transform those macros 
into elisp code.


https://protesilaos.com/codelog/2022-01-31-learning-emacs/
(thanks a lot)


My situation: I am using Protesilaos' package logos, and I would like to 
add to it something (a hook?): to mark the position where my eyesight 
must go. Example:


https://www.tiktok.com/@yporg/video/7100510074342280454?is_from_webapp=1_device=pc_id=7100507416085399046


My problems:

 * I don't know how to make my code work always and only when in
   logos-mode.
 * I get those jumps pressing 1, 2 and 3. I would like to use just 1
   key (for example SPACEBAR) not 3 keys to run the function.


My code:


(defun posicion1 ()
  (interactive)
  (next-line 1)
  (beginning-of-visual-line)
  (forward-char 6)
)


(defun posicion2 ()
  (interactive)
  (forward-char 23)
)


(defun posicion3 ()
  (interactive)
  (end-of-visual-line) ;;C-e
  (backward-char 7)
)

(define-key global-map (kbd "1") #'posicion1)
(define-key global-map (kbd "2") #'posicion2)
(define-key global-map (kbd "3") #'posicion3)


Additional problem: I don't know how to recover keys 1, 2 and 3 to their 
normal functioning, right now I can't type 1, 2 or 3 on my Emacs. xD



I think it could be interesting to use just SPC, instead of 1, 2 and 3. 
Maybe it could be done using conditionals, like in this not-working example:


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


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


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


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




(defun salto ()
  (interactive)
  (if posicion 1
    (posicion2))
  (if posicion 2
    (posicion3))
  (if posicion 3
    (posicion1))
)

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



Any help, advice, warning, or menace are welcome.

Best regards :-)


Re: calculating quartils, tercils (or percentiles) Using R?

2022-05-22 Thread Jeremie Juste


Hello Uwe,

> On Sunday, 22 May 2022 at 08:40, Uwe Brauer wrote:

> but I can't not find a way to calculate other percentiles, like terciles or 
> so.
> Does anybody know about this, or a org-function doing it?


I would recommend checking the R documentation. 
 #+begin_src R :colnames t :var t1=TC :results output
  ?quantile
 #+end_src

 #+tblname: TC
 | Data |
 |--|
 |5 |
 |   10 |
 |   12 |
 |   15 |
 |   20 |
 |   24 |
 |   27 |
 |   30 |
 |   35 |

Consider also the R mailing list r-h...@r-project.org. The community is
quite active. 

I believe that you might be looking for the following.

 #+begin_src R :colnames t :var t1=TC 
  quantile(t1$Data,c(1/3,2/3,1))
 #+end_src

 #+RESULTS:
 |  x |
 ||
 | 14 |
 | 25 |
 | 35 |


HTH,

Jeremie 



Re: [BUG] org-complex-heading-regexp should consider COMMENT keywords [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-05-22 Thread Bastien Guerry
Hi Ihor and Ignacio,

sorry for the late answer.

Ihor Radchenko  writes:

> Bastien, could you kindly check if Ignacio Casso
>  has FSF assignment and update contributors
> page accordingly?

I confirm Ignacio has FSF assignment (since 2022-03-28) and I updated
the Org contributors page.

Best,

-- 
 Bastien



Re: [BUG] org-open-file immediately termininates when calling xdg-open that calls emacsclient

2022-05-22 Thread Max Nikulin

On 22/05/2022 11:37, Ihor Radchenko wrote:


I have a problem with the following commits:

869b7a21b org-open-file: Avoid make-process for Emacs 24 compatibility
5db61eb0f org.el: Avoid xdg-open silent failure

They both set process-connection-type to nil/'pipe. Somehow, this change
breaks org-open-file for me when org-open-file calls xdg-open and xdg is
confugured to open the file with emacsclient. I only see a flicker and
the file does not open. Sometimes, Emacs even crashes.


I can not reproduce a problem, however I tried to factor-out xdg-open. 
Emacs-27.1, a minimal LXC container, so "&" to simulate kde-open5 
starting process in background. On the other hand I consider behavior 
when emacsclient is called from emacs as confusing due to requirement of 
C-x # to notify emacs about completion.


 >8 
#+begin_src elisp
  (push '("\\.txt\\'" . "emacsclient %s &") org-file-apps)
#+end_src

[[file:some.txt]]
 8< 

Nothing happens if emacs server is not started, but error handling was 
sacrificed for compatibility with old emacs versions.


Do you see the same problem for a function from mailcap.el in the 
development emacs version?


Eli Zaretskii suspected some compatibility issue, but he successfully 
resisted my attempts to pull some details from him. I know how to create 
a MIME handler that will cause 100% CPU consumption by Emacs for pipe 
processes, but he does not consider it as a real problem.



If I change the process type back to default tty value, things work
again as expected.


You might try `call-process' with 0 as DESTINATION (attention! not nil!).

See #+begin_comment snippet from the following patch (this part was not 
committed since Robert convinced me that it is confusing):
Max Nikulin to emacs-orgmode. [PATCH v3] Fix FAQ entry about mailto 
links. Mon, 14 Feb 2022 20:22:14 +0700. 
https://list.orgmode.org/9437ade2-af18-f97e-8790-a2df27c90...@gmail.com


I do not know a way to reliably launch external MIME handler from Emacs. 
All means I am aware of have some caveats.





[BUG] org-copy-subtree in a file with local variables marks buffer as modified [9.5.3 (release_9.5.3-6-gef41f3 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-05-22 Thread Ignacio Casso
Hello,

Copying a subtree with `org-copy-subtree' in an org file with local
variables marks the buffer as modified. This is because
`org-copy-subtree' calls `org-preserve-local-variables', which deletes
local variables, executes some body, and then inserts them again, which
results in a modified buffer even if the buffer was not modified before
and the body does not modify it either, like in the case of
`org-copy-subtree'.

What would you think about a change like the following in the definition of
`org-preserve-local-variables' to solve the issue?

+ (let ((modified-before-p) (buffer-modified-p))
;; current code that deletes local variables
+   (unless modified-before-p (set-buffer-modified-p nil))
;; current code that executes body
+   (let ((modified-after-p (buffer-modified-p)))
  ;; current code that restores local variables
+ (unless modified-after-p (set-buffer-modified-p nil

Could the current code or my proposed change have any more unintended
consequences, for example in the undo tree or mark ring? Sometimes when
I undo or jump to the mark, the point moves to the last visible, usually
folded headline of the file, even if I had not edited it recently, and I
have always assumed that it's because it wants to go to the end of the
buffer for some reason I've never been able to come up with or
debug. Could that have something to do with this?

Best regards,

Ignacio

Emacs  : GNU Emacs 29.0.50 (build 53, x86_64-pc-linux-gnu, GTK+ Version 
3.24.20, cairo version 1.16.0)
 of 2022-05-22
Package: Org mode version 9.5.3 (release_9.5.3-6-gef41f3 @ 
/home/ignacio/repos/emacs/lisp/org/)



Re: [PATCH] Re: Bug in 9.5.3 org--file-default-apps

2022-05-22 Thread Max Nikulin

On 22/05/2022 11:10, Ihor Radchenko wrote:

Max Nikulin writes:


The source of the problem is that Emacs-27 was released with the
following bug:

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40247
mailcap-mime-data erased when parsing mime parts

So `mailcap-parse-mailcaps' called from `mailcap-mime-info' erases
predefined associations in Emacs-27.


If I understand correctly, this extra complication does not affect most
of the systems. I am not sure if we need to work around it.


I would say that view-mode is quite reasonable default to open a 
"text/plain" file and this bug broke it. I do not think that Craig 
really wants a new emacs session for every followed link:


application/x-shellscript; emacs27 %s; test=test -n "$DISPLAY"


Also, I am attaching a patch to address the original issue. We can just
use file command when available. WDYT?


Ihor, have you manged to reproduce the original issue? Are links with 
explicit .txt suffix [[file:file.txt]] affected by the same problem? My 
environments sometimes behave in a way unexpected to you and I have not 
setup any tool to quickly launch transient virtual machines with no fear 
to "broke" current state, so I have not tried to debug the reported 
issue in its original form.


I may be excessively suspicious.


diff --git a/lisp/org.el b/lisp/org.el
index d7da8efc4..3102fe611 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -7975,7 +7975,12 @@ (defun org-open-file (path  in-emacs line 
search)
 (when (eq cmd 'mailcap)
   (require 'mailcap)
   (mailcap-parse-mailcaps)
-  (let* ((mime-type (mailcap-extension-to-mime (or ext "")))
+  (let* ((mime-type (if (executable-find "file")
+(shell-command-to-string
+ (format "%s --brief --mime-type %s"
+ (executable-find "file")
+ file))


I hate elisp API related to executing of external processes because it 
encourages proliferation of unsafe code. What if the linked file name 
has some peculiarities and characters interpreted by shell?


   See [[file:/tmp/`touch /tmp/hacked`/test][here]]

I can not say that I fully understand `org-open-file' code, so I am 
unsure if remote file name can appear here, e.g. /ssh:user@host:testfie 
or a file form an archive due to a relative link [[file:testfile]] from 
a remote .org file. When remote files are not an issue, it is safer to 
use functions that takes command arguments as a list of string, not the 
command as a ready to execute string. Unfortunately there is no helper 
returning a string and accepting a command as a list.



+  (mailcap-extension-to-mime (or ext ""
 (command (mailcap-mime-info mime-type)))
(if (stringp command)
(setq cmd command)


P.S. `org-open-file' already has some problems with handling of some 
file names:


Maxim Nikulin to emacs-orgmode. greedy substitution in org-open-file. 
Wed, 20 Jan 2021 23:08:35 +0700. 
https://list.orgmode.org/ru9ki4$t5e$1...@ciao.gmane.io





Re: [BUG] org-table-blank-field missing keybinding [9.5.2 (N/A @ /gnu/store/zkm1kxbk6p56ag6rscsl4k8ckxksp1bz-emacs-org-9.5.2/share/emacs/site-lisp/org-9.5.2/)]

2022-05-22 Thread Ihor Radchenko
André A. Gomes  writes:

> org-table-auto-blank-field used to be bound to C-c SPC and the manual
> still refers to it.  Was the keybinding removed by mistake?  Thanks.

The manual has been fixed in Org 9.5.3. It will be included in Emacs
28.2. See https://orgmode.org/manual/Built_002din-Table-Editor.html
Or you can update your Org mode manually and not wait for the Emacs
release. See https://orgmode.org/manual/Installation.html#Installation

Best,
Ihor



[SOLVED, but ] (was: how to update remote calls?)

2022-05-22 Thread Uwe Brauer
>>> "UB" == Uwe Brauer  writes:

> Hi

> I have the following example

It seems that either 

1. org-table-recalculate-buffer-tables

2. org-table-iterate-buffer-tables

Does the job, the docstring of both function does clarify the
difference between both.

Can anybody please enlighten me?

Regards

Uwe Brauer 


smime.p7s
Description: S/MIME cryptographic signature


calculating quartils, tercils (or percentiles) Using R?

2022-05-22 Thread Uwe Brauer


Hi

I can use R to calculate quartils 
as in 
#+begin_src 

#+tblname: TC
| Data |
|--|
|5 |
|   10 |
|   12 |
|   15 |
|   20 |
|   24 |
|   27 |
|   30 |
|   35 |




#+begin_src R :colnames t :var t1=TC 
 summary(t1)
#+end_src

#+RESULTS:
| Data  |
|---|
| Min.   : 5.00 |
| 1st Qu.:12.00 |
| Median :20.00 |
| Mean   :19.78 |
| 3rd Qu.:27.00 |
| Max.   :35.00 |
#+end_src

but I can't not find a way to calculate other percentiles, like terciles or so.

Does anybody know about this, or a org-function doing it?

regards

Uwe Brauer


-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




how to update remote calls?

2022-05-22 Thread Uwe Brauer


Hi

I have the following example

#+begin_src 

,** Statistic
   :PROPERTIES:
   :ID:   test-master
   :END:


| Result|
|---|
|   7.5 |
|   4.3 |
|   7.5 |
|   5.5 |
|   8.5 |
|   7.5 |
|   8.2 |
| 9 |
|   8.5 |
| 7 |
|   7.5 |
|   8.5 |
| 7 |
| 6 |
| 7 |
|---|


| lower bound | upper bound | frequency |
|-+-+---|
|   0 | 4.9 | 1 |
|   5 |  10 |14 |
,#+TBLFM: $3='(length (org-lookup-all '($1 $2) 
'(remote(test-master,@I$1..@II$1)) nil 'in-interval));N



| Mean | Desviation | Median |
|--++|
|  7.3 |1.2 | 7.5|
,#+TBLFM: 
$1=vmean(remote(test-master,@I$1..@II$1));f-1::$2=vpsdev(remote(test-master,@I$1..@II$1));f-1::$3=vmedian(remote(test-master,@I$1..@II$1));f-1


#+end_src

Now I if I update the test-master table, is there anyway that the remote calls 
get updated as well?

Thanks and regards

Uwe Brauer 





-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.