unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Troubles with footnote-mode
@ 2006-04-20 20:18 Tassilo Horn
  2006-04-22 19:16 ` leandro noferini
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Tassilo Horn @ 2006-04-20 20:18 UTC (permalink / raw)


Hi,

I often use footnote-mode when writing postings. The only configurations
I made are these:

,----[ from ~/.emacs ]
| (add-hook 'message-mode-hook 'footnote-mode)
| (setq footnote-spaced-footnotes nil)
`----

The problem with that is, that all footnotes after the first one appear
below the signature.

So here's a test (see footnotes below): [1], this one is ok. [2], below
sig. [3], below sig. After the second footnote, jumping back to the text
(C-c ! b, `Footnote-back-to-message') doesn't work, too.

If `footnote-spaced-footnotes' is t, all footnotes are correctly
set. Without signature, everything works as intended, too.

The footnote section marker and the signature separator regexp have
their default values and should be allright.

,----[ C-h v footnote-section-tag RET ]
| footnote-section-tag is a variable defined in `footnote.el'.
| Its value is "Footnotes: "
| 
| Documentation:
| *Tag inserted at beginning of footnote section.
`----

,----[ C-h v footnote-signature-separator RET ]
| footnote-signature-separator is a variable defined in `footnote.el'.
| Its value is "^-- *$"
| 
| Documentation:
| *String used to recognize .signatures.
`----

Any help?

Bye,
Tassilo

Footnotes: 
[1]  foo
-- 
A morning without coffee is like something without something else.
[2]  bar
[3]  baz

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

* Re: Troubles with footnote-mode
  2006-04-20 20:18 Troubles with footnote-mode Tassilo Horn
@ 2006-04-22 19:16 ` leandro noferini
  2006-04-23 16:18 ` Leon
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: leandro noferini @ 2006-04-22 19:16 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 513 bytes --]

Tassilo Horn <heimdall@uni-koblenz.de> writes:

> I often use footnote-mode when writing postings. The only configurations

[...]

> Any help?

I  can  add   only  that  I  found  the  same   problem  with  the  same
configuration. 

-- 
Ciao
leandro
Un esteso e "normale" uso della crittografia è il sistema più forte
per rivendicare il diritto alla privacy nelle comunicazioni
telematiche: come tutti i diritti e come i muscoli se non viene
esercitato costantemente si atrofizza e va perso.

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: Troubles with footnote-mode
  2006-04-20 20:18 Troubles with footnote-mode Tassilo Horn
  2006-04-22 19:16 ` leandro noferini
@ 2006-04-23 16:18 ` Leon
       [not found] ` <mailman.809.1145809208.9609.help-gnu-emacs@gnu.org>
  2006-04-23 19:06 ` Michaël Cadilhac
  3 siblings, 0 replies; 8+ messages in thread
From: Leon @ 2006-04-23 16:18 UTC (permalink / raw)


Tassilo Horn <heimdall@uni-koblenz.de> writes:

> Hi,
>
> I often use footnote-mode when writing postings. The only configurations
> I made are these:
>
> ,----[ from ~/.emacs ]
> | (add-hook 'message-mode-hook 'footnote-mode)
> | (setq footnote-spaced-footnotes nil)
> `----
>
> The problem with that is, that all footnotes after the first one appear
> below the signature.
>
> So here's a test (see footnotes below): [1], this one is ok. [2], below
> sig. [3], below sig. After the second footnote, jumping back to the text
> (C-c ! b, `Footnote-back-to-message') doesn't work, too.
>
> If `footnote-spaced-footnotes' is t, all footnotes are correctly
> set. Without signature, everything works as intended, too.
>
> The footnote section marker and the signature separator regexp have
> their default values and should be allright.
>
> ,----[ C-h v footnote-section-tag RET ]
> | footnote-section-tag is a variable defined in `footnote.el'.
> | Its value is "Footnotes: "
> | 
> | Documentation:
> | *Tag inserted at beginning of footnote section.
> `----
>
> ,----[ C-h v footnote-signature-separator RET ]
> | footnote-signature-separator is a variable defined in `footnote.el'.
> | Its value is "^-- *$"
> | 
> | Documentation:
> | *String used to recognize .signatures.
> `----
>
> Any help?
>
> Bye,
> Tassilo
>
> Footnotes: 
> [1]  foo

Seems like a bug. Could you post it to gnus newsgroup? I'm also
interested to know a fix.

-- 
Leon

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

* Re: Troubles with footnote-mode
       [not found] ` <mailman.809.1145809208.9609.help-gnu-emacs@gnu.org>
