Show
Ignore:
Timestamp:
11/26/05 08:33:26 (3 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • vendor/emacs-CVS_HEAD/lisp/bookmark.el

    r3939 r3988  
    718718 
    719719  
     720;;; Generic helpers. 
     721 
     722(defun bookmark-maybe-message (fmt &rest args) 
     723  "Apply `message' to FMT and ARGS, but only if the display is fast enough." 
     724  (if (>= baud-rate 9600) 
     725      (apply 'message fmt args))) 
     726 
     727  
    720728;;; Core code: 
    721729 
     
    13511359  (save-excursion 
    13521360    (save-window-excursion 
    1353       (if (>= baud-rate 9600) 
    1354           (message "Saving bookmarks to file %s..." file)) 
    1355       (set-buffer (let ((enable-local-variables nil)) 
    1356                     (find-file-noselect file))) 
     1361      (bookmark-maybe-message "Saving bookmarks to file %s..." file) 
     1362      (set-buffer (get-buffer-create " *Bookmarks*")) 
    13571363      (goto-char (point-min)) 
     1364      (delete-region (point-min) (point-max)) 
    13581365      (let ((print-length nil) 
    13591366            (print-level nil)) 
    1360         (delete-region (point-min) (point-max)) 
    13611367        (bookmark-insert-file-format-version-stamp) 
    13621368        (pp bookmark-alist (current-buffer)) 
     
    13691375                 t)))) 
    13701376          (condition-case nil 
    1371               (write-file file) 
     1377              (write-region (point-min) (point-max) file) 
    13721378            (file-error (message "Can't write %s" file))) 
    13731379          (kill-buffer (current-buffer)) 
    1374           (if (>= baud-rate 9600) 
    1375              (message "Saving bookmarks to file %s...done" file))))))) 
     1380          (bookmark-maybe-message 
     1381           "Saving bookmarks to file %s...done" file)))))) 
    13761382 
    13771383 
     
    14391445      (save-excursion 
    14401446        (save-window-excursion 
    1441           (if (and (null no-msg) (>= baud-rate 9600)
    1442               (message "Loading bookmarks from %s..." file)) 
     1447          (if (null no-msg
     1448              (bookmark-maybe-message "Loading bookmarks from %s..." file)) 
    14431449          (set-buffer (let ((enable-local-variables nil)) 
    14441450                        (find-file-noselect file))) 
     
    14631469              (error "Invalid bookmark list in %s" file))) 
    14641470          (kill-buffer (current-buffer))) 
    1465         (if (and (null no-msg) (>= baud-rate 9600)
    1466             (message "Loading bookmarks from %s...done" file))) 
     1471        (if (null no-msg
     1472            (bookmark-maybe-message "Loading bookmarks from %s...done" file))) 
    14671473    (error "Cannot read bookmark file %s" file))) 
    14681474