Re: Help with LFUN_WORD_REPLACE

2009-09-05 Thread EditorJack

Esteemed LyXers:

Let me try this again. Help  LyX Functions notes the following:

---
LFUN_WORD_REPLACE 

Action: Replace a string in the document.  

Syntax: word-replace [DATA] 

Params: DATA: data is of the form search
   replace
   casesensitive matchword all forward  

Origin Andre, Jan 7 2004 
---

Both search and replace are followed by a newline character--the one you
get if you press CTRL + ENTER in LyX. But I can't for the life of me figure
out how to get that character into the minibuffer or into a command sequence
in stdtoolbars.inc in my user directory.

Really, how does one use that particular LFun (LFUN_WORD_REPLACE) at all?
Under what circumstances *could* it be used if not in the minibuffer or in a
command sequence?

Thanks for *any* help. I really appreciate it.

Best wishes,
Jack Lyon
The Editorium
http://www.editorium.com

-- 
View this message in context: 
http://n2.nabble.com/Help-with-LFUN-WORD-REPLACE-tp3556023p3590316.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Help with LFUN_WORD_REPLACE

2009-09-05 Thread Vincent van Ravesteijn

EditorJack schreef:

Esteemed LyXers:

Let me try this again. Help  LyX Functions notes the following:

---
LFUN_WORD_REPLACE 

Action: Replace a string in the document.  

Syntax: word-replace [DATA] 


Params: DATA: data is of the form search
   replace
   casesensitive matchword all forward  

Origin Andre, Jan 7 2004 
---


Both search and replace are followed by a newline character--the one you
get if you press CTRL + ENTER in LyX. But I can't for the life of me figure
out how to get that character into the minibuffer or into a command sequence
in stdtoolbars.inc in my user directory.

Really, how does one use that particular LFun (LFUN_WORD_REPLACE) at all?
Under what circumstances *could* it be used if not in the minibuffer or in a
command sequence?

Thanks for *any* help. I really appreciate it.

  

I thought I already answered this last time.

You can't use it, unless you use some trick.

Vincent



Re: Help with LFUN_WORD_REPLACE

2009-09-05 Thread Vincent van Ravesteijn



Really, how does one use that particular LFun (LFUN_WORD_REPLACE) at all?
Under what circumstances *could* it be used if not in the minibuffer or in a
command sequence?
  


To elaborate a bit, the LFUNs are in principle for internal use. That 
is, to communicate between the frontend (dialogs, menus) and the LyX 
core. The LFUN_WORD_REPLACE is used by the Find  Replace dialog to send 
the query to the core.


I guess that the design of the parameters of this LFUN is made like 
this, because the newline is one thing you can't enter in the Find  
Replace dialog, and you can thus split the find and replace strings from 
each other. However, the fact that you can't enter this in the Find  
Replace dialog is, also means that you can't enter it in the command 
buffer.


Vincent


Re: Help with LFUN_WORD_REPLACE

2009-09-05 Thread EditorJack

Esteemed LyXers:

Let me try this again. Help  LyX Functions notes the following:

---
LFUN_WORD_REPLACE 

Action: Replace a string in the document.  

Syntax: word-replace [DATA] 

Params: DATA: data is of the form search
   replace
   casesensitive matchword all forward  

Origin Andre, Jan 7 2004 
---

Both search and replace are followed by a newline character--the one you
get if you press CTRL + ENTER in LyX. But I can't for the life of me figure
out how to get that character into the minibuffer or into a command sequence
in stdtoolbars.inc in my user directory.

Really, how does one use that particular LFun (LFUN_WORD_REPLACE) at all?
Under what circumstances *could* it be used if not in the minibuffer or in a
command sequence?

Thanks for *any* help. I really appreciate it.

Best wishes,
Jack Lyon
The Editorium
http://www.editorium.com

-- 
View this message in context: 
http://n2.nabble.com/Help-with-LFUN-WORD-REPLACE-tp3556023p3590316.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Help with LFUN_WORD_REPLACE

2009-09-05 Thread Vincent van Ravesteijn