@ 2006-04-23 17:46   ` Tassilo Horn
  0 siblings, 0 replies; 8+ messages in thread
From: Tassilo Horn @ 2006-04-23 17:46 UTC (permalink / raw)


Leon <sdl.web@gmail.com> writes:

Hi Leon,

> Seems like a bug. Could you post it to gnus newsgroup? 

Why gnus newsgroup? footnote.el is part of GNU Emacs.

Bye,
Tassilo
-- 
The problem with the French is that they dont have a word for
"entrepreneur".                              - George W. Bush

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

* Re: Troubles with footnote-mode
  2006-04-20 20:18 Troubles with footnote-mode Tassilo Horn
                   ` (2 preceding siblings ...)
       [not found] ` <mailman.809.1145809208.9609.help-gnu-emacs@gnu.org>
@ 2006-04-23 19:06 ` Michaël Cadilhac
  2006-04-23 19:46   ` Tassilo Horn
  3 siblings, 1 reply; 8+ messages in thread
From: Michaël Cadilhac @ 2006-04-23 19:06 UTC (permalink / raw)



[-- Attachment #1.1.1: Type: text/plain, Size: 622 bytes --]

Tassilo Horn <heimdall@uni-koblenz.de> writes:

> Hi,
>
> I often use footnote-mode when writing postings. The only configurations
> I made are these:
>
> ,----[ from ~/.emacs ]
> | (add-hook 'message-mode-hook 'footnote-mode)
> | (setq footnote-spaced-footnotes nil)
> `----
>
> The problem with that is, that all footnotes after the first one appear
> below the signature.
>
> So here's a test (see footnotes below): [1], this one is ok. [2], below
> sig. [3], below sig. After the second footnote, jumping back to the text
> (C-c ! b, `Footnote-back-to-message') doesn't work, too.

  Does the following fix your bug?


[-- Attachment #1.1.2: footnote.patch --]
[-- Type: text/x-patch, Size: 1560 bytes --]

Index: lisp/ChangeLog
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/ChangeLog,v
retrieving revision 1.9434
diff -b -c -w -r1.9434 ChangeLog
*** lisp/ChangeLog	22 Apr 2006 23:39:47 -0000	1.9434
--- lisp/ChangeLog	23 Apr 2006 19:04:13 -0000
***************
*** 1,3 ****
--- 1,8 ----
+ 2006-04-23  Michaël Cadilhac  <michael.cadilhac@lrde.org> (tiny change)
+ 
+ 	* mail/footnote.el (Footnote-insert-footnote): Fix the search of the
+ 	last footnote when `footnote-spaced-footnotes' is nil.
+ 
  2006-04-23  Romain Francoise  <romain@orebokech.com>
  
  	* comint.el (comint-match-partial-filename): Doc fix.
Index: lisp/mail/footnote.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/mail/footnote.el,v
retrieving revision 1.12
diff -b -c -w -r1.12 footnote.el
*** lisp/mail/footnote.el	6 Feb 2006 12:31:40 -0000	1.12
--- lisp/mail/footnote.el	23 Apr 2006 19:04:13 -0000
***************
*** 501,507 ****
  				 (regexp-quote footnote-end-tag)))
  		       nil t)
  		  (unless (beginning-of-line) t))
! 		(goto-char (point-max)))))
      (unless (looking-at "^$")
        (insert "\n"))
      (when (eobp)
--- 501,508 ----
  				 (regexp-quote footnote-end-tag)))
  		       nil t)
  		  (unless (beginning-of-line) t))
