diff options
| author | Richard M. Stallman | 1998-05-04 00:13:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-05-04 00:13:13 +0000 |
| commit | 5522b032fc8f433ef050654db53c056211def009 (patch) | |
| tree | 7b297b338663af8291b70cc8677e877c7c43165b | |
| parent | eee86eff468db2c025132133ddfce39c30dd65d0 (diff) | |
| download | emacs-5522b032fc8f433ef050654db53c056211def009.tar.gz emacs-5522b032fc8f433ef050654db53c056211def009.zip | |
(add-log-debugging): New variable.
(add-change-log-entry): Set it.
| -rw-r--r-- | lisp/add-log.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el index d671cbf8854..9262d12112a 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; add-log.el --- change log maintenance commands for Emacs | 1 | ;; add-log.el --- change log maintenance commands for Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 86, 88, 93, 94, 97, 1998 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1985, 86, 88, 93, 94, 97, 1998 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -151,6 +151,8 @@ this variable." | |||
| 151 | It takes the same format as the TZ argument of `set-time-zone-rule'. | 151 | It takes the same format as the TZ argument of `set-time-zone-rule'. |
| 152 | If nil, use local time.") | 152 | If nil, use local time.") |
| 153 | 153 | ||
| 154 | (defvar add-log-debugging) | ||
| 155 | |||
| 154 | (defun add-log-iso8601-time-zone (time) | 156 | (defun add-log-iso8601-time-zone (time) |
| 155 | (let* ((utc-offset (or (car (current-time-zone time)) 0)) | 157 | (let* ((utc-offset (or (car (current-time-zone time)) 0)) |
| 156 | (sign (if (< utc-offset 0) ?- ?+)) | 158 | (sign (if (< utc-offset 0) ?- ?+)) |
| @@ -305,6 +307,8 @@ non-nil, otherwise in local time." | |||
| 305 | (substring buffer-file-name (match-end 0)) | 307 | (substring buffer-file-name (match-end 0)) |
| 306 | (file-name-nondirectory buffer-file-name)))) | 308 | (file-name-nondirectory buffer-file-name)))) |
| 307 | 309 | ||
| 310 | (let ((buffer (find-buffer-visiting file-name))) | ||
| 311 | (setq add-log-debugging (list (gap-position) (gap-size)))) | ||
| 308 | (if (and other-window (not (equal file-name buffer-file-name))) | 312 | (if (and other-window (not (equal file-name buffer-file-name))) |
| 309 | (find-file-other-window file-name) | 313 | (find-file-other-window file-name) |
| 310 | (find-file file-name)) | 314 | (find-file file-name)) |