EditorJack schreef:

Esteemed LyXers:

Let me try this again. Help  LyX Functions notes the following:

---
LFUN_WORD_REPLACE 

Action: Replace a string in the document.  

Syntax: word-replace [DATA] 


Params: DATA: data is of the form search
   replace
   casesensitive matchword all forward  

Origin Andre, Jan 7 2004 
---


Both search and replace are followed by a newline character--the one you
get if you press CTRL + ENTER in LyX. But I can't for the life of me figure
out how to get that character into the minibuffer or into a command sequence
in stdtoolbars.inc in my user directory.

Really, how does one use that particular LFun (LFUN_WORD_REPLACE) at all?
Under what circumstances *could* it be used if not in the minibuffer or in a
command sequence?

Thanks for *any* help. I really appreciate it.

  

I thought I already answered this last time.

You can't use it, unless you use some trick.

Vincent



Re: Help with LFUN_WORD_REPLACE

2009-09-05 Thread Vincent van Ravesteijn



Really, how does one use that particular LFun (LFUN_WORD_REPLACE) at all?
Under what circumstances *could* it be used if not in the minibuffer or in a
command sequence?
  


To elaborate a bit, the LFUNs are in principle for internal use. That 
is, to communicate between the frontend (dialogs, menus) and the LyX 
core. The LFUN_WORD_REPLACE is used by the Find  Replace dialog to send 
the query to the core.


I guess that the design of the parameters of this LFUN is made like 
this, because the newline is one thing you can't enter in the Find  
Replace dialog, and you can thus split the find and replace strings from 
each other. However, the fact that you can't enter this in the Find  
Replace dialog is, also means that you can't enter it in the command 
buffer.


Vincent


Re: Help with LFUN_WORD_REPLACE

2009-09-05 Thread EditorJack

Esteemed LyXers:

Let me try this again. Help > LyX Functions notes the following:

---
LFUN_WORD_REPLACE 

Action: Replace a string in the document.  

Syntax: word-replace [] 

Params: : data is of the form "
   
  "  

Origin Andre, Jan 7 2004 
---

Both  and  are followed by a newline character--the one you
get if you press CTRL + ENTER in LyX. But I can't for the life of me figure
out how to get that character into the minibuffer or into a command sequence
in stdtoolbars.inc in my user directory.

Really, how does one use that particular LFun (LFUN_WORD_REPLACE) at all?
Under what circumstances *could* it be used if not in the minibuffer or in a
command sequence?

Thanks for *any* help. I really appreciate it.

Best wishes,
Jack Lyon
The Editorium
http://www.editorium.com

-- 
View this message in context: 
http://n2.nabble.com/Help-with-LFUN-WORD-REPLACE-tp3556023p3590316.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Help with LFUN_WORD_REPLACE

2009-09-05 Thread Vincent van Ravesteijn

EditorJack schreef:

Esteemed LyXers:

Let me try this again. Help > LyX Functions notes the following:

---
LFUN_WORD_REPLACE 

Action: Replace a string in the document.  

Syntax: word-replace [] 


Params: : data is of the form "
   
  "  

Origin Andre, Jan 7 2004 
---


Both  and  are followed by a newline character--the one you
get if you press CTRL + ENTER in LyX. But I can't for the life of me figure
out how to get that character into the minibuffer or into a command sequence
in stdtoolbars.inc in my user directory.

Really, how does one use that particular LFun (LFUN_WORD_REPLACE) at all?
Under what circumstances *could* it be used if not in the minibuffer or in a
command sequence?

Thanks for *any* help. I really appreciate it.

  

I thought I already answered this last time.

You can't use it, unless you use some trick.

Vincent



Re: Help with LFUN_WORD_REPLACE

2009-09-05 Thread Vincent van Ravesteijn



Really, how does one use that particular LFun (LFUN_WORD_REPLACE) at all?
Under what circumstances *could* it be used if not in the minibuffer or in a
command sequence?
  


