emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* can't install footnotes in certain table cells
@ 2021-05-20  7:14 Uwe Brauer
  2021-05-20  9:57 ` [can't insert footnotes in all table cells] (was: can't install footnotes in certain table cells) Uwe Brauer
  0 siblings, 1 reply; 11+ messages in thread
From: Uwe Brauer @ 2021-05-20  7:14 UTC (permalink / raw)
  To: emacs-orgmode



Hi 

In the following table:

It is possible to insert a footnote in a regular way, right now I cannot.


What shell I do? What is the recipe to insert footnotes in all cells.


Thanks 

Uwe Brauer 

| this | that |     |   |     | F |   |   |
|------+------+-----+---+-----+---+---+---|
|      |    2 | *2* | 1 | [ ] |   |   |   |
|------+------+-----+---+-----+---+---+---|




^ permalink raw reply	[flat|nested] 11+ messages in thread

* [can't insert footnotes in all table cells] (was: can't install footnotes in certain table cells)
  2021-05-20  7:14 can't install footnotes in certain table cells Uwe Brauer
@ 2021-05-20  9:57 ` Uwe Brauer
  2021-05-20 10:06   ` [org-footnote--allow-reference-p] (was: [can't insert footnotes in all table cells]) Uwe Brauer
  0 siblings, 1 reply; 11+ messages in thread
From: Uwe Brauer @ 2021-05-20  9:57 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 209 bytes --]

>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:

> Hi 

> In the following table:

The subject is wrong, I am still googling but don't understand why I
cannot insert footnotes in all cells in a table.

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [org-footnote--allow-reference-p] (was: [can't insert footnotes in all table cells])
  2021-05-20  9:57 ` [can't insert footnotes in all table cells] (was: can't install footnotes in certain table cells) Uwe Brauer
