;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#!ym!`y`)|mcy y!yvm!`y`)|mcy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\nP!*" [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 "`	>mu  `W!`Y!u!w`!`{	>y`Zf=ys!)y`Zf=ys!w`!`{	>y!yvmu  `W!ˉyo!ysۏb!`fU!w`!`{`boy!)yn`Y)`V`!`{*	>#͔b`T`{	=#ÔÕ{	= *##ux`!`{)*.`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)
