[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Thien-Thi Nguyen
Subject: scan-info-node-length.el
Date: Thu, 24 May 2018 18:13:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Greetings earthlings,

Recently i was curious about the line count of each node in an
info file (, in this case).  Please find attached a
small function that measures this.  Here's a *scratch* excerpt:

 (scan-info-node-length "~/build/GNU/e26/info/")
 ((6513 "Index")
  (1442 "Top")
  (715 "GPL")
  (657 "Sequence Functions")
  (481 "GNU Free Documentation License")
  (372 "pcase Macro")
  (363 "Special Properties")
  (329 "Frame Layout")
  (304 "Garbage Collection")
  (303 "Low-Level Font")
  (301 "Changing Files")
  (15 "XPM Images")
  (15 "C Dialect")
  (14 "Type Descriptors")
  (14 "Terminal Type")
  (14 "Frame Configuration Type")
  (14 "Autoloading")
  (14 "Terminal Input")
  (13 "Window Configuration Type")
  (12 "Error Messages")
  (12 "Record Type")
  (12 "Keymap Type")
  (12 "Font Type"))

It's designed to be run in *scratch* (another way of saying i
was too lazy to make it pretty-print the return value as a table
in a new buffer).  Feedback welcome!

Attachment: scan-info-node-length.el
Description: application/emacs-lisp

Thien-Thi Nguyen -----------------------------------------------
 (defun responsep (query)
   (pcase (context query)
     (`(technical ,ml) (correctp ml))
     ...))                              748E A0E8 1CB8 A748 9BFA
--------------------------------------- 6CE4 6703 2224 4C80 7502

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]