Re: [LyX/master] outline-up/down: preserve cursor's position

2020-03-11 Thread Scott Kostyshak
On Wed, Mar 11, 2020 at 07:56:02PM -0400, Scott Kostyshak wrote: > On Wed, Mar 11, 2020 at 10:16:10PM +0100, Jean-Marc Lasgouttes wrote: > > Le 11/03/2020 à 21:03, Scott Kostyshak a écrit : > > > I'm glad I'm not the only one that originally interpretted JMarc's > > > comment like that. I made a pa

Re: [LyX/master] outline-up/down: preserve cursor's position

2020-03-11 Thread Scott Kostyshak
On Wed, Mar 11, 2020 at 10:16:10PM +0100, Jean-Marc Lasgouttes wrote: > Le 11/03/2020 à 21:03, Scott Kostyshak a écrit : > > I'm glad I'm not the only one that originally interpretted JMarc's > > comment like that. I made a patch thinking he was hinting that I should > > combine the code to reduce

Re: [LyX/master] outline-up/down: preserve cursor's position

2020-03-11 Thread Jean-Marc Lasgouttes
Le 11/03/2020 à 21:03, Scott Kostyshak a écrit : I'm glad I'm not the only one that originally interpretted JMarc's comment like that. I made a patch thinking he was hinting that I should combine the code to reduce duplication. See attached. Now I realize that's not what he was trying to say, and

Re: [LyX/master] outline-up/down: preserve cursor's position

2020-03-11 Thread Richard Kimberly Heck
On 3/11/20 4:03 PM, Scott Kostyshak wrote: > On Wed, Mar 11, 2020 at 03:48:04PM -0400, Richard Kimberly Heck wrote: >> On 3/11/20 3:12 PM, Jean-Marc Lasgouttes wrote: >>> Le 11/03/2020 à 19:14, Scott Kostyshak a écrit : commit adb7283b69f5dddfabb8d807a432cd1e5e60b221 Author: Scott Kostysh

Re: [LyX/master] outline-up/down: preserve cursor's position

2020-03-11 Thread Scott Kostyshak
On Wed, Mar 11, 2020 at 03:48:04PM -0400, Richard Kimberly Heck wrote: > On 3/11/20 3:12 PM, Jean-Marc Lasgouttes wrote: > > Le 11/03/2020 à 19:14, Scott Kostyshak a écrit : > >> commit adb7283b69f5dddfabb8d807a432cd1e5e60b221 > >> Author: Scott Kostyshak > >> Date:   Wed Mar 11 14:18:33 2020 -040

Re: [LyX/master] outline-up/down: preserve cursor's position

2020-03-11 Thread Richard Kimberly Heck
On 3/11/20 3:12 PM, Jean-Marc Lasgouttes wrote: > Le 11/03/2020 à 19:14, Scott Kostyshak a écrit : >> commit adb7283b69f5dddfabb8d807a432cd1e5e60b221 >> Author: Scott Kostyshak >> Date:   Wed Mar 11 14:18:33 2020 -0400 >> >> outline-up/down: preserve cursor's position >> There is no

Re: [LyX/master] outline-up/down: preserve cursor's position

2020-03-11 Thread Jean-Marc Lasgouttes
Le 11/03/2020 à 19:14, Scott Kostyshak a écrit : commit adb7283b69f5dddfabb8d807a432cd1e5e60b221 Author: Scott Kostyshak Date: Wed Mar 11 14:18:33 2020 -0400 outline-up/down: preserve cursor's position There is no need to change the cursor's position to the beginning of

Re: [PATCH] outline-up/down: preserve cursor's position

2020-03-11 Thread Scott Kostyshak
On Wed, Mar 11, 2020 at 03:43:00PM +0100, Jean-Marc Lasgouttes wrote: > Le 10/03/2020 à 15:31, Scott Kostyshak a écrit : > > Perhaps the following be more reasonable and safer? > > > >setCursor(cur, cur.pit(), cur.pos()); > > > > The above seems safe since I'm just changing "0" to "cur.pos()"

Re: Path to extending Lyx to a full featured Jupyter-like IDE

