🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99704

Texinfo does not handle @date (Patch supplied)

#99704
From: Kayvan Sylvan
Date: Wed, 23 May 1990 20:23
45 lines
2100 bytes
In GNU Emacs 18.55.5 of Mon Apr  2 1990 on mrspoc (xenix)

@date is not handled by texinfo.

I sometimes use a cover page on texinfo documents that includes an
@date construct (which is handled by the TeX side, but not the info
side) so I have to hard-code the date in the @ifinfo section.

As I keep working on the file, the @date in the @iftex section prints
the current date and the hardcoded date in the @ifinfo section remains
unchanged.

It would be great if I could use the @date construct in the @ifinfo
section. The following patch fixes this:

*** texinfmt.el~	Wed May 23 13:17:09 1990
--- texinfmt.el	Wed May 23 13:17:09 1990
***************
*** 816,819
    (insert "..."))
  
  (put 'refill 'texinfo-format 'texinfo-format-refill)
  (defun texinfo-format-refill ()

--- 816,828 -----
    (insert "..."))
  
+ (put 'date 'texinfo-format 'texinfo-format-date)
+ (defun texinfo-format-date ()
+   (texinfo-discard-command)
+   (let ((str (current-time-string)) date-str)
+     (setq date-str
+ 	  (concat (substring str 8 11) (substring str 4 8)
+ 		  (substring str 20 24)))
+     (insert date-str)))
+ 
  (put 'refill 'texinfo-format 'texinfo-format-refill)
  (defun texinfo-format-refill ()

			---Kayvan

| Kayvan Sylvan @ Transact Software, Inc. -*-  Los Altos, CA (415) 961-6112 |
| "This is your government. This is your government on the constitution.    |
|  Any questions?"                                                          |
Technical Details
Message-ID: <m0hY2F9-0000LpC@mrspoc.transact.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!mrspoc.transact.com!kayvan

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,b0e2fc6a6194f0,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-05-23 14:27:11 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!mrspoc.transact.com!kayvan
From: kayvan@mrspoc.transact.com (Kayvan Sylvan)
Newsgroups: gnu.emacs.bug
Subject: Texinfo does not handle @date (Patch supplied)
Message-ID: <m0hY2F9-0000LpC@mrspoc.transact.com>
Date: 23 May 90 20:23:00 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 45
Posted: Wed May 23 21:23:00 1990