+2003-05-27 Glenn Morris <gmorris@ast.cam.ac.uk>
+
+ * progmodes/sh-script.el (sh-here-document-word): Document
+ new treatment of leading "-".
+ (sh-maybe-here-document): Strip a leading "-" from closing
+ heredoc delimiter, if present.
+
+ * align.el (align-rules-list): Doc fix.
+
+ * calendar/timeclock.el: Update copyright.
+ (timeclock-ask-before-exiting): Put `timeclock-query-out' on
+ `kill-emacs-query-functions' rather than `kill-emacs-hook'.
+ (timeclock-mode-string): Doc fix.
+ (timeclock-modeline-display): Doc fix. Use `global-mode-string'
+ rather than `mode-line-format'.
+ (timeclock-query-out): Doc fix.
+ (timeclock-update-modeline): No need for `let*', so use `let'.
+ Add some help-echo text to `timeclock-mode-string'.
+ (timeclock-mode-string): Give it the risky-local-variable
+ property, so that help-echo text will display.
+ (timeclock-find-discrep): Set `accum' to 0 if
+ `timeclock-discrepancy' is nil.
+
2003-05-27 Stefan Monnier <monnier@cs.yale.edu>
* emacs-lisp/lisp-mode.el (lisp-font-lock-syntactic-face-function):
(defvar sh-here-document-word "EOF"
- "Word to delimit here documents.")
+ "Word to delimit here documents.
+If the first character of this string is \"-\", this character will
+be removed from the string when it is used to close the here document.
+This convention is used by the Bash shell, for example, to indicate
+that leading tabs inside the here document should be ignored.
+Note that Emacs currently has no support for indenting inside here
+documents - you must insert literal tabs by hand.")
(defvar sh-test
'((sh "[ ]" . 3)
(sh-quoted-p)
(end-of-line 2))
(newline)
- (save-excursion (insert ?\n sh-here-document-word)))))
+ (save-excursion
+ (insert ?\n (substring
+ sh-here-document-word
+ (if (string-match "^-" sh-here-document-word) 1 0)))))))
\f
;; various other commands