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

eleminate 'other' messages from Quickfix window

Expand Messages
  • Vinay M S
    Hello, Sorry for re-posting the message. Here is the scenario. I use make for compiling my programs. This is folder-recursive and outputs a lot of things
    Message 1 of 3 , Oct 30, 2001
    • 0 Attachment
      Hello,

      Sorry for re-posting the message.

      Here is the scenario.
      I use "make" for compiling my programs. This is folder-recursive and
      outputs a lot of things other than info on warning/error/Entering and
      leaving directories.

      I have my efm set as
      set efm=Error:\ %f(%l):\ %m,%Z,Warning\ %*\\d:\ %f(%l):\
      %m,%Z,%Dmake[%*\\d]:\ Entering\ directory\ `%f',%XLeaving\ directory\ `%f'

      which captures lines starting with "Error:" , "Warning:" and uses
      "Entering directory" and "Leaving directory" for tracking the change in
      directories.

      It works perfect for me now, except for that it shows messages
      (including the NON-Error/Warning Messages)

      Is there any way to specify to filter out all *other* messages. I am
      aware that :cn would take me to the next error. But I want only the error
      and warning listing in the :copen box

      TIA

      Vinay
    • Denis Perelyubskiy
      i am not sure if this is going to work, but perhaps you could define your makeprg as make | egrep ^Error|^Warning syntax is probably way off, but you get
      Message 2 of 3 , Oct 30, 2001
      • 0 Attachment
        i am not sure if this is going to work, but perhaps you
        could define your makeprg as make\ |\ egrep\ "^Error|^Warning"

        syntax is probably way off, but you get the idea...

        denis

        * Vinay M S <vinayms@...> [30-Oct-01 18:42 -0800]:
        >
        >Hello,
        >
        > Sorry for re-posting the message.
        >
        > Here is the scenario.
        > I use "make" for compiling my programs. This is folder-recursive and
        >outputs a lot of things other than info on warning/error/Entering and
        >leaving directories.
        >
        > I have my efm set as
        > set efm=Error:\ %f(%l):\ %m,%Z,Warning\ %*\\d:\ %f(%l):\
        >%m,%Z,%Dmake[%*\\d]:\ Entering\ directory\ `%f',%XLeaving\ directory\ `%f'
        >
        > which captures lines starting with "Error:" , "Warning:" and uses
        >"Entering directory" and "Leaving directory" for tracking the change in
        >directories.
        >
        > It works perfect for me now, except for that it shows messages
        >(including the NON-Error/Warning Messages)
        >
        > Is there any way to specify to filter out all *other* messages. I am
        >aware that :cn would take me to the next error. But I want only the error
        >and warning listing in the :copen box
        >
        >TIA
        >
        >Vinay

        denis

        --
        // mailto: Denis Perelyubskiy <denisp@...>
        // icq : 12359698
        // PGP : http://www.cs.ucla.edu/~denisp/files/pgp.asc
      • Brian Medley
        ... have you considered writing a perl script or something to filter out all the unwanted noise? -- ~ `^` ~=-.,__,.-=~ `^` ~=-.,__,.-=~ `^` ~=-., |/ (___)
        Message 3 of 3 , Oct 31, 2001
        • 0 Attachment
          On Wed, Oct 31, 2001 at 08:10:08AM +0530, Vinay M S wrote:

          > It works perfect for me now, except for that it shows messages (including
          > the NON-Error/Warning Messages)
          >
          > Is there any way to specify to filter out all *other* messages. I am
          > aware that :cn would take me to the next error. But I want only the error
          > and warning listing in the :copen box

          have you considered writing a perl script or something to filter out all
          the unwanted noise?

          --
          ~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-., \|/ (___) \|/ _,.-=~'`^`
          Brian Medley @~./'O o`\.~@
          "Knowledge is Power" brian.medley@... /__( \___/ )__\ *PPPFFBT!*
          -- Francis Bacon `\__`U_/'
          _,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~= <____|' ^^`'~=-.,__,.-=
          ~`'^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-==--^'~=-.,__,.-=~'`^`
        Your message has been successfully submitted and would be delivered to recipients shortly.