;ELC   
;;; compiled by roland@mole.gnu.ai.mit.edu on Mon Mar 28 18:57:04 1994
;;; from file /gd/gnu/emacs/19.0/lisp/add-log.el
;;; emacs version 19.22.34.
;;; bytecomp version FSF 2.10
;;; 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 "`/gd/gnu/emacs/19.0/lisp/add-log.el' 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 (user-full-name) "\
*Full name of user, for inclusion in ChangeLog daily headers.
This defaults to the value returned by the `user-full-name' function.")
(defvar add-log-mailing-address (byte-code "  Q" [user-login-name "@" system-name] 3) "\
*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'.")
(defalias (quote change-log-name) #[nil " 	=\f Ç	= ŇƇ" [change-log-default-name system-type vax-vms "$CHANGE_LOG$.TXT" ms-dos "changelo" "ChangeLog"] 2])
(defalias '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."])
(defalias 'find-change-log #[(&optional file-name) " 	 \n \n!! 	=%  % !1  \"!!\f\f!n \f!n \f!!!\f!n  !\"\f? \f!| \f! \f*!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 file-name-nondirectory 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."])
(defalias 'add-change-log-entry #[(&optional whoami file-name other-window new-entry) " \"\"  ȉ	\n!N N !!P\"H ӕOL !	c c !h !=r   eb O!!!! y  ! w !`\neb\n# 	A	cA)	P!P\n#!ym ! `y`)| cy Ay!ym-!-`y`)|cy3j	>b y!)XYpy!)?pc+" [whoami read-input "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 major-mode change-log-mode 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." (list current-prefix-arg (prompt-for-change-log-name))])
(defalias '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)])
(defalias '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 *$\\|^\f" paragraph-separate "^\\s *$\\|^\f\\|^\\sw" page-delimiter "^\\<\\|^\f" 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])
(defvar change-log-mode-map nil "\
Keymap for Change Log major mode.")
(byte-code "  #" [change-log-mode-map make-sparse-keymap define-key "" change-log-fill-paragraph] 4)
(defalias 'change-log-fill-paragraph #[(&optional justify) "P\nP\f!*" [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-zA-Z]+\\)[ 	]*[:=]" "\
*Heuristic regexp used by `add-log-current-defun' for unknown major modes.")
(defalias 'add-log-current-defun #[nil "" [nil (byte-code "`	>A m u  `W!`Y!/ u!w`!`{	> y`Zf=Z yK !) y`Zf=s yd !w`!`{	>/y! y m u  `W!ˉyo ! y ۏ b!`fU !w`!`{+`+boy!)y`Y)+`V+`!`{*	>K#͔b`T`{	=a#ÔÕ{	= *##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 c++-c-mode) 0 2 92 "[ 	]*#[ 	]*define[ 	]" search-forward "define" " 	" (c-mode c++-mode c++-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\f]" (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 (quote add-log))
