On 2018-02-23, Scott Kostyshak wrote: > [-- Type: text/plain, Encoding: quoted-printable --]
> On Fri, Feb 23, 2018 at 09:42:07AM +0000, Jean-Marc Lasgouttes wrote: >> Le 12/01/2018 à 23:28, Scott Kostyshak a écrit : >> > I'm not sure what the desired behavior is. Perhaps if the selection >> > contains insets of a certain type (e.g. a float), the LFUN should just >> > abort with a relevant message in the message pain. Any other ideas on >> > what the desired behavior is? >> What refusing to do something if the selection is longer than, say, 50 >> paragraphs? We could count characters too, of course, but do we want to >> transform a full document to a docstring just to be able to decide that it >> is too long? > Is the problem the length or is the problem that the selection contains > insets of a type that have no natural conversion to math? Checking for insets that cannot be converted to math should also solve most real-life cases where this behaviour may matter. If it is not too costly or difficult to implement, I'd prefer this. Günter