Mercurial > emacs
comparison lisp/emacs-lisp/autoload.el @ 14044:1c331f9332ae
(update-file-autoloads): Fix placement of new sections.
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Sat, 06 Jan 1996 19:57:24 +0000 |
parents | d44a43c284e7 |
children | 83f275dcd93a |
comparison
equal
deleted
inserted
replaced
14043:d44a43c284e7 | 14044:1c331f9332ae |
---|---|
328 ;; LOAD-NAME. We assume the file is in order and so | 328 ;; LOAD-NAME. We assume the file is in order and so |
329 ;; there must be no section for LOAD-NAME. We will | 329 ;; there must be no section for LOAD-NAME. We will |
330 ;; insert one before the section here. | 330 ;; insert one before the section here. |
331 (goto-char (match-beginning 0)) | 331 (goto-char (match-beginning 0)) |
332 (setq found 'new))))) | 332 (setq found 'new))))) |
333 (or found | |
334 (progn | |
335 (setq found 'new) | |
336 ;; No later sections in the file. Put before the last page. | |
337 (goto-char (point-max)) | |
338 (search-backward "\f"))) | |
333 (or (eq found 'up-to-date) | 339 (or (eq found 'up-to-date) |
334 (and (memq found '(nil new)) | 340 (and (eq found 'new) |
335 ;; Check that FILE has any cookies before generating a | 341 ;; Check that FILE has any cookies before generating a |
336 ;; new section for it. | 342 ;; new section for it. |
337 (save-excursion | 343 (save-excursion |
338 (if existing-buffer | 344 (if existing-buffer |
339 (set-buffer existing-buffer) | 345 (set-buffer existing-buffer) |