Loading ...
Sorry, an error occurred while loading the content.

RE: [jasspa] ehook, fhook, bhook

Expand Messages
  • Steven Phillips
    Detlef, I m not sure how this ever worked, the line: # try to fold lines with stars at the beginning is not a comment so I believe execution would fail at this
    Message 1 of 5 , Jan 16, 2002
    • 0 Attachment
      Detlef,

      I'm not sure how this ever worked, the line:

      # try to fold lines with stars at the beginning

      is not a comment so I believe execution would fail at this point (error
      message may have been hidden by subsequent ml-write), but if it did continue
      you use register #l1 without setting it, I believe this was lifted from
      docmacro.emf which handles both 'doc' and 'txt' files so #l1 was set to one
      of these. You should be able to set this to 'doc'.

      The most likely reason it doesn't get invoked is because my-fhook-doc is not
      defined when you load a doc file, this is probably due to one of the
      following:
      macro is not defined in the auto-loaded mydoc.emf
      mydoc.emf is not in the $search-path
      there is an error executing mydoc.emf

      I have just tested this and it does seem to work for me (although I have
      already made changes in this area!)

      Not sure what you mean about bhooks and ehook, they are the 'change current
      buffer' hooks and have be there for some time.

      I hope this solves your problems,

      Steve

      > -----Original Message-----
      > From: dgroth@... [mailto:dgroth@...]
      > Sent: 16 January 2002 10:02
      > To: jasspa@yahoogroups.com
      > Subject: [jasspa] ehook, fhook, bhook
      >
      >
      >
      > Hello,
      >
      > Thank you very much for the new release
      >
      > however there is some stuff which I don't understand.
      >
      > So my old macro `my-fhook-doc' is not working any more.
      >
      > It is not invoked anymore(if invoked manually it returns an error) and
      > these ehooks and bhooks which seems to be used instead are not
      > described in the docs.
      >
      > define-macro my-fhook-doc
      > ; hilight .hilight.doc 0x22 "[0-9]+\\.[0-9.]*[ \t]+\\w"
      > .scheme.header
      > hilight .hilight.doc 0x22 "^[\\*]+[ \t]+\\w" .scheme.header
      > hilight .hilight.doc 0x22 "^\\*[ \t]+\\w" .scheme.header
      > # try to fold lines with stars at the beginning
      > set-variable &ind &spr ".fhook-%s.fold-open" #l1
      \\*]+[
      > \t]+\\w\\|^[ \t]*\\(Appendix[
      > \t]+[A-Z][0-9.]*\\|[0-9]\\.[0-9.]*\\)[ \t]+\\w"
      > set-variable &ind &spr ".fhook-%s.fold-close" #l1 "^[\\*]+[
      > \t]+\\w\\|^[ \t]*\\(Appendix[
      > \t]+[A-Z][0-9.]*\\|[0-9]\\.[0-9.]*\\)[ \t]+\\w"
      > set-variable &ind &spr ".fhook-%s.fold-mopen" #l1 "1"
      > set-variable &ind &spr ".fhook-%s.fold-mnext" #l1 "-1"
      > !emacro
      >
      > regards,
      > Detlef
      >
      >
      >
      > __________________________________________________________________________
      >
      > This is an unmoderated list. JASSPA is not responsible for the content of
      > any material posted to this list.
      >
      > To unsubscribe, send a mail message to
      >
      > mailto:jasspa-unsubscribe@yahoogroups.com
      >
      > or visit http://groups.yahoo.com/group/jasspa and
      > modify your account settings manually.
      >
      >
      >
      >
      > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
      >
      >
      >
    • Steven Phillips
      Actually the opposite has happened, we have added support for the execution of my-fhook-xyz, my-bhook-xyz & my-ehook-xyz to all file hooks. Its all done by the
      Message 2 of 5 , Jan 18, 2002
      • 0 Attachment
        Actually the opposite has happened, we have added support for the execution
        of my-fhook-xyz, my-bhook-xyz & my-ehook-xyz to all file hooks. Its all done
        by the buffer-setup macros, look in macro buffer-initialize-hooks in
        buffinit.emf. So you should be able to rely on my-?hook-... being executed
        for every file type and if not its a bug.

        The reason for this change is for reduced maintenance and increased
        consistency and reliability, if you compare the size of a hk...emf file
        today with a year ago its a lot smaller but provides a lot more features.
        The down-side to this is that its now all done by 'magic' and the user
        cannot easily see what's going on.

        Steve

        > -----Original Message-----
        > From: dgroth@... [mailto:dgroth@...]
        > Sent: 18 January 2002 09:39
        > To: jasspa@yahoogroups.com
        > Cc: jasspa@yahoogroups.com
        > Subject: Re: [jasspa] ehook, fhook, bhook
        >
        >
        >
        > I assume that these my-fook-xyz invokation was silently removed ..
        >
        >
        >
        > Administrator@MG01-44 ~
        > $ grep my-fhook-perl /cygdrive/d/dgroth/bin/me2002/macros/*.emf
        >
        > Administrator@MG01-44 ~
        > $ grep my-fhook-perl /cygdrive/d/dgroth/bin/me2001/macros/*.emf
        > /cygdrive/d/dgroth/bin/me2001/macros/dgroth.emf:define-macro my-fhook-perl
        > /cygdrive/d/dgroth/bin/me2001/macros/hkperl.emf: !if &exist
        > my-fhook-perl
        > /cygdrive/d/dgroth/bin/me2001/macros/hkperl.emf: my-fhook-perl
        >
        >
        > Administrator@MG01-44 ~
        > $ grep my-fhook-doc /cygdrive/d/dgroth/bin/me2001/macros/*.emf
        > /cygdrive/d/dgroth/bin/me2001/macros/dgroth.emf:define-macro my-fhook-doc
        > /cygdrive/d/dgroth/bin/me2001/macros/hkdoc.emf: !if &exist my-fhook-doc
        > /cygdrive/d/dgroth/bin/me2001/macros/hkdoc.emf: my-fhook-doc
        >
        > Administrator@MG01-44 ~
        > $ grep my-fhook-doc /cygdrive/d/dgroth/bin/me2002/macros/*.emf
        >
        > Administrator@MG01-44 ~
        >
        >
        > So everything has to be put into myxyz.doc
        >
        > That's a pitty. So I have to generate for each fhook I use a new file
        > instead of simple defining in user.emf some small stuff ....
        > Why ?
        >
        >
        > regards,
        > Detlef
        >
        > --
        > Dr. Detlef Groth
        > Max-Planck-Institut
        > fuer Molekulare Genetik
        > Ihnestr. 63/73
        > D-14195 Berlin
        > Tel.: + 49 30 - 8413 1235
        > Email: dgroth@...
        > Email: dgroth@...
        >
        >
        >
        > __________________________________________________________________________
        >
        > This is an unmoderated list. JASSPA is not responsible for the content of
        > any material posted to this list.
        >
        > To unsubscribe, send a mail message to
        >
        > mailto:jasspa-unsubscribe@yahoogroups.com
        >
        > or visit http://groups.yahoo.com/group/jasspa and
        > modify your account settings manually.
        >
        >
        >
        >
        > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
        >
        >
        >
      • dgroth@gmx.de
        I assume that these my-fook-xyz invokation was silently removed .. Administrator@MG01-44 ~ $ grep my-fhook-perl /cygdrive/d/dgroth/bin/me2002/macros/*.emf
        Message 3 of 5 , Jan 18, 2002
        • 0 Attachment
          I assume that these my-fook-xyz invokation was silently removed ..



          Administrator@MG01-44 ~
          $ grep my-fhook-perl /cygdrive/d/dgroth/bin/me2002/macros/*.emf

          Administrator@MG01-44 ~
          $ grep my-fhook-perl /cygdrive/d/dgroth/bin/me2001/macros/*.emf
          /cygdrive/d/dgroth/bin/me2001/macros/dgroth.emf:define-macro my-fhook-perl
          /cygdrive/d/dgroth/bin/me2001/macros/hkperl.emf: !if &exist my-fhook-perl
          /cygdrive/d/dgroth/bin/me2001/macros/hkperl.emf: my-fhook-perl


          Administrator@MG01-44 ~
          $ grep my-fhook-doc /cygdrive/d/dgroth/bin/me2001/macros/*.emf
          /cygdrive/d/dgroth/bin/me2001/macros/dgroth.emf:define-macro my-fhook-doc
          /cygdrive/d/dgroth/bin/me2001/macros/hkdoc.emf: !if &exist my-fhook-doc
          /cygdrive/d/dgroth/bin/me2001/macros/hkdoc.emf: my-fhook-doc

          Administrator@MG01-44 ~
          $ grep my-fhook-doc /cygdrive/d/dgroth/bin/me2002/macros/*.emf

          Administrator@MG01-44 ~


          So everything has to be put into myxyz.doc

          That's a pitty. So I have to generate for each fhook I use a new file
          instead of simple defining in user.emf some small stuff ....
          Why ?


          regards,
          Detlef

          --
          Dr. Detlef Groth
          Max-Planck-Institut
          fuer Molekulare Genetik
          Ihnestr. 63/73
          D-14195 Berlin
          Tel.: + 49 30 - 8413 1235
          Email: dgroth@...
          Email: dgroth@...
        • dgroth@gmx.de
          I assume that these my-fook-xyz invokation was silently removed .. Administrator@MG01-44 ~ $ grep my-fhook-perl /cygdrive/d/dgroth/bin/me2002/macros/*.emf
          Message 4 of 5 , Jan 18, 2002
          • 0 Attachment
            I assume that these my-fook-xyz invokation was silently removed ..



            Administrator@MG01-44 ~
            $ grep my-fhook-perl /cygdrive/d/dgroth/bin/me2002/macros/*.emf

            Administrator@MG01-44 ~
            $ grep my-fhook-perl /cygdrive/d/dgroth/bin/me2001/macros/*.emf
            /cygdrive/d/dgroth/bin/me2001/macros/dgroth.emf:define-macro my-fhook-perl
            /cygdrive/d/dgroth/bin/me2001/macros/hkperl.emf: !if &exist my-fhook-perl
            /cygdrive/d/dgroth/bin/me2001/macros/hkperl.emf: my-fhook-perl


            Administrator@MG01-44 ~
            $ grep my-fhook-doc /cygdrive/d/dgroth/bin/me2001/macros/*.emf
            /cygdrive/d/dgroth/bin/me2001/macros/dgroth.emf:define-macro my-fhook-doc
            /cygdrive/d/dgroth/bin/me2001/macros/hkdoc.emf: !if &exist my-fhook-doc
            /cygdrive/d/dgroth/bin/me2001/macros/hkdoc.emf: my-fhook-doc

            Administrator@MG01-44 ~
            $ grep my-fhook-doc /cygdrive/d/dgroth/bin/me2002/macros/*.emf

            Administrator@MG01-44 ~


            So everything has to be put into myxyz.doc

            That's a pitty. So I have to generate for each fhook I use a new file
            instead of simple defining in user.emf some small stuff ....
            Why ?


            regards,
            Detlef

            --
            Dr. Detlef Groth
            Max-Planck-Institut
            fuer Molekulare Genetik
            Ihnestr. 63/73
            D-14195 Berlin
            Tel.: + 49 30 - 8413 1235
            Email: dgroth@...
            Email: dgroth@...
          Your message has been successfully submitted and would be delivered to recipients shortly.