To elaborate a bit, the LFUNs are in principle for internal use. That 
is, to communicate between the frontend (dialogs, menus) and the LyX 
core. The LFUN_WORD_REPLACE is used by the Find & Replace dialog to send 
the query to the core.


I guess that the design of the parameters of this LFUN is made like 
this, because the newline is one thing you can't enter in the Find & 
Replace dialog, and you can thus split the find and replace strings from 
each other. However, the fact that you can't enter this in the Find & 
Replace dialog is, also means that you can't enter it in the command 
buffer.


Vincent


Help with LFUN_WORD_REPLACE

2009-08-31 Thread EditorJack

Esteemed Fellow LyXers:

I can't get LFUN_WORD_REPLACE to work. Here's the syntax I'm using in the
minibuffer:

word-replace foo bar

No dice. I'd be grateful for any help you're able to provide.

Thanks!

Best wishes,
Jack Lyon
The Editorium
http://www.editorium.com
-- 
View this message in context: 
http://n2.nabble.com/Help-with-LFUN-WORD-REPLACE-tp3556023p3556023.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Help with LFUN_WORD_REPLACE

2009-08-31 Thread Vincent van Ravesteijn

EditorJack schreef:

Esteemed Fellow LyXers:

I can't get LFUN_WORD_REPLACE to work. Here's the syntax I'm using in the
minibuffer:

word-replace foo bar

No dice. I'd be grateful for any help you're able to provide.
  

I can think of two solutions:

1: command-sequence word-find-forward foo; self-insert bar

2: word-replace foonewlinebarnewline

In the command buffer: To get the newline there, you could do the 
following: copy a newline from the lyx main text (beware not to copy a 
space+newline), paste this into the command buffer, delete all but the 
first 'character' you pasted.


Ok, this is a bit a hack... but I can't think of something better.

Vincent


Re: Help with LFUN_WORD_REPLACE

2009-08-31 Thread Jack Lyon
Sorry. In my last message, I said Vincent was brilliant but neglected to 
say about what. I was thinking of this:


 word-replace foonewlinebarnewline

 In the command buffer: To get the newline there, you could do the 
following: copy a newline from the lyx main text (beware not to copy a 
space+newline), paste this into the command buffer, delete all but the 
first 'character' you pasted.


But it doesn't work for me. In fact, I can't seem to paste a newline 
into the minibuffer.


Thanks again.

Best,
Jack

Vincent van Ravesteijn wrote:

EditorJack schreef:

Esteemed Fellow LyXers:

I can't get LFUN_WORD_REPLACE to work. Here's the syntax I'm using in 
the

minibuffer:

word-replace foo bar

No dice. I'd be grateful for any help you're able to provide.
  

I can think of two solutions:

1: command-sequence word-find-forward foo; self-insert bar

2: word-replace foonewlinebarnewline

In the command buffer: To get the newline there, you could do the 
following: copy a newline from the lyx main text (beware not to copy a 
space+newline), paste this into the command buffer, delete all but the 
first 'character' you pasted.


Ok, this is a bit a hack... but I can't think of something better.

Vincent






Help with LFUN_WORD_REPLACE

2009-08-31 Thread EditorJack

Esteemed Fellow LyXers:

I can't get LFUN_WORD_REPLACE to work. Here's the syntax I'm using in the
minibuffer:

word-replace foo bar

No dice. I'd be grateful for any help you're able to provide.

Thanks!

Best wishes,
Jack Lyon
The Editorium
http://www.editorium.com
-- 
View this message in context: 
http://n2.nabble.com/Help-with-LFUN-WORD-REPLACE-tp3556023p3556023.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Help with LFUN_WORD_REPLACE

2009-08-31 Thread Vincent van Ravesteijn

EditorJack schreef:

Esteemed Fellow LyXers:

I can't get LFUN_WORD_REPLACE to work. Here's the syntax I'm using in the
minibuffer:

word-replace foo bar

No dice. I'd be grateful for any help you're able to provide.
  

I can think of two solutions:

1: command-sequence word-find-forward foo; self-insert bar

2: word-replace foonewlinebarnewline

