;ELC   
;;; compiled by jwz@thalidomide on Fri Dec 31 02:00:47 1993
;;; from file /th/jwz/emacs19/lisp/packages/add-log.el
;;; emacs version 19.9 Lucid (beta9).
;;; bytecomp version 2.22; 22-dec-93.
;;; optimization is on.
;;; this file uses opcodes which do not exist in Emacs 18.

(if (and (boundp 'emacs-version)
	 (or (and (boundp 'epoch::version) epoch::version)
	     (string-lessp emacs-version "19")))
    (error "This file was compiled for Emacs 19."))

(defvar change-log-default-name nil "\
*Name of a change log file for \\[add-change-log-entry].")
(defvar add-log-current-defun-function nil "\
*If non-nil, function to guess name of current function from surrounding text.
\\[add-change-log-entry] calls this function (if nil, `add-log-current-defun'
instead) with no arguments.  It returns a string or nil if it cannot guess.")
(defvar add-log-full-name nil "\
*Full name of user, for inclusion in ChangeLog daily headers.
This defaults to the value returned by the `user-full-name' function.")
(byte-code "¬ƒÁ Á‡" [add-log-full-name user-full-name] 1)
(defvar add-log-mailing-address nil "\
*Electronic mail address of user, for inclusion in ChangeLog daily headers.
This defaults to the value returned by `user-login-name', followed by
an `@' character, followed by the value returned by `system-name'.")
(byte-code "¬‡Á ÂÃ QÄÅM‡" [add-log-mailing-address user-login-name "@" system-name change-log-name #[nil "®ˆ	Â=«‚Ã‡Ä‡" [change-log-default-name system-type vax-vms "$CHANGE_LOG$.TXT" "ChangeLog"] 2]] 3)
(fset 'prompt-for-change-log-name #[nil "À ÂÃÄÅ	\"Æ	#!)‡" [change-log-name default expand-file-name read-file-name format "Log file (default %s): " nil] 5 "\
Prompt for a change log name."])
(fset 'find-change-log #[(&optional file-name) "¬�	®‹\n«‡ÃÄ\n!!®�	=«ˆÁÆ ž«‚‡Ç!«†ÈÉ \"Ä!È!‰ÊÍ!¬£Î!¬�ÃÏÃ!!!Ã!˜¬ŠÈÉ \"ªWÍ!¬†Î!«ƒ*ÐÁ!Lˆ‡" [file-name change-log-default-name buffer-file-name file-name-directory file-chase-links default-directory buffer-local-variables file-directory-p expand-file-name change-log-name nil parent-dir file1 get-file-buffer file-exists-p directory-file-name make-local-variable] 5 "\
Find a change log file for \\[add-change-log-entry] and return the name.
Optional arg FILE-NAME is a name to try first.
If FILE-NAME is nil, use the value of `change-log-default-name' if non-nil.
Failing that, use \"ChangeLog\" in the current directory.
If the file does not exist in the named directory, successive parent
directories are tried.

Once a file is found, `change-log-default-name' is set locally in the
current buffer to the complete file name."])
(fset 'add-change-log-entry #[(&optional whoami file-name other-window new-entry) "«ŠÁÂ\"ÁÄ\"®�Ç È‰	\nÌ!«£˜¬œÏÐÑÒ!!P\"«ˆÓ•ÈOª„Ô!	«Žš¬‡Ö!ˆª…×!ˆØ ˆebˆÙÑÚ ÓÛO!ÜÑ!ÝÑ!°!«…ÞyˆªŠÚ ßÝà±ˆÙá!«†âÈwˆª„ãÞ!ˆ`\nebˆäå\næ#«Š	«ñ	cˆªë'¬´äÑè	P!éP\næ#«¥äê!ˆÓyˆm¬�Ùë!«‹`ŠÞyˆ`)|ˆªmìcˆíyˆî ˆª³ÞyˆÙï!«…Þyˆªvm¬�Ùë!«‹`ŠÞyˆ`)|ˆªmðcˆíyˆ1jˆè	®�ò±ˆ«™Ø ˆŠÓyˆÙó!)«ƒòª�ôõö±ª�ŠÓyˆÙ÷!)?­‚øc+‡" [whoami read-string "Full name: " add-log-full-name "Mailing address: " add-log-mailing-address add-log-current-defun-function add-log-current-defun nil entry paragraph-end defun find-change-log file-name buffer-file-name string-match "^" regexp-quote file-name-directory 0 file-name-nondirectory other-window find-file-other-window find-file undo-boundary looking-at current-time-string 10 ".* " "  (" 1 "  " ")\n\n" "\n*[^\n* 	]" "\n" forward-paragraph re-search-forward "^\\s *\\*\\s *$" t new-entry "* " "\\(\\s \\|[(),:]\\)" "^\\s *$\\|^\\s \\*" "^\\s *$" "\n\n" -2 indent-relative-maybe "\\sW" "\n\n\n" left-margin "" "\\s *$" " " "(" "): " "\\s *\\(\\*\\s *\\)?$" ": "] 7 "\
Find change log file and add an entry for today.
Optional arg (interactive prefix) non-nil means prompt for user name and site.
Second arg is file name of change log.  If nil, uses `change-log-default-name'.
Third arg OTHER-WINDOW non-nil means visit in other window.
Fourth arg NEW-ENTRY non-nil means always create a new entry at the front;
never append to an existing entry." (byte-code "Á D‡" [current-prefix-arg prompt-for-change-log-name] 2)])
(fset 'add-change-log-entry-other-window #[(&optional whoami file-name) "À	\nÃ#‡" [add-change-log-entry whoami file-name t] 4 "\
Find change log file in other window and add an entry for today.
Optional arg (interactive prefix) non-nil means prompt for user name and site.
Second arg is file name of change log.  If nil, uses `change-log-default-name'." (byte-code "­„Á D‡" [current-prefix-arg prompt-for-change-log-name] 2)])
(defvar change-log-mode-map nil "\
Keymap for Change Log major mode.")
(byte-code "¬ŽÁ ÂÀ\"ˆÃÄÅ#ˆÁ‡" [change-log-mode-map make-sparse-keymap set-keymap-name define-key "ñ" change-log-fill-paragraph] 4)
(fset 'change-log-mode #[nil "À ˆÁ ˆÂÄÆÈ	Ê!ˆÌÍ!ÎLˆÌÏ!ÐLˆÌÑ!ÒLˆÌÓ!ÔLˆÌÕ!ÖLˆ×Ø!‡" [kill-all-local-variables indented-text-mode change-log-mode major-mode "Change Log" mode-name 8 left-margin 74 fill-column use-local-map change-log-mode-map make-local-variable paragraph-start "^\\s *$\\|^" paragraph-separate "^\\s *$\\|^\\|^\\sw" page-delimiter "^\\<\\|^" version-control never adaptive-fill-regexp "\\s *" run-hooks change-log-mode-hook] 2 "\
Major mode for editing change logs; like Indented Text Mode.
Prevents numeric backups and sets `left-margin' to 8 and `fill-column' to 74.
New log entries are usually made with \\[add-change-log-entry] or \\[add-change-log-entry-other-window].
Each entry behaves as a paragraph, and the entries for one day as a page.
Runs `change-log-mode-hook'." nil])
(fset 'change-log-fill-paragraph #[(&optional justify) "ÁP\nÁPÃ!*‡" [paragraph-separate "\\|^\\s *\\s(" paragraph-start fill-paragraph justify] 3 "\
Fill the paragraph, but preserve open parentheses at beginning of lines.
Prefix arg means justify as well." "P"])
(defvar add-log-current-defun-header-regexp "^\\([A-Z][A-Z_ ]*[A-Z_]\\|[a-z_---A-Z]+\\)[ 	]*[:=]" "\
*Heuristic regexp used by `add-log-current-defun' for unknown major modes.")
(fset 'add-log-current-defun #[nil "ÀÁÂ�‡" [nil (byte-code "Š`	Â>«¶m¬ƒÃuˆÄ ˆÅ ˆ`W…‡ÆÇ!ˆ`Y…‡ÈÉ!«ƒÃuˆÆÃ!ˆÊËwˆ`ÆÃ!ˆ`{‚‡	Ì>«¹ŠÍyˆ`ÎZfÏ=«…ÇyˆªsÈÐ!)«¢Íyˆ`ÎZfÏ=«…ÇyˆªsÑÒ!ˆÓËwˆ`ÆÃ!ˆ`{‚‡	Ô>ƒÍyˆÈÕ!¬…Ãyˆªvm¬ƒÃuˆÄ ˆÅ ˆ`W…‡ÖÃ!ˆË‰Çyˆo¬ŠÈÙ!«…ÇyˆªsËÚÛ�«ŸbˆÜÃ!ˆ`fÝU«ˆÆÃ!ˆÞËwˆ`ÆÃ!ˆ`{ª³`Ëßà�­ªŠbˆo¬�ŠÇyˆÈá!)«…Çyˆªn`Y)­�`V­‡`ÖÃ!ˆ`{*ªñ	â>«”ãäËå#­åÍ”bˆ`TËˆ`{ªØ	æ=«ŽãçËå#­ÌÃ”Ã•{ªÅ	è=«ªé ˆå*ëìËå#­šëíËå#«‰ÇuˆÓËxˆªƒËˆ`ÆÇ!ˆ`{)ª–Ë*Ëˆã.`ïZå#­…Ã”Ã•{)*‡" [location major-mode (emacs-lisp-mode lisp-mode scheme-mode) 1 beginning-of-defun end-of-defun forward-sexp -1 looking-at "\\s(" " " nil (c-mode 'c++-mode) 0 2 92 "[ 	]*#[ 	]*define[ 	]" search-forward "define" " 	" (c-mode 'c++-mode) "{\\|\\(\\s *$\\)" backward-sexp tem beg "[ 	\n]" (byte-code "ŠÀyˆÁÀ!ˆÂyˆ`ÄÅ!)­„Y‡" [1 backward-sexp 0 tem looking-at "DEFUN\\b" location] 2) ((error)) down-list 34 " ," (byte-code "ÀÁ!ˆÂÁ!ˆÃÄxˆÅ‡" [down-list 1 backward-up-list " 	" nil t] 2) ((error)) "[^\n]" (TeX-mode plain-TeX-mode LaTeX-mode plain-tex-mode latex-mode) re-search-backward "\\\\\\(sub\\)*\\(section\\|paragraph\\|chapter\\)" t texinfo-mode "^@node[ 	]+\\([^,]+\\)," fortran-mode beginning-of-fortran-subprogram case-fold-search re-search-forward "^[ 	]*\\(program\\|subroutine\\|function\\|[ 	a-z0-9*]*[ 	]+function\\)" "[(\n]" add-log-current-defun-header-regexp 10000] 4) ((error))] 3 "\
Return name of function definition point is in, or nil.

Understands C, Lisp, LaTeX (\"functions\" are chapters, sections, ...),
Texinfo (@node titles), and Fortran.

Other modes are handled by a heuristic that looks in the 10K before
point for uppercase headings starting in the first column or
identifiers followed by `:' or `=', see variable
`add-log-current-defun-header-regexp'.

Has a preference of looking backwards."])
(provide 'add-log)
