comparison lisp/progmodes/cc-cmds.el @ 90185:5b029ff3b08d

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-55 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 320-323) - Update from CVS
author Miles Bader <miles@gnu.org>
date Thu, 26 May 2005 05:42:19 +0000
parents d8411455de48 27b53b1903b6
children f9a65d7ebd29
comparison
equal deleted inserted replaced
90184:9e5e2f01c7ab 90185:5b029ff3b08d
2439 -1) 2439 -1)
2440 (/= (char-after) ?\ ))) 2440 (/= (char-after) ?\ )))
2441 (delete-region (point) end) 2441 (delete-region (point) end)
2442 (indent-to column 1))) 2442 (indent-to column 1)))
2443 2443
2444 (= (forward-line 1) 0)))) 2444 (zerop (forward-line 1)))
2445 (bolp))) ; forward-line has funny behavior at eob.
2445 2446
2446 ;; Make sure there are backslashes with at least one space in 2447 ;; Make sure there are backslashes with at least one space in
2447 ;; front of them. 2448 ;; front of them.
2448 (while 2449 (while
2449 (and 2450 (and
2464 (if (and (memq (char-before) '(?\ ?\t)) 2465 (if (and (memq (char-before) '(?\ ?\t))
2465 (/= (point) point-pos)) 2466 (/= (point) point-pos))
2466 (insert ?\\) 2467 (insert ?\\)
2467 (insert ?\ ?\\))) 2468 (insert ?\ ?\\)))
2468 2469
2469 (= (forward-line 1) 0))))))) 2470 (zerop (forward-line 1)))
2471 (bolp)))))) ; forward-line has funny behavior at eob.
2470 2472
2471 (defun c-delete-backslashes-forward (to-mark point-pos) 2473 (defun c-delete-backslashes-forward (to-mark point-pos)
2472 ;; This function does not do any hidden buffer changes. 2474 ;; This function does not do any hidden buffer changes.
2473 (while 2475 (while
2474 (and (<= (point) to-mark) 2476 (and (<= (point) to-mark)
2479 (point) 2481 (point)
2480 (progn (backward-char) 2482 (progn (backward-char)
2481 (skip-chars-backward " \t" (if (>= (point) point-pos) 2483 (skip-chars-backward " \t" (if (>= (point) point-pos)
2482 point-pos)) 2484 point-pos))
2483 (point)))) 2485 (point))))
2484 (= (forward-line 1) 0))))) 2486 (zerop (forward-line 1)))
2487 (bolp)))) ; forward-line has funny behavior at eob.
2485 2488
2486 2489
2487 2490
2488 ;;; Line breaking and paragraph filling. 2491 ;;; Line breaking and paragraph filling.
2489 2492