Several of the insets already store Buffer * buffer directly, this being 
passed to the inset through the constructor. If we do the same here and in 
insetref.[Ch], then NONE of the insets use current_view at all.

Shall I do this?

Angus

On Wed, 27 Sep 2000, Andre Poenitz wrote:
> The _only_ _two_ obstacles for batch export to any format without popping
> up the GUI are around line 297 and line 236 in insets/insetquotes.C the use
> of  current_view  to get the buffer's language
> current_view->buffer()->GetLanguage().
>
> If this is replaced by  "default", it works!
>
> Of course, "default" might not the right thing to use, so if anybody could
> help me to find the language of the inset without using "current_view", I'd
> be glad to prepare a patch that would add a feature I have been missing for
> years...
>
> Andre'
>
> PS: Maybe someone more knowledgable could check whether the explicit use of
> the buffer's language in these two places makes sense at all.

Reply via email to