]> code.delx.au - gnu-emacs/blobdiff - lisp/ps-bdf.el
* x-dnd.el (x-dnd-maybe-call-test-function):
[gnu-emacs] / lisp / ps-bdf.el
index 46c5f9842d578572e5bcefb2734ba758b7b97aa3..2b99a16a4a795b2ff9d1bb02413b56585a16d3d7 100644 (file)
@@ -95,8 +95,7 @@ If BDFNAME doesn't exist, return nil."
   (and (file-readable-p bdfname)
        (let ((buf (generate-new-buffer " *bdf-work*"))
             (coding-system-for-read 'no-conversion))
-        (save-excursion
-          (set-buffer buf)
+        (with-current-buffer buf
           (insert-file-contents bdfname)
           buf))))
 
@@ -225,8 +224,7 @@ CODE, where N and CODE are in the following relation:
        (message "Reading %s..." bdfname)
       (error "BDF file %s doesn't exist" bdfname))
     (unwind-protect
-       (save-excursion
-         (set-buffer buf)
+       (with-current-buffer buf
          (goto-char (point-min))
          (search-forward "\nFONTBOUNDINGBOX")
          (setq font-bounding-box