Changeset 6770 for branches


Ignore:
Timestamp:
Jun 20, 2007, 11:30:35 AM (17 years ago)
Author:
Gary Byers
Message:

Don't complain about compulsive use of c-x c-s to save unmodified buffers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ide-1.0/ccl/hemlock/src/filecoms.lisp

    r6572 r6770  
    4646   \"Mode\" mode option is specified, then this tries to invoke the appropriate
    4747   file type hook."
     48  (#_NSLog #@"processing file options")
    4849  (let* ((string
    4950          (line-string (mark-line (buffer-start-mark buffer))))
     
    146147  (setf (buffer-major-mode buffer) "Pascal"))
    147148
    148 (define-file-type-hook ("lisp" "slisp" "l" "lsp" "mcl") (buffer type)
     149(define-file-type-hook ("lisp" "slisp" "l" "lsp" "mcl" "cl") (buffer type)
    149150  (declare (ignore type))
    150151  (setf (buffer-major-mode buffer) "Lisp"))
     
    647648  (let* ((document (hi::buffer-document buffer)))
    648649    (when document
    649       (when (or (buffer-modified buffer)
    650                 (prompt-for-y-or-n
    651                  :prompt "Buffer is unmodified, write it anyway? "
    652                  :default t))
    653           (hi::save-hemlock-document document)))))
     650      (when (buffer-modified buffer)
     651        (hi::save-hemlock-document document)))))
    654652
    655653(defhvar "Save All Files Confirm"
Note: See TracChangeset for help on using the changeset viewer.