2020-03-11 Thread Scott Kostyshak
On Wed, Mar 11, 2020 at 10:05:10AM -0400, Richard Kimberly Heck wrote: > On 3/11/20 9:45 AM, Scott Kostyshak wrote: > > On Tue, Mar 10, 2020 at 10:05:58PM -0400, Richard Kimberly Heck wrote: > >> On 3/10/20 9:24 PM, Allen Barker wrote: > >>> It would be nice to have an option to have the LFUN just

Re: Testing Release

2020-03-11 Thread Jean-Marc Lasgouttes
Le 04/03/2020 à 20:51, Richard Kimberly Heck a écrit : I really want testing of the program, so that we don't run into problems like we did with 2.3.4. With the small number of developers on Windows now, we just don't get serious testing of stable. I suppose we could start with lyx-devel and ask

Re: [PATCH] outline-up/down: preserve cursor's position

2020-03-11 Thread Jean-Marc Lasgouttes
Le 10/03/2020 à 15:31, Scott Kostyshak a écrit : Perhaps the following be more reasonable and safer? setCursor(cur, cur.pit(), cur.pos()); The above seems safe since I'm just changing "0" to "cur.pos()", and I don't see how the length of the paragraph can change after this operation. This

Re: Copy and paste formated cross-reference pastes LaTeX code

2020-03-11 Thread Daniel
On 2020-03-11 12:25, Kornel Benko wrote: Am Wed, 11 Mar 2020 12:07:35 +0100 schrieb Kornel Benko : Am Wed, 11 Mar 2020 11:30:39 +0100 schrieb Daniel : When I copy and paste the content of the attached document into some rich text supporting word processors, e.g. Libre Writer and MS Word, I ge

Re: Path to extending Lyx to a full featured Jupyter-like IDE

2020-03-11 Thread Richard Kimberly Heck
On 3/11/20 9:45 AM, Scott Kostyshak wrote: > On Tue, Mar 10, 2020 at 10:05:58PM -0400, Richard Kimberly Heck wrote: >> On 3/10/20 9:24 PM, Allen Barker wrote: >>> It would be nice to have an option to have the LFUN just return the >>> filename rather than running an editor process on the file. >>>

Re: [PATCH] outline-up/down: preserve cursor's position

2020-03-11 Thread Scott Kostyshak
On Tue, Mar 10, 2020 at 04:56:35PM +0100, Pavel Sanda wrote: > On Tue, Mar 10, 2020 at 10:31:10AM -0400, Scott Kostyshak wrote: > > your questions. I tried to test regarding Pavel's concern, but I don't > > know a situation when the depth changes; > > Actually you are likely right. The destructio

Re: Path to extending Lyx to a full featured Jupyter-like IDE

2020-03-11 Thread Scott Kostyshak
On Tue, Mar 10, 2020 at 10:05:58PM -0400, Richard Kimberly Heck wrote: > On 3/10/20 9:24 PM, Allen Barker wrote: > > It would be nice to have an option to have the LFUN just return the > > filename rather than running an editor process on the file. > > Sometimes users might want to edit the inset t

Re: Copy and paste formated cross-reference pastes LaTeX code

2020-03-11 Thread Kornel Benko
Am Wed, 11 Mar 2020 12:07:35 +0100 schrieb Kornel Benko : > Am Wed, 11 Mar 2020 11:30:39 +0100 > schrieb Daniel : > > > When I copy and paste the content of the attached document into some > > rich text supporting word processors, e.g. Libre Writer and MS Word, I > > get some LaTeX code ahead o

Re: Copy and paste formated cross-reference pastes LaTeX code

2020-03-11 Thread Kornel Benko
Am Wed, 11 Mar 2020 11:30:39 +0100 schrieb Daniel : > When I copy and paste the content of the attached document into some > rich text supporting word processors, e.g. Libre Writer and MS Word, I > get some LaTeX code ahead of what I would have expected to be pasted: > > \AtBeginDocument{\provi

Copy and paste formated cross-reference pastes LaTeX code

2020-03-11 Thread Daniel
When I copy and paste the content of the attached document into some rich text supporting word processors, e.g. Libre Writer and MS Word, I get some LaTeX code ahead of what I would have expected to be pasted: \AtBeginDocument{\providecommand\secref[1]{\ref{sec:#1}}} However, in some other wor