Intervention Begins. Soviet Russia Becomes a
)
(setq lb-err0 "Distance between pairs")
(setq lb-err1 "IS A LOT"))
;; Checks. DONE.
(when lb-err0
(if (file-exists-p lbg-text-indextx)
(rename-file lbg-text-indextx "~/foo" t))
;; Called within temp-buffer by lb-tx-make-or-refresh-indextx.
;; (lb-tx-delete-indexes)
(error "%s: %s"
(concat lb-err0 " (see ~/foo)")
(concat lb-err1
(_-buffer-substring-from-))))
;; Must always return a pair upon SECOND INVOCATION.
(setq _rc (cons lb-pt0-there lb-pt1-there)))
) ;; 2ND
;; THIRD INVOCATION.
(when (and arg1-t-or-cons
;; (not
(listp arg1-t-or-cons))
(save-excursion
;; Good to go. Probably.
(setq lb-str (buffer-substring-no-properties (car arg1-t-or-cons)
(cdr arg1-t-or-cons)))
;; 2 of 2 ... sorta.
;; #################################
;; ##{{## - THIS ONE - ARG1 === nil
(setq lb-pt0-here
(car (lb-pmm-transform-shadow-copies-looking-at
nil "{{" lb-re-beg-shadow t)))
;; \\(123\\)?
(setq lb-acceptable-minimum
(lb-pmm-transform-shadow-copies-go-lower-than-global-minimum
lb-re-end-shadow t))
;; ##}}## - THIS ONE
(setq lb-pt1-here
(cdr (lb-pmm-transform-shadow-copies-looking-at
nil "}}" lb-re-end-shadow t)))
;; #################################
(insert
;; ON-THE-FLY.
(with-temp-buffer
(insert lb-str)
(goto-char (point-min))
;; PAGE 21 in en/1981/1HU376/20051214/099.tx
(while (search-forward-regexp lb-re-bracketed-para-integer nil t)
;; Do not delete blank line from this number that's part
;; of blank line of next number. PAGE 207: en/1981/1HU376
(replace-match "\n\n\n"))
(goto-char (point-min))
(while (search-forward-regexp lb-re-__ nil t)
(_-para-delete))
;; fix!
;; This is the true length! Must do check here, now.
;; fix!
;; Ignore trailing white-space! A lot when ^M are right-justified!
(buffer-string))
"\n")
;; #################################
;; ##{{## - THATA ONE - ARG1 === t
(setq lb-pt0-there
(car (lb-pmm-transform-shadow-copies-looking-at
t "{{" lb-re-beg-shadow t)))
;; ##}}## - THATA ONE
(setq lb-pt1-there
(cdr (lb-pmm-transform-shadow-copies-looking-at
t "}}" lb-re-end-shadow t))))
) ;; 3RD
_rc))
;; (lb-pmm-transform-shadow-copies)
(defun lb-pmm-transform-shadow-copies nil
"Search from top of buffer.
If ARG1 is non-nil and non-list, assumes looking for to-here.
Moves point to beginning of to-here.
If ARG1 is nil, assumes looking for from-here.
Leaves point where it was (preceding call: ARG1 is 't').
Deletes '##{{##' and '##}}##'.
Do checks on points returned by above two cons cells.
If ARG1 is a list, assumes list is pointing to from-here.
Replaces '##{{## ##}}##' with contents of from-here"
;;
(let (lb-cons-to-here lb-cons-from-here
lb-err0 lb-err1
_rc)
;;; "en/1982/3HU357/20051223/099.tx"
;;; __ALPHA_LVL2__
;;; ##{{## ##}}##
;;;
;;;
;;; The treacherous attack by fascist Germany. ...
;;;
;;;
;;; ##{{##The treacherous attack by fascist Germany.##}}## The ...
;;; imperialist bourgeoisie ...
(goto-char (point-min))
(while (and
(setq lb-cons-to-here (lb-pmm-transform-shadow-copies-get t))
(progn (goto-char (car lb-cons-to-here))
t))
;; This one will delete "##{{##" and "##}}##" from "from-here".
;; This one will delete "##{{##" and "##}}##" from "to-here" and
;; copy text from "from-here" to "to-here".
(lb-pmm-transform-shadow-copies-get
;; This one (no ARGs) checks both pairs.
;; This one returns cons pair of points with bounds of 2nd pair.
(lb-pmm-transform-shadow-copies-get)))
_rc))
;; (lb-mu-most-recently-modified-inputs)
(defun lb-mu-most-recently-modified-inputs nil
"Very conservative idea of when last change to input happened.
Looks at:
- .tx file
- book.htmm
- /htm/...
- /*.css
- /*.el
- OTHERS?"
;;
(let (_pf
_rc)
(save-match-data
(with-temp-buffer
;; CDATA
(insert (_-timestamp (setq _pf lbg-text-indextx)) " " _pf "\n")
;; Template.
;; fix? always book.htmm?
(insert (_-timestamp
(setq _pf (concat lb-home (lb-get-diskfilename "book"))))
" " _pf "\n")
;; Fragments that go into template and CSS
(loop for cons in
(list
;; fix! do not hardcode.
(cons (concat lb-home "htm/") "/[^.].*[.][a-z][a-z]$")
;; .biz/.#lb-pmm.el"
(cons (concat lb-home "") "^[^.].*[.]css$")
(cons (concat lb-home "") "^[^.].*[.]el$")
)
do
(loop for file in
(directory-files (car cons) t (cdr cons))
do
;; Is it not-directory or symbolic link?
(if
(and
;; Update webpages from this file:
(not (string-match "go-speed-racer" file))
(or
(null (nth 0 (file-attributes file)))
(eq 'string (type-of
(nth 0 (file-attributes file))))))
(insert (_-timestamp file) " " file "\n"))))
;;
(sort-lines nil (point-min) (point-max))
(goto-char (1- (point-max)))
(setq _rc (_-current-line))
(buffer-string))
)
_rc))
(provide 'lb-pmm)
;;;
;