comparison lisp/progmodes/make-mode.el @ 65383:4dadc0d80d76

(makefile-add-log-defun): Trim the result.
author Richard M. Stallman <rms@gnu.org>
date Fri, 09 Sep 2005 01:24:59 +0000
parents 629afbe74e61
children 13abee3a9bc6 10fe5fadaf89
comparison
equal deleted inserted replaced
65382:8cdd634706b6 65383:4dadc0d80d76
1831 (looking-at makefile-dependency-regex)) 1831 (looking-at makefile-dependency-regex))
1832 (match-string-no-properties 1))) 1832 (match-string-no-properties 1)))
1833 ;; Don't keep looking across a blank line or comment. 1833 ;; Don't keep looking across a blank line or comment.
1834 (looking-at "$\\|#") 1834 (looking-at "$\\|#")
1835 (not (zerop (forward-line -1)))))) 1835 (not (zerop (forward-line -1))))))
1836 ;; Remove leading and trailing whitespace.
1837 (when found
1838 (setq found (replace-regexp-in-string "[ \t]+\\'" "" found))
1839 (setq found (replace-regexp-in-string "\\`[ \t]+" "" found)))
1836 found))) 1840 found)))
1837 1841
1838 (provide 'make-mode) 1842 (provide 'make-mode)
1839 1843
1840 ;;; arch-tag: bd23545a-de91-44fb-b1b2-feafbb2635a0 1844 ;;; arch-tag: bd23545a-de91-44fb-b1b2-feafbb2635a0