Changeset 4200 for trunk/lisp/emacs-lisp/warnings.el
- Timestamp:
- 04/07/07 15:49:28 (2 years ago)
- Files:
-
- trunk/lisp/emacs-lisp/warnings.el (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/emacs-lisp/warnings.el
r4190 r4200 219 219 :debug -- info for debugging only. 220 220 221 BUFFER-NAME, if specified, is the name of the buffer for logging the 222 warning. By default, it is `*Warnings*'. 221 BUFFER-NAME, if specified, is the name of the buffer for logging 222 the warning. By default, it is `*Warnings*'. If this function 223 has to create the buffer, it disables undo in the buffer. 223 224 224 225 See the `warnings' custom group for user customization features. … … 228 229 (unless level 229 230 (setq level :warning)) 231 (unless buffer-name 232 (setq buffer-name "*Warnings*")) 230 233 (if (assq level warning-level-aliases) 231 234 (setq level (cdr (assq level warning-level-aliases)))) … … 234 237 (warning-suppress-p type warning-suppress-log-types) 235 238 (let* ((typename (if (consp type) (car type) type)) 236 (buffer (get-buffer-create (or buffer-name "*Warnings*"))) 239 (old (get-buffer buffer-name)) 240 (buffer (get-buffer-create buffer-name)) 237 241 (level-info (assq level warning-levels)) 238 242 start end) 239 243 (with-current-buffer buffer 244 ;; If we created the buffer, disable undo. 245 (unless old 246 (setq buffer-undo-list t)) 240 247 (goto-char (point-max)) 241 248 (when (and warning-series (symbolp warning-series))
