emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#8660: closed (23.2; info-look.el makefile-mode der


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#8660: closed (23.2; info-look.el makefile-mode derivatives)
Date: Sat, 16 Feb 2013 17:23:01 +0000

Your message dated Sat, 16 Feb 2013 12:21:39 -0500
with message-id <address@hidden>
and subject line Re: bug#8660: 23.2; info-look.el makefile-mode derivatives
has caused the debbugs.gnu.org bug report #8660,
regarding 23.2; info-look.el makefile-mode derivatives
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
8660: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8660
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 23.2; info-look.el makefile-mode derivatives Date: Thu, 12 May 2011 10:21:52 +1000 User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)
C-h S in the various makefile-mode derivatives such as
makefile-gmake-mode for GNUmakefile prompts for

    Use symbol help mode:

where I hoped it would already know what to do.

Perhaps something like the following, also confining the automake manual
things to the automake mode.  It and the make manual overlap in a few
places, mainly variables like LFLAGS etc.

2011-05-11  Kevin Ryde  <address@hidden>

        * info-look.el (makefile-automake-mode): New setups, looking in
        automake manual, then makefile-mode.
        (makefile-mode): Remove automake manual, have it just in
        makefile-automake-mode.  Remove non-existent automake-mode,
        believe a hypothetical automake-mode would go to makefile-mode,
        not the other way around.
        (makefile-bsdmake-mode, makefile-gmake-mode, makefile-imake-mode)
        (makefile-makepp-mode): New setups, just going to makefile-mode.
        In particular makefile-gmake-mode lets lookups work from a
        GNUmakefile.

--- info-look.el.orig   2011-05-12 08:36:49.000000000 +1000
+++ info-look.el        2011-05-12 10:13:37.000000000 +1000
@@ -720,11 +720,44 @@
  :mode 'makefile-mode
  :regexp "\\$[^({]\\|\\.[_A-Z]*\\|[_a-zA-Z][_a-zA-Z0-9-]*"
  :doc-spec '(("(make)Name Index" nil
-             "^[ \t]*`" "'")
-            ("(automake)Macro and Variable Index" nil
              "^[ \t]*`" "'"))
- :parse-rule "\\$[^({]\\|\\.[_A-Z]*\\|[_a-zA-Z0-9-]+"
- :other-modes '(automake-mode))
+ :parse-rule "\\$[^({]\\|\\.[_A-Z]*\\|[_a-zA-Z0-9-]+")
+
+(info-lookup-maybe-add-help
+ :topic      'symbol
+ :mode       'makefile-automake-mode
+ ;; similar regexp/parse-rule as makefile-mode, but also
+ ;;   "##" special automake comment
+ ;;   "+=" append operator, separate from the GNU make one
+ :regexp     "\\$[^({]\\|\\.[_A-Z]*\\|[_a-zA-Z][_a-zA-Z0-9-]*\\|##\\|\\+="
+ :parse-rule "\\$[^({]\\|\\.[_A-Z]*\\|[_a-zA-Z0-9-]+\\|##\\|\\+="
+ :doc-spec   '(
+               ;; "(automake)Macro Index" is autoconf macros used in
+               ;; configure.in, not Makefile.am, so don't have that here.
+               ("(automake)Variable Index" nil "^[ \t]*`" "'")
+               ;; In automake 1.4 macros and variables were a combined node.
+               ("(automake)Macro and Variable Index" nil "^[ \t]*`" "'")
+               ;; Directives like "if" are in the "General Index".
+               ;; Prefix "`" since the text for say `+=' isn't always an
+               ;; @item etc and so not always at the start of a line.
+               ("(automake)General Index" nil "`" "'")
+               ;; In automake 1.3 there was just a single "Index" node.
+               ("(automake)Index" nil "`" "'"))
+ :other-modes '(makefile-mode))
+
+;; makefile-mode derivatives going to plain makefile-mode.
+(let ((regexp     (info-lookup->regexp     'symbol 'makefile-mode))
+      (parse-rule (info-lookup->parse-rule 'symbol 'makefile-mode)))
+  (dolist (mode '(makefile-bsdmake-mode
+                  makefile-gmake-mode
+                  makefile-imake-mode
+                  makefile-makepp-mode))
+    (info-lookup-maybe-add-help
+     :topic       'symbol
+     :mode        mode
+     :regexp      regexp
+     :parse-rule  parse-rule
+     :other-modes '(makefile-mode))))
 
 (info-lookup-maybe-add-help
  :mode 'texinfo-mode




In GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-05-16 on raven, modified by Debian
configured using `configure  '--build' 'i486-linux-gnu' '--build' 
'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' 
'--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' 
'--mandir=/usr/share/man' '--with-pop=yes' 
'--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim'
 '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 
'build_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_AU
  value of $XMODIFIERS: nil
  locale-coding-system: iso-latin-1-unix
  default enable-multibyte-characters: t

--- End Message ---
--- Begin Message --- Subject: Re: bug#8660: 23.2; info-look.el makefile-mode derivatives Date: Sat, 16 Feb 2013 12:21:39 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
> It took a while but I made the couple of lines below.

Thank you, installed (with comments capitalized and punctuated).


        Stefan


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]