! 		(Footnote-goto-char-point-max)
! 		(re-search-backward (concat "^" footnote-section-tag-regexp) nil t))))
      (unless (looking-at "^$")
        (insert "\n"))
      (when (eobp)

[-- Attachment #1.1.3: Type: text/plain, Size: 323 bytes --]


-- 
 |      Michaël `Micha' Cadilhac   |   Would someone please DTRT with this  |
 |         Epita/LRDE Promo 2007   |         then ACK?                      |
 | http://www.lrde.org/~cadilh_m   |           -- Richard Stallman          |
 `--  -   JID: micha@amessage.be --'                                   -  --'

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

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

* Re: Troubles with footnote-mode
  2006-04-23 19:06 ` Michaël Cadilhac
@ 2006-04-23 19:46   ` Tassilo Horn
  2006-04-23 22:10     ` Adrian Aichner
       [not found]     ` <mailman.824.1145832606.9609.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Tassilo Horn @ 2006-04-23 19:46 UTC (permalink / raw)
  Cc: help-gnu-emacs

michael.cadilhac@lrde.org (Michaël Cadilhac) writes:

Hi Michaël,

>   Does the following fix your bug?

Let's test. [1] is ok. [2] ok, too. [3], all ok.

Yes, now it works as expected. Thanks for your help.

BTW: Is there a way to apply patches attached to postings from within
Gnus/Emacs?

Regards,
Tassilo

Footnotes: 
[1] foo
[2] bar
[3] baz[4]
[4] ...
-- 
The problem with the French is that they dont have a word for
"entrepreneur".                              - George W. Bush

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

* Re: Troubles with footnote-mode
  2006-04-23 19:46   ` Tassilo Horn
@ 2006-04-23 22:10     ` Adrian Aichner
       [not found]     ` <mailman.824.1145832606.9609.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Adrian Aichner @ 2006-04-23 22:10 UTC (permalink / raw)
  Cc: help-gnu-emacs

Tassilo Horn <heimdall@uni-koblenz.de> writes:

> michael.cadilhac@lrde.org (Michaël Cadilhac) writes:
>
> Hi Michaël,
>
>>   Does the following fix your bug?
>
> Let's test. [1] is ok. [2] ok, too. [3], all ok.
>
> Yes, now it works as expected. Thanks for your help.
>
> BTW: Is there a way to apply patches attached to postings from within
> Gnus/Emacs?

Hi Tassilo,

in XEmacs it's under
Tools->Apply Patch->To a file...
Tools->Apply Patch->To a buffer...

The functions in question are:

ediff-patch-file
and
ediff-patch-buffer

-- 
Adrian Aichner
 mailto:adrian@xemacs.org
 http://www.xemacs.org/

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

* Re: Troubles with footnote-mode
       [not found]     ` <mailman.824.1145832606.9609.help-gnu-emacs@gnu.org>
@ 2006-04-24  7:02       ` Tassilo Horn
  0 siblings, 0 replies; 8+ messages in thread
From: Tassilo Horn @ 2006-04-24  7:02 UTC (permalink / raw)


Adrian Aichner <adrian@xemacs.org> writes:

Hi Adrian,

>> BTW: Is there a way to apply patches attached to postings from within
>> Gnus/Emacs?
>
> The functions in question are:
>
> ediff-patch-file
> and
> ediff-patch-buffer

Great, works the same in GNU Emacs.

Bye,
Tassilo
-- 
A morning without coffee is like something without something else.

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

end of thread, other threads:[~2006-04-24  7:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-20 20:18 Troubles with footnote-mode Tassilo Horn
2006-04-22 19:16 ` leandro noferini
2006-04-23 16:18 ` Leon
     [not found] ` <mailman.809.1145809208.9609.help-gnu-emacs@gnu.org>
2006-04-23 17:46   ` Tassilo Horn
2006-04-23 19:06 ` Michaël Cadilhac
2006-04-23 19:46   ` Tassilo Horn
2006-04-23 22:10     ` Adrian Aichner
     [not found]     ` <mailman.824.1145832606.9609.help-gnu-emacs@gnu.org>
2006-04-24  7:02       ` Tassilo Horn

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).