@ 2021-05-20 10:06   ` Uwe Brauer
  2021-05-20 10:17     ` [org-footnote--allow-reference-p] Juan Manuel Macías
  2021-05-20 13:49     ` [org-footnote--allow-reference-p] Nicolas Goaziou
  0 siblings, 2 replies; 11+ messages in thread
From: Uwe Brauer @ 2021-05-20 10:06 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 412 bytes --]

>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:

>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:
>> Hi 

>> In the following table:

> The subject is wrong, I am still googling but don't understand why I
> cannot insert footnotes in all cells in a table.

It seems that the function org-footnote--allow-reference-p 
is the culprit, but which places are *forbidden* the doc string does not
say much.

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [org-footnote--allow-reference-p]
  2021-05-20 10:06   ` [org-footnote--allow-reference-p] (was: [can't insert footnotes in all table cells]) Uwe Brauer
@ 2021-05-20 10:17     ` Juan Manuel Macías
  2021-05-20 10:21       ` [org-footnote--allow-reference-p] Uwe Brauer
  2021-05-20 13:49     ` [org-footnote--allow-reference-p] Nicolas Goaziou
  1 sibling, 1 reply; 11+ messages in thread
From: Juan Manuel Macías @ 2021-05-20 10:17 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: orgmode

Hi Uwe,

Uwe Brauer writes:

> It seems that the function org-footnote--allow-reference-p 
> is the culprit, but which places are *forbidden* the doc string does not
> say much.

If you mean to insert a note in an empty cell, you can insert just
before the note mark a zero width space (M-x insert-char RET 200b RET)

Best regards,

Juan Manuel 


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [org-footnote--allow-reference-p]
  2021-05-20 10:17     ` [org-footnote--allow-reference-p] Juan Manuel Macías
@ 2021-05-20 10:21       ` Uwe Brauer
  2021-05-20 10:38         ` [org-footnote--allow-reference-p] Juan Manuel Macías
  0 siblings, 1 reply; 11+ messages in thread
From: Uwe Brauer @ 2021-05-20 10:21 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 534 bytes --]

>>> "JMM" == Juan Manuel Macías <maciaschain@posteo.net> writes:

> Hi Uwe,
> Uwe Brauer writes:

>> It seems that the function org-footnote--allow-reference-p 
>> is the culprit, but which places are *forbidden* the doc string does not
>> say much.

> If you mean to insert a note in an empty cell, you can insert just
> before the note mark a zero width space (M-x insert-char RET 200b RET)

Ah! That was it, thanks!
I think the documentation of org-footnote-action
could be a bit more explicit and cover this case.

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [org-footnote--allow-reference-p]
  2021-05-20 10:21       ` [org-footnote--allow-reference-p] Uwe Brauer
@ 2021-05-20 10:38         ` Juan Manuel Macías
  0 siblings, 0 replies; 11+ messages in thread
From: Juan Manuel Macías @ 2021-05-20 10:38 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: orgmode

Uwe Brauer writes:

> Ah! That was it, thanks!
> I think the documentation of org-footnote-action
> could be a bit more explicit and cover this case.

In the manual the use of the zero width space character is in the section
'Escape Character'. Perhaps it would be nice to add more usage examples. A
very typical (and practical) use is when you want to emphasize a part of a
word:

with /meta/<zero-with-space>literature you get (LaTeX)
\emph{meta}literature instead of the literal /meta/literature...

Best regards,

Juan Manuel 




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [org-footnote--allow-reference-p]
  2021-05-20 10:06   ` [org-footnote--allow-reference-p] (was: [can't insert footnotes in all table cells]) Uwe Brauer
  2021-05-20 10:17     ` [org-footnote--allow-reference-p] Juan Manuel Macías
@ 2021-05-20 13:49     ` Nicolas Goaziou
  2021-05-22  8:59       ` [org-footnote--allow-reference-p] Uwe Brauer
  2021-05-22  9:02       ` [the latest master] (was: [org-footnote--allow-reference-p]) Uwe Brauer
  1 sibling, 2 replies; 11+ messages in thread
From: Nicolas Goaziou @ 2021-05-20 13:49 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Uwe Brauer <oub@mat.ucm.es> writes:

>> The subject is wrong, I am still googling but don't understand why I
>> cannot insert footnotes in all cells in a table.

There was a bug with _empty_ cells.

> It seems that the function org-footnote--allow-reference-p 
> is the culprit

Fixed. Thank you.

> but which places are *forbidden* the doc string does not say much.

`org-footnote--allow-reference-p' is very permissive. Footnote are
allowed anywhere it makes sense, I think. The function is also well
documented, you may want to look at the source if you have doubts.

Regards,
-- 
Nicolas Goaziou


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [org-footnote--allow-reference-p]
  2021-05-20 13:49     ` [org-footnote--allow-reference-p] Nicolas Goaziou
@ 2021-05-22  8:59       ` Uwe Brauer
  2021-05-22 11:19         ` [org-footnote--allow-reference-p] Nicolas Goaziou
  2021-05-22  9:02       ` [the latest master] (was: [org-footnote--allow-reference-p]) Uwe Brauer
  1 sibling, 1 reply; 11+ messages in thread
From: Uwe Brauer @ 2021-05-22  8:59 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 887 bytes --]

>>> "NG" == Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
> Uwe Brauer <oub@mat.ucm.es> writes:

>>> The subject is wrong, I am still googling but don't understand why I
>>> cannot insert footnotes in all cells in a table.

> There was a bug with _empty_ cells.

>> It seems that the function org-footnote--allow-reference-p 
>> is the culprit

> Fixed. Thank you.


In master?  
>> but which places are *forbidden* the doc string does not say much.

