aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog14
-rw-r--r--lisp/arc-mode.el26
-rw-r--r--lisp/files.el8
-rw-r--r--lisp/subr.el8
4 files changed, 38 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d305ea16a65..91dafdfbcd4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,17 @@
12003-03-14 John Paul Wallington <jpw@gnu.org>
2
3 * files.el (recover-session): Error if there are no previous
4 sessions to recover.
5
6 * subr.el (posn-col-row): Simplify.
7
8 * arc-mode.el (archive-subtype, archive-file-list-start)
9 (archive-file-list-end, archive-proper-file-start)
10 (archive-read-only, archive-local-name, archive-mode-map)
11 (archive-file-name-indent, archive-remote)
12 (archive-alternate-display, archive-superior-buffer)
13 (archive-subfile-mode): Doc fixes.
14
12003-03-14 Stefan Monnier <monnier@cs.yale.edu> 152003-03-14 Stefan Monnier <monnier@cs.yale.edu>
2 16
3 * textmodes/outline.el (outline-level): Demote it to defvar. 17 * textmodes/outline.el (outline-level): Demote it to defvar.
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el
index 76eaef21c56..2c2569bb970 100644
--- a/lisp/arc-mode.el
+++ b/lisp/arc-mode.el
@@ -324,16 +324,16 @@ Archive and member name will be added."
324;; ------------------------------------------------------------------------- 324;; -------------------------------------------------------------------------
325;; Section: Variables 325;; Section: Variables
326 326
327(defvar archive-subtype nil "*Symbol describing archive type.") 327(defvar archive-subtype nil "Symbol describing archive type.")
328(defvar archive-file-list-start nil "*Position of first contents line.") 328(defvar archive-file-list-start nil "Position of first contents line.")
329(defvar archive-file-list-end nil "*Position just after last contents line.") 329(defvar archive-file-list-end nil "Position just after last contents line.")
330(defvar archive-proper-file-start nil "*Position of real archive's start.") 330(defvar archive-proper-file-start nil "Position of real archive's start.")
331(defvar archive-read-only nil "*Non-nil if the archive is read-only on disk.") 331(defvar archive-read-only nil "Non-nil if the archive is read-only on disk.")
332(defvar archive-local-name nil "*Name of local copy of remote archive.") 332(defvar archive-local-name nil "Name of local copy of remote archive.")
333(defvar archive-mode-map nil "*Local keymap for archive mode listings.") 333(defvar archive-mode-map nil "Local keymap for archive mode listings.")
334(defvar archive-file-name-indent nil "*Column where file names start.") 334(defvar archive-file-name-indent nil "Column where file names start.")
335 335
336(defvar archive-remote nil "*Non-nil if the archive is outside file system.") 336(defvar archive-remote nil "Non-nil if the archive is outside file system.")
337(make-variable-buffer-local 'archive-remote) 337(make-variable-buffer-local 'archive-remote)
338(put 'archive-remote 'permanent-local t) 338(put 'archive-remote 'permanent-local t)
339 339
@@ -341,14 +341,14 @@ Archive and member name will be added."
341(make-variable-buffer-local 'archive-member-coding-system) 341(make-variable-buffer-local 'archive-member-coding-system)
342 342
343(defvar archive-alternate-display nil 343(defvar archive-alternate-display nil
344 "*Non-nil when alternate information is shown.") 344 "Non-nil when alternate information is shown.")
345(make-variable-buffer-local 'archive-alternate-display) 345(make-variable-buffer-local 'archive-alternate-display)
346(put 'archive-alternate-display 'permanent-local t) 346(put 'archive-alternate-display 'permanent-local t)
347 347
348(defvar archive-superior-buffer nil "*In archive members, points to archive.") 348(defvar archive-superior-buffer nil "In archive members, points to archive.")
349(put 'archive-superior-buffer 'permanent-local t) 349(put 'archive-superior-buffer 'permanent-local t)
350 350
351(defvar archive-subfile-mode nil "*Non-nil in archive member buffers.") 351(defvar archive-subfile-mode nil "Non-nil in archive member buffers.")
352(make-variable-buffer-local 'archive-subfile-mode) 352(make-variable-buffer-local 'archive-subfile-mode)
353(put 'archive-subfile-mode 'permanent-local t) 353(put 'archive-subfile-mode 'permanent-local t)
354 354
diff --git a/lisp/files.el b/lisp/files.el
index 7b975d7c996..acfea07992f 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3467,7 +3467,13 @@ Then you'll be asked about a number of files to recover."
3467 (error "You set `auto-save-list-file-prefix' to disable making session files")) 3467 (error "You set `auto-save-list-file-prefix' to disable making session files"))
3468 (let ((dir (file-name-directory auto-save-list-file-prefix))) 3468 (let ((dir (file-name-directory auto-save-list-file-prefix)))
3469 (unless (file-directory-p dir) 3469 (unless (file-directory-p dir)
3470 (make-directory dir t))) 3470 (make-directory dir t))
3471 (unless (directory-files dir nil
3472 (concat "\\`" (regexp-quote
3473 (file-name-nondirectory
3474 auto-save-list-file-prefix)))
3475 t)
3476 (error "No previous sessions to recover")))
3471 (let ((ls-lisp-support-shell-wildcards t)) 3477 (let ((ls-lisp-support-shell-wildcards t))
3472 (dired (concat auto-save-list-file-prefix "*") 3478 (dired (concat auto-save-list-file-prefix "*")
3473 (concat dired-listing-switches "t"))) 3479 (concat dired-listing-switches "t")))
diff --git a/lisp/subr.el b/lisp/subr.el
index 11e6869ffcd..fab48872966 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -656,9 +656,7 @@ as returned by the `event-start' and `event-end' functions.
656For a scroll-bar event, the result column is 0, and the row 656For a scroll-bar event, the result column is 0, and the row
657corresponds to the vertical position of the click in the scroll bar." 657corresponds to the vertical position of the click in the scroll bar."
658 (let* ((pair (nth 2 position)) 658 (let* ((pair (nth 2 position))
659 (window (posn-window position)) 659 (window (posn-window position)))
660 (vspacing (or (frame-parameter (window-frame window) 'line-spacing)
661 default-line-spacing)))
662 (if (eq (if (consp (nth 1 position)) 660 (if (eq (if (consp (nth 1 position))
663 (car (nth 1 position)) 661 (car (nth 1 position))
664 (nth 1 position)) 662 (nth 1 position))
@@ -672,7 +670,9 @@ corresponds to the vertical position of the click in the scroll bar."
672 (let* ((frame (if (framep window) window (window-frame window))) 670 (let* ((frame (if (framep window) window (window-frame window)))
673 (x (/ (car pair) (frame-char-width frame))) 671 (x (/ (car pair) (frame-char-width frame)))
674 (y (/ (cdr pair) (+ (frame-char-height frame) 672 (y (/ (cdr pair) (+ (frame-char-height frame)
675 (or vspacing 0))))) 673 (or (frame-parameter frame 'line-spacing)
674 default-line-spacing
675 0)))))
676 (cons x y)))))) 676 (cons x y))))))
677 677
678(defsubst posn-timestamp (position) 678(defsubst posn-timestamp (position)