Re: [LyX/master] Honor Update::SinglePar properly
On Tue, Feb 21, 2023 at 06:57:39PM +0100, Lorenzo Bertini wrote: > Il 21/02/23 17:01, Scott Kostyshak ha scritto: > > On Wed, Feb 20, 2019 at 02:37:03PM +0100, Jean-Marc Lasgouttes wrote: > > Found an instance that seems to be missing an update. > > > > Reproducing requires some fast typing. It is only 30% reproducible even > > after a shot of espresso, but 100% reproducible if I cheat with xdotool. > > > > To reproduce: > > > > 1. Open the attached document. > > 2. Place the cursor inside the empty math inset. > > 3. Very quickly type "\upsil". > > > > I get the attached screenshot. > > > > If you are on Linux with X, you can use the following instead of typing > > quickly: > > > > # enter this into a terminal window after opening > > missing-update-screenshot.png. > > sleep 5s && > > # Now switch to LyX and put the cursor in the math inset. > > xdotool type --clearmodifiers --delay 0 "\upsil" && > > xdotool key Tab > > > > Can anyone reproduce? > > > > Scott > > Since a couple years I found a very similar issue in master (that wasn't > there in 2.3). Trying to complete with TAB any math command very fast > produces that result. > > Note that this can be reproduced consistently only on my laptop, which is > quite old and slow; to reproduce on newer hardware you have to be really > fast, or it doesn't happen. Thanks! It is good to have another use case. Scott signature.asc Description: PGP signature -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: [LyX/master] Honor Update::SinglePar properly
Il 21/02/23 17:01, Scott Kostyshak ha scritto: On Wed, Feb 20, 2019 at 02:37:03PM +0100, Jean-Marc Lasgouttes wrote: Found an instance that seems to be missing an update. Reproducing requires some fast typing. It is only 30% reproducible even after a shot of espresso, but 100% reproducible if I cheat with xdotool. To reproduce: 1. Open the attached document. 2. Place the cursor inside the empty math inset. 3. Very quickly type "\upsil". I get the attached screenshot. If you are on Linux with X, you can use the following instead of typing quickly: # enter this into a terminal window after opening missing-update-screenshot.png. sleep 5s && # Now switch to LyX and put the cursor in the math inset. xdotool type --clearmodifiers --delay 0 "\upsil" && xdotool key Tab Can anyone reproduce? Scott Since a couple years I found a very similar issue in master (that wasn't there in 2.3). Trying to complete with TAB any math command very fast produces that result. Note that this can be reproduced consistently only on my laptop, which is quite old and slow; to reproduce on newer hardware you have to be really fast, or it doesn't happen. -- lorenzo-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: [LyX/master] Honor Update::SinglePar properly
Le 21/02/2023 à 18:08, Scott Kostyshak a écrit : Could you put that to trac, so that I can track it? Done: https://www.lyx.org/trac/ticket/12674 I the set milestone to 2.4.0 since it's a regression, but it is a very minor issue and I don't imagine many at all will come across it and even if they do, a simple keypress causes a repaint. So I do not think this is important for 2.4.0 (feel free to remove the milestone). You are too kind, thanks ;) JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: [LyX/master] Honor Update::SinglePar properly
On Tue, Feb 21, 2023 at 05:56:14PM +0100, Jean-Marc Lasgouttes wrote: > Le 21/02/2023 à 17:01, Scott Kostyshak a écrit : > > On Wed, Feb 20, 2019 at 02:37:03PM +0100, Jean-Marc Lasgouttes wrote: > > > commit 9bdc0dab31337fd6788d587127842eb3558881ae > > > Author: Jean-Marc Lasgouttes > > > Date: Wed Feb 20 12:01:44 2019 +0100 > > > > > > Honor Update::SinglePar properly > > > The SinglePar update flags has been a no-op for a long time without > > > naybody noticing. This means that the current paragraph was > > > always rebroken and redrawn, even when only moving the cursor around. > > > Now we only do that when Update::SinglePar has been specified. This > > > means that there may be cases where update will not be correct > > > anymore, because this flag has not been specified. These places will > > > have to be found and fixed. > > > Update PAINTING_ANALYSIS. > > > --- > > > > Found an instance that seems to be missing an update. > > > > Reproducing requires some fast typing. It is only 30% reproducible even > > after a shot of espresso, but 100% reproducible if I cheat with xdotool. > > A better way to reproduce is to set the inline completion delay to 2 seconds > (instead of the default 0.2s). > > It seems that bad things happen when using tab before the completion timer > triggers. Then Tab shows the missing "psilon" in gray (instead of replacing > everything by the right glyph). > > I don't like macro completion in math. I do not even understand how it works > :( > > Could you put that to trac, so that I can track it? Done: https://www.lyx.org/trac/ticket/12674 I the set milestone to 2.4.0 since it's a regression, but it is a very minor issue and I don't imagine many at all will come across it and even if they do, a simple keypress causes a repaint. So I do not think this is important for 2.4.0 (feel free to remove the milestone). Scott signature.asc Description: PGP signature -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: [LyX/master] Honor Update::SinglePar properly
Le 21/02/2023 à 17:01, Scott Kostyshak a écrit : On Wed, Feb 20, 2019 at 02:37:03PM +0100, Jean-Marc Lasgouttes wrote: commit 9bdc0dab31337fd6788d587127842eb3558881ae Author: Jean-Marc Lasgouttes Date: Wed Feb 20 12:01:44 2019 +0100 Honor Update::SinglePar properly The SinglePar update flags has been a no-op for a long time without naybody noticing. This means that the current paragraph was always rebroken and redrawn, even when only moving the cursor around. Now we only do that when Update::SinglePar has been specified. This means that there may be cases where update will not be correct anymore, because this flag has not been specified. These places will have to be found and fixed. Update PAINTING_ANALYSIS. --- Found an instance that seems to be missing an update. Reproducing requires some fast typing. It is only 30% reproducible even after a shot of espresso, but 100% reproducible if I cheat with xdotool. A better way to reproduce is to set the inline completion delay to 2 seconds (instead of the default 0.2s). It seems that bad things happen when using tab before the completion timer triggers. Then Tab shows the missing "psilon" in gray (instead of replacing everything by the right glyph). I don't like macro completion in math. I do not even understand how it works :( Could you put that to trac, so that I can track it? JMarc To reproduce: 1. Open the attached document. 2. Place the cursor inside the empty math inset. 3. Very quickly type "\upsil". I get the attached screenshot. If you are on Linux with X, you can use the following instead of typing quickly: # enter this into a terminal window after opening missing-update-screenshot.png. sleep 5s && # Now switch to LyX and put the cursor in the math inset. xdotool type --clearmodifiers --delay 0 "\upsil" && xdotool key Tab Can anyone reproduce? Scott -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: [LyX/master] Honor Update::SinglePar properly
On Wed, Feb 20, 2019 at 02:37:03PM +0100, Jean-Marc Lasgouttes wrote: > commit 9bdc0dab31337fd6788d587127842eb3558881ae > Author: Jean-Marc Lasgouttes > Date: Wed Feb 20 12:01:44 2019 +0100 > > Honor Update::SinglePar properly > > The SinglePar update flags has been a no-op for a long time without > naybody noticing. This means that the current paragraph was > always rebroken and redrawn, even when only moving the cursor around. > > Now we only do that when Update::SinglePar has been specified. This > means that there may be cases where update will not be correct > anymore, because this flag has not been specified. These places will > have to be found and fixed. > > Update PAINTING_ANALYSIS. > --- Found an instance that seems to be missing an update. Reproducing requires some fast typing. It is only 30% reproducible even after a shot of espresso, but 100% reproducible if I cheat with xdotool. To reproduce: 1. Open the attached document. 2. Place the cursor inside the empty math inset. 3. Very quickly type "\upsil". I get the attached screenshot. If you are on Linux with X, you can use the following instead of typing quickly: # enter this into a terminal window after opening missing-update-screenshot.png. sleep 5s && # Now switch to LyX and put the cursor in the math inset. xdotool type --clearmodifiers --delay 0 "\upsil" && xdotool key Tab Can anyone reproduce? Scott missing-update.23.lyx Description: application/lyx signature.asc Description: PGP signature -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Citation search issues
Am Dienstag, dem 21.02.2023 um 09:03 +0100 schrieb Pavel Sanda: > Yes, that was my backup plan. Somehow I was under the impression that > Customization manuals claim you can do that with the the macros I > cited. You might use that to reformat the list, but then you still need something like %abbrvnames:% to actually output the list. Theoretically you should be able to pass endlessly complex parsing strings, but this will soon get too messy I think. -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Citation search issues
On Tue, Feb 21, 2023 at 08:13:42AM +0100, Jürgen Spitzmüller wrote: > Am Dienstag, dem 21.02.2023 um 07:41 +0100 schrieb Pavel Sanda: > > Sorry, I was not precise. I meant only surname of the first author. > > We have no key for this purpose, as this is not used in any of the cite > formats we support. > > However, it strikes me sensible to assume that "et al." is not used in > the file string and strip it. Done now. Does this work for you? Yes, that was my backup plan. Somehow I was under the impression that Customization manuals claim you can do that with the the macros I cited. Thanks, Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel