* hook for search next
@ 2009-05-05 8:43 tomer
2009-05-05 12:40 ` Kevin Rodgers
[not found] ` <mailman.6649.1241527217.31690.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 9+ messages in thread
From: tomer @ 2009-05-05 8:43 UTC (permalink / raw)
To: help-gnu-emacs
i want to print message after each search (ctrl-s) in search-minor
mode.Is it possilbe to hook for this purpose?
Is there other way other than hook?
it is very important.
Thanks
Tomer
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: hook for search next
2009-05-05 8:43 hook for search next tomer
@ 2009-05-05 12:40 ` Kevin Rodgers
[not found] ` <mailman.6649.1241527217.31690.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 9+ messages in thread
From: Kevin Rodgers @ 2009-05-05 12:40 UTC (permalink / raw)
To: help-gnu-emacs
tomer wrote:
> i want to print message after each search (ctrl-s) in search-minor
> mode.Is it possilbe to hook for this purpose?
> Is there other way other than hook?
> it is very important.
,----[ C-h v isearch-mode-end-hook RET ]
| isearch-mode-end-hook is a variable defined in `isearch.el'.
| Its value is nil
|
|
| Documentation:
| Function(s) to call after terminating an incremental search.
| When these functions are called, `isearch-mode-end-hook-quit'
| is non-nil if the user quit the search.
|
| [back]
`----
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: hook for search next
[not found] ` <mailman.6649.1241527217.31690.help-gnu-emacs@gnu.org>
@ 2009-05-06 8:07 ` tomer
2009-05-06 14:52 ` Kevin Rodgers
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: tomer @ 2009-05-06 8:07 UTC (permalink / raw)
To: help-gnu-emacs
On May 5, 3:40 pm, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:
> tomer wrote:
> > i want to print message after each search (ctrl-s) in search-minor
> > mode.Is it possilbe to hook for this purpose?
> > Is there other way other than hook?
> > it is very important.
>
> ,----[ C-h v isearch-mode-end-hook RET ]
> | isearch-mode-end-hook is a variable defined in `isearch.el'.
> | Its value is nil
> |
> |
> | Documentation:
> | Function(s) to call after terminating an incremental search.
> | When these functions are called, `isearch-mode-end-hook-quit'
> | is non-nil if the user quit the search.
> |
> | [back]
> `----
>
> --
> Kevin Rodgers
> Denver, Colorado, USA
Thanks for the answer,
I knew that hooks, these hook are only in the end of the search.
I need a hook each time a new search is found (each time pressing ctrl
+s in isearch mode).
Is it possbile?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: hook for search next
2009-05-06 8:07 ` tomer
@ 2009-05-06 14:52 ` Kevin Rodgers
[not found] ` <mailman.6751.1241621587.31690.help-gnu-emacs@gnu.org>
2009-08-12 7:28 ` better search Maindoor
2 siblings, 0 replies; 9+ messages in thread
From: Kevin Rodgers @ 2009-05-06 14:52 UTC (permalink / raw)
To: help-gnu-emacs
tomer wrote:
> On May 5, 3:40 pm, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:
>> tomer wrote:
>>> i want to print message after each search (ctrl-s) in search-minor
>>> mode.Is it possilbe to hook for this purpose?
>>> Is there other way other than hook?
>>> it is very important.
>> ,----[ C-h v isearch-mode-end-hook RET ]
>> | isearch-mode-end-hook is a variable defined in `isearch.el'.
>> | Its value is nil
>> |
>> |
>> | Documentation:
>> | Function(s) to call after terminating an incremental search.
>> | When these functions are called, `isearch-mode-end-hook-quit'
>> | is non-nil if the user quit the search.
>> |
>> | [back]
>> `----
>>
>> --
>> Kevin Rodgers
>> Denver, Colorado, USA
>
> Thanks for the answer,
> I knew that hooks, these hook are only in the end of the search.
> I need a hook each time a new search is found (each time pressing ctrl
> +s in isearch mode).
> Is it possbile?
Try after-advising isearch-search and check isearch-success.
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: hook for search next
[not found] ` <mailman.6751.1241621587.31690.help-gnu-emacs@gnu.org>
@ 2009-05-07 6:47 ` tomer
0 siblings, 0 replies; 9+ messages in thread
From: tomer @ 2009-05-07 6:47 UTC (permalink / raw)
To: help-gnu-emacs
On May 6, 5:52 pm, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:
> tomer wrote:
> > On May 5, 3:40 pm, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:
> >> tomer wrote:
> >>> i want to print message after each search (ctrl-s) in search-minor
> >>> mode.Is it possilbe to hook for this purpose?
> >>> Is there other way other than hook?
> >>> it is very important.
> >> ,----[ C-h v isearch-mode-end-hook RET ]
> >> | isearch-mode-end-hook is a variable defined in `isearch.el'.
> >> | Its value is nil
> >> |
> >> |
> >> | Documentation:
> >> | Function(s) to call after terminating an incremental search.
> >> | When these functions are called, `isearch-mode-end-hook-quit'
> >> | is non-nil if the user quit the search.
> >> |
> >> | [back]
> >> `----
>
> >> --
> >> Kevin Rodgers
> >> Denver, Colorado, USA
>
> > Thanks for the answer,
> > I knew that hooks, these hook are only in the end of the search.
> > I need a hook each time a new search is found (each time pressing ctrl
> > +s in isearch mode).
> > Is it possbile?
>
> Try after-advising isearch-search and check isearch-success.
>
> --
> Kevin Rodgers
> Denver, Colorado, USA- Hide quoted text -
>
> - Show quoted text -
Thanks a lot
I have succeed in other way , but i will try this also.
here is my solution:
(defun tl-isearch-start()
(if (eq major-mode 'specman-mode)
(add-hook 'post-command-hook 'specman-describe-context)))
(defun tl-isearch-end()
(if (eq major-mode 'specman-mode)
(remove-hook 'post-command-hook 'specman-describe-context)))
(add-hook 'isearch-mode-hook 'tl-isearch-start)
(add-hook 'isearch-mode-end-hook 'tl-isearch-end)
Thanks a lot for the help
^ permalink raw reply [flat|nested] 9+ messages in thread
* better search
2009-05-06 8:07 ` tomer
2009-05-06 14:52 ` Kevin Rodgers
[not found] ` <mailman.6751.1241621587.31690.help-gnu-emacs@gnu.org>
@ 2009-08-12 7:28 ` Maindoor
2009-08-12 15:30 ` Lennart Borgman
2 siblings, 1 reply; 9+ messages in thread
From: Maindoor @ 2009-08-12 7:28 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1679 bytes --]
Hi,
Is it possible in the viper package to make the search incremental ?
right now I have to press </> entire the "string" and press enter once
and press <n> or <shift-n> to search forward and backward.
Do we have a way where in I press </> and typing a string causes an
incremental search. When I find the instance I press enter. and
subsequent <n> or <shift-n> will search forward and backward.
This looks like a very basic sane request. I am sure folks would have
thought about this requirement. Is there a way out ?
Regards,
Maindoor.
--- On Wed, 5/6/09, tomer <tomer1levin@walla.co.il> wrote:
From: tomer <tomer1levin@walla.co.il>
Subject: Re: hook for search next
To: help-gnu-emacs@gnu.org
Date: Wednesday, May 6, 2009, 1:37 PM
On May 5, 3:40 pm, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:
> tomer wrote:
> > i want to print message after each search (ctrl-s) in search-minor
> > mode.Is it possilbe to hook for this purpose?
> > Is there other way other than hook?
> > it is very important.
>
> ,----[ C-h v isearch-mode-end-hook RET ]
> | isearch-mode-end-hook is a variable defined in `isearch.el'.
> | Its value is nil
> |
> |
> | Documentation:
> | Function(s) to call after terminating an incremental search.
> | When these functions are called, `isearch-mode-end-hook-quit'
> | is non-nil if the user quit the search.
> |
> | [back]
> `----
>
> --
> Kevin Rodgers
> Denver, Colorado, USA
Thanks for the answer,
I knew that hooks, these hook are only in the end of the search.
I need a hook each time a new search is found (each time pressing ctrl
+s in isearch mode).
Is it possbile?
[-- Attachment #2: Type: text/html, Size: 2293 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: better search
2009-08-12 7:28 ` better search Maindoor
@ 2009-08-12 15:30 ` Lennart Borgman
2009-08-13 5:57 ` Maindoor
2009-08-31 7:15 ` company-mode question Maindoor
0 siblings, 2 replies; 9+ messages in thread
From: Lennart Borgman @ 2009-08-12 15:30 UTC (permalink / raw)
To: Maindoor; +Cc: help-gnu-emacs
On Wed, Aug 12, 2009 at 9:28 AM, Maindoor<sanjeevfiles@yahoo.com> wrote:
> Hi,
> Is it possible in the viper package to make the search incremental ?
> right now I have to press </> entire the "string" and press enter once
> and press <n> or <shift-n> to search forward and backward.
>
> Do we have a way where in I press </> and typing a string causes an
> incremental search. When I find the instance I press enter. and
> subsequent <n> or <shift-n> will search forward and backward.
>
> This looks like a very basic sane request. I am sure folks would have
> thought about this requirement. Is there a way out ?
Personally I just use the normal Emacs isearch, ie C-s. It works very
well even when you are using Viper.
And I use / when I want to search vi style. I find it handy to have both.
You can of course rebind / in the vi mode keymap if you want too. Look
in viper-keym.el for the name of the keymaps.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: better search
2009-08-12 15:30 ` Lennart Borgman
@ 2009-08-13 5:57 ` Maindoor
2009-08-31 7:15 ` company-mode question Maindoor
1 sibling, 0 replies; 9+ messages in thread
From: Maindoor @ 2009-08-13 5:57 UTC (permalink / raw)
To: Lennart Borgman; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1479 bytes --]
Please see the todo section, that was what I'm looking for:
Incremental search with / and ?
http://common-lisp.net/project/vial/darcs/extended-viper/vimlike.el
If you can find some implementation that does that please let me know.
Regards,
Maindoor.
--- On Wed, 8/12/09, Lennart Borgman <lennart.borgman@gmail.com> wrote:
From: Lennart Borgman <lennart.borgman@gmail.com>
Subject: Re: better search
To: "Maindoor" <sanjeevfiles@yahoo.com>
Cc: help-gnu-emacs@gnu.org
Date: Wednesday, August 12, 2009, 9:00 PM
On Wed, Aug 12, 2009 at 9:28 AM, Maindoor<sanjeevfiles@yahoo.com> wrote:
> Hi,
> Is it possible in the viper package to make the search incremental ?
> right now I have to press </> entire the "string" and press enter once
> and press <n> or <shift-n> to search forward and backward.
>
> Do we have a way where in I press </> and typing a string causes an
> incremental search. When I find the instance I press enter. and
> subsequent <n> or <shift-n> will search forward and backward.
>
> This looks like a very basic sane request. I am sure folks would have
> thought about this requirement. Is there a way out ?
Personally I just use the normal Emacs isearch, ie C-s. It works very
well even when you are using Viper.
And I use / when I want to search vi style. I find it handy to have both.
You can of course rebind / in the vi mode keymap if you want too. Look
in viper-keym.el for the name of the keymaps.
[-- Attachment #2: Type: text/html, Size: 2027 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* company-mode question.
2009-08-12 15:30 ` Lennart Borgman
2009-08-13 5:57 ` Maindoor
@ 2009-08-31 7:15 ` Maindoor
1 sibling, 0 replies; 9+ messages in thread
From: Maindoor @ 2009-08-31 7:15 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: bugs
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
Hi,
Can you someone tell me how to use company-mode on GNU Emacs
for the linux kernel ?
I can't find the instructions anywhere on the net and the general
documentation doesn't help.
For example I created etags for the kernel and then opened up a
C file and started writing a function that should highlight the
fields in task_struct. But there is no popup. What am I doing wrong ?
But the example as shown in the demo works. The page can be found
here: http://nschum.de/src/emacs/company-mode/
Thanks,
Maindoor
[-- Attachment #2: Type: text/html, Size: 682 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-08-31 7:15 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-05 8:43 hook for search next tomer
2009-05-05 12:40 ` Kevin Rodgers
[not found] ` <mailman.6649.1241527217.31690.help-gnu-emacs@gnu.org>
2009-05-06 8:07 ` tomer
2009-05-06 14:52 ` Kevin Rodgers
[not found] ` <mailman.6751.1241621587.31690.help-gnu-emacs@gnu.org>
2009-05-07 6:47 ` tomer
2009-08-12 7:28 ` better search Maindoor
2009-08-12 15:30 ` Lennart Borgman
2009-08-13 5:57 ` Maindoor
2009-08-31 7:15 ` company-mode question Maindoor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).