Re: [LyX master] Now LyX correctly asks to retrieve non-existing file from GIT repo only if the file is actually registered in repo.

2013-04-06 Thread Pavel Sanda
Tommaso Cucinotta wrote: > On 07/04/13 00:35, Tommaso Cucinotta wrote: > >> when creating new file. > > > > How did u get such message ? Pls, detail. $ cd ~/devel-trees $ lyx-2.1/src/lyx CTRL+N > With the attached patch, the problem is fixed. > However, note that the problem was NOT due to my o

Re: Word wrapping problem

2013-04-06 Thread Scott Kostyshak
On Sat, Apr 6, 2013 at 9:30 PM, Lin Wei wrote: > > TO Richard Heck: > I didn't find RowMetrics.cpp. Thanks, though. > Hi Lin Wei, I know nothing about this, but maybe take a look at TextMetrics::computeRowMetrics? src/TextMetrics.cpp:void TextMetrics::computeRowMetrics(pit_type const pit, src/

Re: Word wrapping problem

2013-04-06 Thread Lin Wei
But...there is actually no RowMetrics.cpp.. On Sat, Apr 6, 2013 at 9:01 AM, Lin Wei wrote: > By the way, sorry for my late reply... > > > On Sat, Apr 6, 2013 at 8:35 AM, Lin Wei wrote: > >> Thanks a lot :) >> >> >> On Sat, Mar 30, 2013 at 11:04 PM, Richard Heck wrote: >> >>> On 03/30/201

Re: Regular expression for non-ascii chars, advanced search

2013-04-06 Thread Tommaso Cucinotta
On 06/04/13 20:04, Kornel Benko wrote: >> However, when the regexp contains non-ASCII chars, then it's misinterpreted >> in the text conversion. I suspect it's due to the fact that the regexp inset >> has been essentially derived from a math inset, so it's not expecting any >> non-ASCII stuff there

Re: [LyX master] Now LyX correctly asks to retrieve non-existing file from GIT repo only if the file is actually registered in repo.

2013-04-06 Thread Tommaso Cucinotta
On 07/04/13 00:35, Tommaso Cucinotta wrote: >> when creating new file. > > How did u get such message ? Pls, detail. Actually, I've seen it happening, but not when creating a new file. Rather, when opening an existing file NOT on git repo, but from a CWD WITHIN a GIT repo. Shortly, I think it's

Re: [LyX master] Now LyX correctly asks to retrieve non-existing file from GIT repo only if the file is actually registered in repo.

2013-04-06 Thread Tommaso Cucinotta
On 06/04/13 21:33, Pavel Sanda wrote: > Tommaso Cucinotta wrote: >> commit 26dd4d0c15b438543eaa9bab14cab748b3299bc9 >> Author: Tommaso Cucinotta >> Date: Sat Apr 6 16:12:06 2013 +0100 >> >> Now LyX correctly asks to retrieve non-existing file from GIT repo only >> if the file is actually re

Re: [LyX master] Now LyX correctly asks to retrieve non-existing file from GIT repo only if the file is actually registered in repo.

2013-04-06 Thread Pavel Sanda
Tommaso Cucinotta wrote: > commit 26dd4d0c15b438543eaa9bab14cab748b3299bc9 > Author: Tommaso Cucinotta > Date: Sat Apr 6 16:12:06 2013 +0100 > > Now LyX correctly asks to retrieve non-existing file from GIT repo only > if the file is actually registered in repo. > > See also discu

Re: Re: [PATCH] fix LuaTeX export of sk/Intro.lyx

2013-04-06 Thread Scott Kostyshak
On Sat, Apr 6, 2013 at 3:33 PM, Kornel Benko wrote: > Am Freitag, 5. April 2013 um 19:43:28, schrieb Guenter Milde > > >> On 2013-04-05, Scott Kostyshak wrote: > >> > >> > I cannot compile sk/Intro.lyx with LuaTeX. With the attached patch, I > >> > can compile. I do not think that the patch is co

Re: Re: [PATCH] fix LuaTeX export of sk/Intro.lyx

2013-04-06 Thread Kornel Benko
Am Freitag, 5. April 2013 um 19:43:28, schrieb Guenter Milde > On 2013-04-05, Scott Kostyshak wrote: > > > I cannot compile sk/Intro.lyx with LuaTeX. With the attached patch, I > > can compile. I do not think that the patch is correct (I'm guessing > > there's an underlying problem), but hopeful

Re: [PATCH] fix LuaTeX export of sk/Intro.lyx

2013-04-06 Thread Guenter Milde
On 2013-04-05, Scott Kostyshak wrote: > I cannot compile sk/Intro.lyx with LuaTeX. With the attached patch, I > can compile. I do not think that the patch is correct (I'm guessing > there's an underlying problem), but hopefully it leads someone to the > correct fix. ... > \begin_layout Section

