comparison lisp/paragraphs.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 7d06a8bf47d2
children 3889ef128488 ac37a5f7e5be
comparison
equal deleted inserted replaced
5367:8b70d37ab80e 5368:ed74d2ca7082
316 (and use-hard-newlines 316 (and use-hard-newlines
317 (not (get-text-property (1- start) 'hard))))) 317 (not (get-text-property (1- start) 'hard)))))
318 (forward-char 1)) 318 (forward-char 1))
319 (if (< (point) (point-max)) 319 (if (< (point) (point-max))
320 (goto-char start)))) 320 (goto-char start))))
321 (if-fboundp #'constrain-to-field 321 (if-fboundp 'constrain-to-field
322 (constrain-to-field nil opoint t) 322 (constrain-to-field nil opoint t)
323 (error 323 (error
324 'void-function 324 'void-function
325 "constrain-to-field not available; is xemacs-base installed?")) 325 "constrain-to-field not available; is xemacs-base installed?"))
326 ;; Return the number of steps that could not be done. 326 ;; Return the number of steps that could not be done.
435 (let ((par-end (save-excursion (end-of-paragraph-text) (point)))) 435 (let ((par-end (save-excursion (end-of-paragraph-text) (point))))
436 (if (re-search-forward sentence-end par-end t) 436 (if (re-search-forward sentence-end par-end t)
437 (skip-chars-backward " \t\n") 437 (skip-chars-backward " \t\n")
438 (goto-char par-end))) 438 (goto-char par-end)))
439 (setq arg (1- arg))) 439 (setq arg (1- arg)))
440 (if-fboundp #'constrain-to-field 440 (if-fboundp 'constrain-to-field
441 (constrain-to-field nil opoint t) 441 (constrain-to-field nil opoint t)
442 (error 442 (error
443 'void-function 443 'void-function
444 "constrain-to-field not available; is xemacs-base installed?")))) 444 "constrain-to-field not available; is xemacs-base installed?"))))
445 445