comparison lisp/select.el @ 5368:ed74d2ca7082

Use ', not #', when a given symbol may not have a function binding at read time 2011-03-10 Aidan Kehoe <kehoea@parhasard.net> * cmdloop.el (yes-or-no-p): * cmdloop.el (y-or-n-p): * descr-text.el (describe-char): * diagnose.el (show-memory-usage): * diagnose.el (show-object-memory-usage-stats): * diagnose.el (show-mc-alloc-memory-usage): * diagnose.el (show-gc-stats): * faces.el (face-font-instance): * gtk-font-menu.el (gtk-reset-device-font-menus): * help.el (help-symbol-function-context-menu): * help.el (help-symbol-variable-context-menu): * help.el (help-symbol-function-and-variable-context-menu): * help.el (help-find-source-or-scroll-up): * help.el (help-mouse-find-source-or-track): * help.el (temp-buffer-resize-mode): * minibuf.el (mouse-read-file-name-1): * obsolete.el (find-non-ascii-charset-string): * obsolete.el (find-non-ascii-charset-region): * occur.el (occur-engine): * paragraphs.el (forward-paragraph): * paragraphs.el (forward-sentence): * select.el (activate-region-as-selection): * select.el (select-make-extent-for-selection): * simple.el (zmacs-make-extent-for-region): Use quote, not function, for quoting symbols that may not be fboundp at the point they are read (again, a style issue, since Common Lisp throws an error on this, but we don't, and have no plans to.)
author Aidan Kehoe <kehoea@parhasard.net>
date Thu, 10 Mar 2011 18:51:15 +0000
parents 0f9aa4eb4bec
children ac37a5f7e5be
comparison
equal deleted inserted replaced
5367:8b70d37ab80e 5368:ed74d2ca7082
275 ;; Note that it is possible for the region to be in the "active" state 275 ;; Note that it is possible for the region to be in the "active" state
276 ;; and not be hilighted, if it is in the active state and then some other 276 ;; and not be hilighted, if it is in the active state and then some other
277 ;; application asserts the selection. This is probably not a big deal. 277 ;; application asserts the selection. This is probably not a big deal.
278 278
279 (defun activate-region-as-selection () 279 (defun activate-region-as-selection ()
280 (cond ((and-fboundp #'mouse-track-rectangle-p 280 (cond ((and-fboundp 'mouse-track-rectangle-p
281 (mouse-track-rectangle-p 281 (mouse-track-rectangle-p
282 (mouse-track-activate-rectangular-selection)))) 282 (mouse-track-activate-rectangular-selection))))
283 ((marker-buffer (mark-marker t)) 283 ((marker-buffer (mark-marker t))
284 (own-selection (cons (point-marker t) (mark-marker t)))))) 284 (own-selection (cons (point-marker t) (mark-marker t))))))
285 285
347 ;; the extent (the visual indication), and the region between point 347 ;; the extent (the visual indication), and the region between point
348 ;; and mark (the actual selection value) become different! 348 ;; and mark (the actual selection value) become different!
349 (set-extent-property previous-extent 'end-open nil) 349 (set-extent-property previous-extent 'end-open nil)
350 350
351 (cond 351 (cond
352 ((and-fboundp #'mouse-track-rectangle-p 352 ((and-fboundp 'mouse-track-rectangle-p
353 (mouse-track-rectangle-p 353 (mouse-track-rectangle-p
354 (setq previous-extent (list previous-extent)) 354 (setq previous-extent (list previous-extent))
355 (default-mouse-track-next-move-rect start end previous-extent) 355 (default-mouse-track-next-move-rect start end previous-extent)
356 )))) 356 ))))
357 previous-extent)))) 357 previous-extent))))