Re: Python detection

2013-04-06 Thread Enrico Forestieri
On Sat, Apr 06, 2013 at 10:10:48AM -0700, Pavel Sanda wrote: > Enrico Forestieri wrote: > > 2) Every time Systemcall::startscript() is called with a command starting > >exactly as "python -tt", the "python" string is replaced with the name > >of the "good" python, e.g., "python -tt" -> "py

Re: Re: Regular expression for non-ascii chars, advanced search

2013-04-06 Thread Kornel Benko
Am Samstag, 6. April 2013 um 19:32:58, schrieb Tommaso Cucinotta > On 03/04/13 22:40, Kornel Benko wrote: > > I want to find (as regular expression) the string "použiť". In tex, it looks > > "použi\v{t}". > > But the searched string (as it is diplayed while filling the search form) > > it is > >

Anchor Crashes

2013-04-06 Thread Richard Heck
There have been several bugs recently (such as #8001) that involve failures somewhere to reset the anchor. Something like the attached would allow us to recover gracefully in release mode, while still asserting in development mode. Does this seems sensible? Does the way I've gotten around con

Re: Regular expression for non-ascii chars, advanced search

2013-04-06 Thread Tommaso Cucinotta
On 03/04/13 22:40, Kornel Benko wrote: > I want to find (as regular expression) the string "použiť". In tex, it looks > "použi\v{t}". > But the searched string (as it is diplayed while filling the search form) it > is > "\regexp{pou\check{z} it\mkern-5mu\mathchar19\endregexp{}}". Ok, I could repr

Re: Assertion when exporting on command line with missing user directory

2013-04-06 Thread Scott Kostyshak
On Sat, Apr 6, 2013 at 11:28 AM, Richard Heck wrote: > On 04/05/2013 11:31 PM, Scott Kostyshak wrote: >> >> Should LyX exit more gracefully here? >> >> $ lyx -e pdf2 Intro.lyx >> Missing user LyX directory >> >> You have specified a non-existent user LyX di

Re: Python detection

2013-04-06 Thread Pavel Sanda
Enrico Forestieri wrote: > 2) Every time Systemcall::startscript() is called with a command starting >exactly as "python -tt", the "python" string is replaced with the name >of the "good" python, e.g., "python -tt" -> "python2.6.8 -tt". Yep, but there are parts of code like preview machine

Horrible Assertion Failures: What To Do?

2013-04-06 Thread Richard Heck
Consider this function: TextMetrics & BufferView::textMetrics(Text const * t) { LASSERT(t, /**/); TextMetricsCache::iterator tmc_it = d->text_metrics_.find(t); if (tmc_it == d->text_metrics_.end()) { tmc_it = d->text_metrics_.insert( make_pair(t, TextMetrics(this

LASSERT Audting: Author.cpp

2013-04-06 Thread Richard Heck
I've been meaning for a while to look over the LASSERT statements, and make sure we are doing the right sort of thing in release mode. I have a question about these two in Author.cpp: void AuthorList::record(int id, Author const & a) { LASSERT(unsigned(id) < authors_.size(), /**/); a

Re: Assertion when exporting on command line with missing user directory

2013-04-06 Thread Richard Heck
On 04/05/2013 11:31 PM, Scott Kostyshak wrote: Should LyX exit more gracefully here? $ lyx -e pdf2 Intro.lyx Missing user LyX directory You have specified a non-existent user LyX directory, /home/scott/lyxbuilds/master/user-dir. It is needed to keep your

Re: GIT::findFile() fix

2013-04-06 Thread Tommaso Cucinotta
On 06/04/13 05:29, Pavel Sanda wrote: > Tommaso Cucinotta wrote: >> Does it seem ok ? > > Haven't tested but looks fine now. > Pavel > . > It's in: [26dd4d0c/lyxgit]. T.

Re: Python detection

2013-04-06 Thread Enrico Forestieri
On Fri, Apr 05, 2013 at 09:44:49PM -0700, Pavel Sanda wrote: > Enrico, > > what is the status of the python 2 detection you committed some time ago? > Is it just supposed to be fallback in order to avoid worst things or > is lyx supposed to work on systems with both 2.6 & 3.x pythons? It is supp

Re: [PATCH] configure.py: add 'mupdf' as a PDF viewer

2013-04-06 Thread Scott Kostyshak
On Sat, Apr 6, 2013 at 2:39 AM, Liviu Andronic wrote: > On Sat, Apr 6, 2013 at 3:46 AM, Scott Kostyshak wrote: >> Makes sense. Attached is a new patch. It puts it just in front of >> acrobat because I've seen posts that Acrobat can have problems with >> LyX. mupdf shares one of the problems with