Re: how to select interactively the time in org-time-stamp

2021-04-08 Thread Kyle Meyer
Uwe Brauer writes:

> ,
> | (org-time-stamp ARG  INACTIVE)
> | 
> | Prompt for a date/time and insert a time stamp.
> | 
> | If the user specifies a time like HH:MM or if this command is
> | called with at least one prefix argument, the time stamp contains
> | the date and the time.  Otherwise, only the date is included.
> `
>
> So I run 
> C-u C-c .
>
> And org proposes me the date and time of that moment, I can change the
> date, since the calendar pops up, but how I can change *interactively*
> time time?

I don't think there's another way to specify the time aside from writing
out a time in some form described by

(info "(org)The date/time prompt")

As far as I know, C-u is just useful when you want to use the current
time (and perhaps another date).



Re: On the protection of emails in the archives

2021-04-08 Thread Daniele Nicolodi
On 08/04/2021 10:29, Guillaume MULLER wrote:
> Hi all,
> 
> I recently sent an email on this mailing list (see 
> https://orgmode.org/list/b1e778c5-acbf-8a17-c9bf-dcb6693e9...@univ-st-etienne.fr/
>  )
> 
> Since then, I'm receiving spams on the email address I used to send the 
> message.
> 
> After some research, it seems that this email address only appears on 2 
> websites, notably this orgmode.org mailing list archive.

A Google search demonstrates otherwise.

> Would it be possible to configure the archive to obfuscate / hide the email 
> addresses inorder to protect its users?

In this time and age, it is not an useful anti-spam measure. It is much
more likely that your email address is harvested from the address book
or the received emails of someone that has their email account
compromised because of a weak password (or, in this case, from any other
website that publishes it).

Cheers,
Dan




Re: Does wip-cite work with master or 9.4.5 release?

2021-04-08 Thread Nicolas Goaziou
Hello,

Ramesh Nedunchezian  writes:

> Does wip-cite doesn't work with master or 9.4.5?  Am I doing something
> wrong?

Although most of it is still relevant, wip-cite branch is to be
considered as slightly outdated at the moment.

I have a local wip-cite-new that I did not take time to polish and push
yet.

Regards,
-- 
Nicolas Goaziou



Does wip-cite work with master or 9.4.5 release?

2021-04-08 Thread Ramesh Nedunchezian

I tried checking out wip-cite like so.  

git reset --hard release_9.4.5
git merge wip-cite
git diff > conflict.diff


I am seeing merge conflicts.  See attached diff. 

Does wip-cite doesn't work with master or 9.4.5?  Am I doing something
wrong?


diff --cc lisp/org-element.el
index 0f0e01e8a,2f1f972de..0
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@@ -329,11 -295,14 +339,21 @@@ match group 2
  Don't modify it, set `org-element-affiliated-keywords' instead.")
  
  (defconst org-element-object-restrictions
++<<< HEAD
 +  (let* ((minimal-set '(bold code entity italic latex-fragment strike-through
 +			 subscript superscript underline verbatim))
 +	 (standard-set (remq 'table-cell org-element-all-objects))
 +	 (standard-set-no-line-break (remq 'line-break standard-set)))
++===
+   (let* ((standard-set
+ 	  (remq 'citation-reference (remq 'table-cell org-element-all-objects)))
+ 	 (standard-set-no-line-break (remq 'line-break standard-set))
+ 	 (minimal-set '(bold code entity italic latex-fragment strike-through
+ 			 subscript superscript underline verbatim)))
++>>> origin/wip-cite
  `((bold ,@standard-set)
+   (citation citation-reference)
+   (citation-reference ,@(cons 'line-break minimal-set))
(footnote-reference ,@standard-set)
(headline ,@standard-set-no-line-break)
(inlinetask ,@standard-set-no-line-break)
@@@ -4516,21 -4610,21 +4700,39 @@@ to an appropriate container (e.g., a pa
  			 (and (memq 'latex-fragment restriction)
    (org-element-latex-fragment-parser)
  		  (?\[
++<<< HEAD
 +		   (pcase (aref result 1)
 +			 ((and ?\[
 +			   (guard (memq 'link restriction)))
 +			  (org-element-link-parser))
 +			 ((and ?f
 +			   (guard (memq 'footnote-reference restriction)))
 +			  (org-element-footnote-reference-parser))
 +			 ((and (or ?% ?/)
 +			   (guard (memq 'statistics-cookie restriction)))
 +			  (org-element-statistics-cookie-parser))
 +			 (_
 +			  (or (and (memq 'timestamp restriction)
 +   (org-element-timestamp-parser))
 +			  (and (memq 'statistics-cookie restriction)
 +   (org-element-statistics-cookie-parser))
++===
+ 		   (cl-case (aref result 1)
+ 			 (?\[ (and (memq 'link restriction)
+    (org-element-link-parser)))
+ 			 ((?@ ?c ?\() (and (memq 'citation restriction)
+ 	   (org-element-citation-parser)))
+ 			 (?f (and (memq 'footnote-reference restriction)
+   (org-element-footnote-reference-parser)))
+ 			 ((?% ?/) (and (memq 'statistics-cookie restriction)
+    (org-element-statistics-cookie-parser)))
+ 			 (t (or (and (memq 'footnote-reference restriction)
+  (org-element-footnote-reference-parser))
+ (and (memq 'timestamp restriction)
+  (org-element-timestamp-parser))
+ (and (memq 'statistics-cookie restriction)
+  (org-element-statistics-cookie-parser))
++>>> origin/wip-cite
  		  ;; This is probably a plain link.
  		  (_ (and (memq 'link restriction)
  			  (org-element-link-parser)))


Re: Bug: Error while exporting o TexInfo. Html export works fine. [9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)]

2021-04-08 Thread Ramesh Nedunchezian



On 07/04/21 11:29 pm, Nicolas Goaziou wrote:
> Hello,
> 
> Ramesh Nedunchezian  writes:
> 
>> If you are using `compilation-minor-mode'--yes, the minor mode and not
>> the major mode--you can have goodness of /both/ tabulated list mode
>> and compilation mode.
>>
>> Here is an attempt.
> 
> At this point, I may suggest to write a proper patch so Org users can
> test it.
> 
> WDYT?

Thanks for the feedback.  I would be most happy if you could borrow
ideas from my patch.  (The changes are really small.)

Additional notes:

1. I didn't have information on how the trust levels map to the error
   levels. I also had some difficulty getting the error, info, warning
   highlighter to work.

2. My patch assumes that the org buffer is associated with a file.
   This may not be true.




Re: Bug: Display Inline Images from Subdirectory [9.4.4 (9.4.4-33-g5450d6-elpaplus @ /home/ded/.emacs.d/elpa/org-plus-contrib-20210322/)]

2021-04-08 Thread Daniel E. Doherty



On Tue, Apr 06 2021, Nick Dokos wrote:



FWIW, this works fine for me: Org mode version 9.4.4
(release_9.4.4-231-gf46925 @ /home/nick/elisp/org-mode/lisp/)

The only things I had to do was 1) to make the above into a tree by
adding a headline (otherwise, I guess org-mark-subtree would complain:
Not in a subtree) and 2) create the dot subdirectory.


Nick,

Thanks for trying this out.  I tried this again using emacs -Q with both
emacs27 and emacs28, and I still get the same result, i.e., it produces
the link but does not display it inline.  Both versions supported
display of SVG graphics files.

,[ Org and Emacs Versions ]
| Org version: Org mode version 9.4.4 (9.4.4-33-g5450d6-elpaplus @ 
 /home/ded/.emacs.d/elpa/org-plus-contrib-20210322/)

|
| GNU Emacs 28.0.50 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, 
 cairo version 1.16.0) of 2021-04-02

|
| and
|
| GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, 
 cairo version 1.16.0) of 2020-09-19

`

I did the following:

1. Start emacs with the -Q flag
2. Load the file inline.el (shown below)
3. Create a directory 'dots' in the current directory
4. Open the file inline.org (shown below)
5. Run C-c C-c on the dot src block in inline.org and confirm execution
  of the block
6. Org creates the SVG file, but does not display it.
7. If I remove the ':dir dots' header argument, the image /does/ display
  inline.

,[ inline.el ]
| (org-babel-do-load-languages
|  'org-babel-load-languages
|  '(
|(dot . t)
|(emacs-lisp . t)
|(ruby . t)))
|
|
| (setq org-startup-with-inline-images t)
| (require 'subr-x)
| (defun ded:org-babel-inline-display-subtree ()
|   "Redisplay inline images in subtree if cursor in source block with 
   :result graphics."

|
|   (when (org-in-src-block-p)
| (let (beg end)
|   (save-mark-and-excursion
| (org-mark-subtree)
| (setq beg (point))
| (setq end (mark)))
|   (when-let ((info (org-babel-get-src-block-info t))
|  (params (org-babel-process-params (nth 2 info)))
|  (result-params (cdr (assq :result-params params)))
|  ((member "graphics" result-params)))
| (org-display-inline-images nil nil beg end)
|
| (add-hook 'org-babel-after-execute-hook 
 #'ded:org-babel-inline-display-subtree)

`

,[ inline.org ]
| * Supreme Court
| ** Blau v. Lehman, 368 U.S. 403 (1962).
| #+begin_SRC dot :file lehman.svg :cmdline -Kdot -Tsvg :results 
  graphics

|   digraph lehman {
| Thomas [shape=circle];
| TideWater [shape = box, label="Tide Water\nSecurities\n(Issuer)"];
| Lehman [shape = box];
| Thomas -> TideWater [label="Director"];
| Lehman -> TideWater [label="Shareholder"];
| Thomas -> Lehman [label="Partner"];
|   }
| #+end_SRC
`

If others could try this out, I would appreciate it.

--

Daniel E. Doherty
d...@ddoherty.net



Re: On the protection of emails in the archives

2021-04-08 Thread Russell Adams
Guillaume

On Thu, Apr 08, 2021 at 10:29:00AM +0200, Guillaume MULLER wrote:
> Hi all,
>
> I recently sent an email on this mailing list (see 
> https://orgmode.org/list/b1e778c5-acbf-8a17-c9bf-dcb6693e9...@univ-st-etienne.fr/
>  )

Yes you did, and the official archive is here where the list is hosted.

https://lists.gnu.org/archive/html/emacs-orgmode/2021-04/msg00184.html

> Since then, I'm receiving spams on the email address I used to send the 
> message.

Welcome to the tragedy of the commons known as the Internet.

> Would it be possible to configure the archive to obfuscate / hide the email 
> addresses inorder to protect its users?

We do. The GNU mailing list archive that hosts the mailing list does.

I can't say regarding the other. Maybe someone else can check it.




--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3



how to select interactively the time in org-time-stamp

2021-04-08 Thread Uwe Brauer


Hi 

The documentation states, and I quote 


,
| (org-time-stamp ARG  INACTIVE)
| 
| Prompt for a date/time and insert a time stamp.
| 
| If the user specifies a time like HH:MM or if this command is
| called with at least one prefix argument, the time stamp contains
| the date and the time.  Otherwise, only the date is included.
`

So I run 
C-u C-c .

And org proposes me the date and time of that moment, I can change the
date, since the calendar pops up, but how I can change *interactively*
time time?

Thanks

Uwe Brauer 




On the protection of emails in the archives

2021-04-08 Thread Guillaume MULLER
Hi all,

I recently sent an email on this mailing list (see 
https://orgmode.org/list/b1e778c5-acbf-8a17-c9bf-dcb6693e9...@univ-st-etienne.fr/
 )

Since then, I'm receiving spams on the email address I used to send the message.

After some research, it seems that this email address only appears on 2 
websites, notably this orgmode.org mailing list archive.

Would it be possible to configure the archive to obfuscate / hide the email 
addresses inorder to protect its users?

According to what I understand, this list uses the "GNU mailman" software, 
which in turn uses "Pipermail" for the archive. From what I read in the docs 
(https://www.gnu.org/software/mailman/mailman-member/node40.html ), the default 
configuration should be that the email addresses are protected : "The HTML 
archives which are created by Pipermail (the archiving program which comes 
default with Mailman) contain only obscured addresses.". So is there a 
particular reason why this option has been disabled?

Thanks for your feedback

GM



OpenPGP_signature
Description: OpenPGP digital signature