In the command buffer: To get the newline there, you could do the 
following: copy a newline from the lyx main text (beware not to copy a 
space+newline), paste this into the command buffer, delete all but the 
first 'character' you pasted.


Ok, this is a bit a hack... but I can't think of something better.

Vincent


Re: Help with LFUN_WORD_REPLACE

2009-08-31 Thread Jack Lyon
Sorry. In my last message, I said Vincent was brilliant but neglected to 
say about what. I was thinking of this:


 word-replace foonewlinebarnewline

 In the command buffer: To get the newline there, you could do the 
following: copy a newline from the lyx main text (beware not to copy a 
space+newline), paste this into the command buffer, delete all but the 
first 'character' you pasted.


But it doesn't work for me. In fact, I can't seem to paste a newline 
into the minibuffer.


Thanks again.

Best,
Jack

Vincent van Ravesteijn wrote:

EditorJack schreef:

Esteemed Fellow LyXers:

I can't get LFUN_WORD_REPLACE to work. Here's the syntax I'm using in 
the

minibuffer:

word-replace foo bar

No dice. I'd be grateful for any help you're able to provide.
  

I can think of two solutions:

1: command-sequence word-find-forward foo; self-insert bar

2: word-replace foonewlinebarnewline

In the command buffer: To get the newline there, you could do the 
following: copy a newline from the lyx main text (beware not to copy a 
space+newline), paste this into the command buffer, delete all but the 
first 'character' you pasted.


Ok, this is a bit a hack... but I can't think of something better.

Vincent






Help with LFUN_WORD_REPLACE

2009-08-31 Thread EditorJack

Esteemed Fellow LyXers:

I can't get LFUN_WORD_REPLACE to work. Here's the syntax I'm using in the
minibuffer:

word-replace foo bar

No dice. I'd be grateful for any help you're able to provide.

Thanks!

Best wishes,
Jack Lyon
The Editorium
http://www.editorium.com
-- 
View this message in context: 
http://n2.nabble.com/Help-with-LFUN-WORD-REPLACE-tp3556023p3556023.html
Sent from the LyX - Users mailing list archive at Nabble.com.


Re: Help with LFUN_WORD_REPLACE

2009-08-31 Thread Vincent van Ravesteijn

EditorJack schreef:

Esteemed Fellow LyXers:

I can't get LFUN_WORD_REPLACE to work. Here's the syntax I'm using in the
minibuffer:

word-replace foo bar

No dice. I'd be grateful for any help you're able to provide.
  

I can think of two solutions:

1: "command-sequence word-find-forward foo; self-insert bar"

2: "word-replace foobar"

In the command buffer: To get the  there, you could do the 
following: copy a newline from the lyx main text (beware not to copy a 
space+newline), paste this into the command buffer, delete all but the 
first 'character' you pasted.


Ok, this is a bit a hack... but I can't think of something better.

Vincent


Re: Help with LFUN_WORD_REPLACE

2009-08-31 Thread Jack Lyon
Sorry. In my last message, I said Vincent was brilliant but neglected to 
say about what. I was thinking of this:


> "word-replace foobar"
>
> In the command buffer: To get the  there, you could do the 
following: copy a newline from the lyx main text (beware not to copy a 
space+newline), paste this into the command buffer, delete all but the 
first 'character' you pasted.


But it doesn't work for me. In fact, I can't seem to paste a newline 
into the minibuffer.


Thanks again.

Best,
Jack

Vincent van Ravesteijn wrote:

EditorJack schreef:

Esteemed Fellow LyXers:

I can't get LFUN_WORD_REPLACE to work. Here's the syntax I'm using in 
the

minibuffer:

word-replace foo bar

No dice. I'd be grateful for any help you're able to provide.
  

I can think of two solutions:

1: "command-sequence word-find-forward foo; self-insert bar"

2: "word-replace foobar"

In the command buffer: To get the  there, you could do the 
following: copy a newline from the lyx main text (beware not to copy a 
space+newline), paste this into the command buffer, delete all but the 
first 'character' you pasted.


Ok, this is a bit a hack... but I can't think of something better.

Vincent