comparison lisp/progmodes/make-mode.el @ 5312:aad805608eec

(makefile-ignored-files-in-pickup-regex): Supply missing \\. (makefile-insert-target-ref): Fix typo.
author Richard M. Stallman <rms@gnu.org>
date Thu, 23 Dec 1993 04:57:18 +0000
parents 507f64624555
children 4823e14b1314
comparison
equal deleted inserted replaced
5311:da52825a3880 5312:aad805608eec
16 ;; and other usage is not high quality. Symbol names don't have `...'. 16 ;; and other usage is not high quality. Symbol names don't have `...'.
17 ;; The Mode names is written as makefile-mode instead of Makefile mode. 17 ;; The Mode names is written as makefile-mode instead of Makefile mode.
18 18
19 ;; So, for the meantime, this is not the default mode for makefiles. 19 ;; So, for the meantime, this is not the default mode for makefiles.
20 20
21 ;; $Id: makefile.el,v 1.8 1993/05/06 01:30:26 rms Exp jimb $ 21 ;; $Id: makefile.el,v 1.9 1993/06/09 11:54:21 jimb Exp $
22 22
23 ;; This file is part of GNU Emacs. 23 ;; This file is part of GNU Emacs.
24 24
25 ;; GNU Emacs is free software; you can redistribute it and/or modify 25 ;; GNU Emacs is free software; you can redistribute it and/or modify
26 ;; it under the terms of the GNU General Public License as published by 26 ;; it under the terms of the GNU General Public License as published by
167 (defconst makefile-macroassign-regex 167 (defconst makefile-macroassign-regex
168 "^[^ \t][^:#=]*[\\*:\\+]?:?=.*$" 168 "^[^ \t][^:#=]*[\\*:\\+]?:?=.*$"
169 "Regex used to find macro assignment lines in a makefile.") 169 "Regex used to find macro assignment lines in a makefile.")
170 170
171 (defconst makefile-ignored-files-in-pickup-regex 171 (defconst makefile-ignored-files-in-pickup-regex
172 "\\(^\\..*\\)\\|\\(.*~$\\)\\|\\(.*,v$\\)\\|(\\.[chy]\\)" 172 "\\(^\\..*\\)\\|\\(.*~$\\)\\|\\(.*,v$\\)\\|\\(\\.[chy]\\)"
173 "Regex for filenames that will NOT be included in the target list.") 173 "Regex for filenames that will NOT be included in the target list.")
174 174
175 ;;; ------------------------------------------------------------ 175 ;;; ------------------------------------------------------------
176 ;;; The following configurable variables are used in the 176 ;;; The following configurable variables are used in the
177 ;;; up-to-date overview . 177 ;;; up-to-date overview .
516 516
517 (defun makefile-insert-target-ref (target-name) 517 (defun makefile-insert-target-ref (target-name)
518 "Complete on a list of known targets, then insert target-ref at (point) ." 518 "Complete on a list of known targets, then insert target-ref at (point) ."
519 (interactive 519 (interactive
520 (list 520 (list
521 (pogn 521 (progn
522 (makefile-pickup-targets) 522 (makefile-pickup-targets)
523 (completing-read "Refer to target: " makefile-target-table nil nil nil)))) 523 (completing-read "Refer to target: " makefile-target-table nil nil nil))))
524 (if (not (zerop (length target-name))) 524 (if (not (zerop (length target-name)))
525 (progn 525 (progn
526 (insert (format "%s " target-name))))) 526 (insert (format "%s " target-name)))))