> `org-footnote--allow-reference-p' is very permissive. Footnote are
> allowed anywhere it makes sense, I think. The function is also well
> documented, you may want to look at the source if you have doubts.

The docstring just reads 

  "Non-nil when a footnote reference can be inserted at point."


That I wouldn't call well documented, but I presume you are referring to
something else.


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [the latest master] (was: [org-footnote--allow-reference-p])
  2021-05-20 13:49     ` [org-footnote--allow-reference-p] Nicolas Goaziou
  2021-05-22  8:59       ` [org-footnote--allow-reference-p] Uwe Brauer
@ 2021-05-22  9:02       ` Uwe Brauer
  2021-05-22  9:09         ` [the latest master] Uwe Brauer
  1 sibling, 1 reply; 11+ messages in thread
From: Uwe Brauer @ 2021-05-22  9:02 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

>>> "NG" == Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
> Uwe Brauer <oub@mat.ucm.es> writes:

>>> The subject is wrong, I am still googling but don't understand why I
>>> cannot insert footnotes in all cells in a table.

> There was a bug with _empty_ cells.

>> It seems that the function org-footnote--allow-reference-p 
>> is the culprit

> Fixed. Thank you.


Hm I pull from 

git remote -v
origin  https://code.orgmode.org/bzg/org-mode.git (fetch)
origin  https://code.orgmode.org/bzg/org-mode.git (push)

So that is the old repository, no, because the latest commit is from 19
April, where do I find the real repository 

https://orgmode.org/worg/dev/index.html

Still points out the one I use 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [the latest master]
  2021-05-22  9:02       ` [the latest master] (was: [org-footnote--allow-reference-p]) Uwe Brauer
@ 2021-05-22  9:09         ` Uwe Brauer
  0 siblings, 0 replies; 11+ messages in thread
From: Uwe Brauer @ 2021-05-22  9:09 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 879 bytes --]

>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:

>>> "NG" == Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>> Hello,
>> Uwe Brauer <oub@mat.ucm.es> writes:

>>> The subject is wrong, I am still googling but don't understand why I
>>> cannot insert footnotes in all cells in a table.

>> There was a bug with _empty_ cells.

>>> It seems that the function org-footnote--allow-reference-p 
>>> is the culprit

>> Fixed. Thank you.


> Hm I pull from 

> git remote -v
> origin  https://code.orgmode.org/bzg/org-mode.git (fetch)
> origin  https://code.orgmode.org/bzg/org-mode.git (push)

Sorry, git just did not pull [1]
I had to run 
git stash


Footnotes:
[1]  (I most likely will never gasp git, a pity that the team did not
     chose  not mercurial). I am thinking to clone the git repo again
     with using hg and the hg-git repository.


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [org-footnote--allow-reference-p]
  2021-05-22  8:59       ` [org-footnote--allow-reference-p] Uwe Brauer
@ 2021-05-22 11:19         ` Nicolas Goaziou
  0 siblings, 0 replies; 11+ messages in thread
From: Nicolas Goaziou @ 2021-05-22 11:19 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Uwe Brauer <oub@mat.ucm.es> writes:

>>>> "NG" == Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> In master?

No, in both maint and master.

>> `org-footnote--allow-reference-p' is very permissive. Footnote are
>> allowed anywhere it makes sense, I think. The function is also well
>> documented, you may want to look at the source if you have doubts.
>
> The docstring just reads 
>
>   "Non-nil when a footnote reference can be inserted at point."
>
> That I wouldn't call well documented, but I presume you are referring to
> something else.

I think the docstring is sufficient for an internal function. I was
referring to the code, which contains comments about all the gory
details.

Regards,
-- 
Nicolas Goaziou


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-05-22 11:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-20  7:14 can't install footnotes in certain table cells Uwe Brauer
2021-05-20  9:57 ` [can't insert footnotes in all table cells] (was: can't install footnotes in certain table cells) Uwe Brauer
2021-05-20 10:06   ` [org-footnote--allow-reference-p] (was: [can't insert footnotes in all table cells]) Uwe Brauer
2021-05-20 10:17     ` [org-footnote--allow-reference-p] Juan Manuel Macías
2021-05-20 10:21       ` [org-footnote--allow-reference-p] Uwe Brauer
2021-05-20 10:38         ` [org-footnote--allow-reference-p] Juan Manuel Macías
2021-05-20 13:49     ` [org-footnote--allow-reference-p] Nicolas Goaziou
2021-05-22  8:59       ` [org-footnote--allow-reference-p] Uwe Brauer
2021-05-22 11:19         ` [org-footnote--allow-reference-p] Nicolas Goaziou
2021-05-22  9:02       ` [the latest master] (was: [org-footnote--allow-reference-p]) Uwe Brauer
2021-05-22  9:09         ` [the latest master] Uwe Brauer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).