Revision: 1347
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1347&view=rev
Author: sheckley
Date: 2010-05-11 14:09:34 +0000 (Tue, 11 May 2010)
Log Message:
-----------
small comment clarification
Modified Paths:
--------------
trunk/geany-plugins/geanyinsertnum/src/insertnum.c
Modified: trunk/geany-plugins/geanyinsertnum/src/insertnum.c
===================================================================
--- trunk/geany-plugins/geanyinsertnum/src/insertnum.c 2010-05-11 00:46:46 UTC (rev 1346)
+++ trunk/geany-plugins/geanyinsertnum/src/insertnum.c 2010-05-11 14:09:34 UTC (rev 1347)
@@ -119,7 +119,7 @@
return scintilla_send_message(sci, SCI_POINTXFROMPOSITION, 0, position);
}
-/* these and sci_get_line_end_position() did not work for me in 0.18 */
+/* not #defined in 0.18 */
#define sci_get_pos_at_line_sel_start(sci, line) \
scintilla_send_message((sci), SCI_GETLINESELSTARTPOSITION, (line), 0)
#define sci_goto_pos(sci, position) \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1346
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1346&view=rev
Author: colombanw
Date: 2010-05-11 00:46:46 +0000 (Tue, 11 May 2010)
Log Message:
-----------
GeanyGenDoc: Make option saving more robust against corrupted conffile
Do not fail saving if the original file cannot be loaded, simply
overwrite with the new settings. This fixes configuration saving when
the configuration file does not exist or exists but is corrupted.
Modified Paths:
--------------
trunk/geanygendoc/src/ggd-options.c
Modified: trunk/geanygendoc/src/ggd-options.c
===================================================================
--- trunk/geanygendoc/src/ggd-options.c 2010-05-10 22:48:42 UTC (rev 1345)
+++ trunk/geanygendoc/src/ggd-options.c 2010-05-11 00:46:46 UTC (rev 1346)
@@ -602,20 +602,22 @@
{
gboolean success = FALSE;
GKeyFile *key_file;
+ gchar *data;
+ gsize data_length;
key_file = g_key_file_new ();
- if (g_key_file_load_from_file (key_file, filename,
- G_KEY_FILE_KEEP_COMMENTS |
- G_KEY_FILE_KEEP_TRANSLATIONS, error)) {
- gchar *data;
- gsize data_length;
-
- ggd_opt_group_write_to_key_file (group, key_file);
- data = g_key_file_to_data (key_file, &data_length, error);
- if (data) {
- if (g_file_set_contents (filename, data, data_length, error)) {
- success = TRUE;
- }
+ /* try to load the original file but blindly ignore errors because they are
+ * unlikely to be interesting (the file doesn't already exist, a syntax error
+ * because the file exists but is empty (yes, this throws a parse error),
+ * etc.) */
+ g_key_file_load_from_file (key_file, filename,
+ G_KEY_FILE_KEEP_COMMENTS |
+ G_KEY_FILE_KEEP_TRANSLATIONS, NULL);
+ ggd_opt_group_write_to_key_file (group, key_file);
+ data = g_key_file_to_data (key_file, &data_length, error);
+ if (data) {
+ if (g_file_set_contents (filename, data, data_length, error)) {
+ success = TRUE;
}
}
g_key_file_free (key_file);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1345
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1345&view=rev
Author: frlan
Date: 2010-05-10 22:48:42 +0000 (Mon, 10 May 2010)
Log Message:
-----------
GeanyLaTeX: glatex_insert_environment() now has some minimal logic to try to autodetect type of environment
Modified Paths:
--------------
trunk/geanylatex/src/latexenvironments.c
trunk/geanylatex/src/latexenvironments.h
Modified: trunk/geanylatex/src/latexenvironments.c
===================================================================
--- trunk/geanylatex/src/latexenvironments.c 2010-05-10 22:12:40 UTC (rev 1344)
+++ trunk/geanylatex/src/latexenvironments.c 2010-05-10 22:48:42 UTC (rev 1345)
@@ -58,6 +58,8 @@
"itemize"
};
+
+/* if type == -1 then we will try to autodetect the type */
void glatex_insert_environment(gchar *environment, gint type)
{
GeanyDocument *doc = NULL;
@@ -97,6 +99,21 @@
gchar *tmp = NULL;
static const GeanyIndentPrefs *indention_prefs = NULL;
+ if (type == -1)
+ {
+ gint i;
+
+ /* First, we check whether we have a known list over here
+ * an reset type to fit new value*/
+ for (i = 0; i < GLATEX_LIST_END; i++)
+ {
+ if (utils_str_equal(glatex_list_environments[i], environment) == TRUE)
+ {
+ type = GLATEX_ENVIRONMENT_TYPE_LIST;
+ break;
+ }
+ }
+ }
pos = sci_get_current_position(doc->editor->sci);
len = strlen(environment);
@@ -230,8 +247,7 @@
if (env_string != NULL)
{
- /* Introduce a check whether an enrivonent is a list */
- glatex_insert_environment(env_string, GLATEX_ENVIRONMENT_TYPE_NONE);
+ glatex_insert_environment(env_string, -1);
g_free(env_string);
}
}
Modified: trunk/geanylatex/src/latexenvironments.h
===================================================================
--- trunk/geanylatex/src/latexenvironments.h 2010-05-10 22:12:40 UTC (rev 1344)
+++ trunk/geanylatex/src/latexenvironments.h 2010-05-10 22:48:42 UTC (rev 1345)
@@ -37,7 +37,8 @@
enum {
GLATEX_LIST_DESCRIPTION = 0,
GLATEX_LIST_ENUMERATE,
- GLATEX_LIST_ITEMIZE
+ GLATEX_LIST_ITEMIZE,
+ GLATEX_LIST_END
};
enum {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1343
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1343&view=rev
Author: frlan
Date: 2010-05-10 22:08:39 +0000 (Mon, 10 May 2010)
Log Message:
-----------
GeanyLaTeX: Don't insert an extra \n as this is not wished in most cases
Modified Paths:
--------------
trunk/geanylatex/src/latexenvironments.c
Modified: trunk/geanylatex/src/latexenvironments.c
===================================================================
--- trunk/geanylatex/src/latexenvironments.c 2010-05-10 22:08:11 UTC (rev 1342)
+++ trunk/geanylatex/src/latexenvironments.c 2010-05-10 22:08:39 UTC (rev 1343)
@@ -128,7 +128,7 @@
indent = sci_get_line_indentation(doc->editor->sci,
sci_get_line_from_position(doc->editor->sci, pos));
- tmp = g_strdup_printf("\n\\end{%s}\n", environment);
+ tmp = g_strdup_printf("\n\\end{%s}", environment);
glatex_insert_string(tmp, FALSE);
prefs = editor_get_indent_prefs(doc->editor);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1340
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1340&view=rev
Author: eht16
Date: 2010-05-10 21:29:47 +0000 (Mon, 10 May 2010)
Log Message:
-----------
Add missing final newline
Modified Paths:
--------------
trunk/geany-plugins/addons/src/ao_blanklines.c
Modified: trunk/geany-plugins/addons/src/ao_blanklines.c
===================================================================
--- trunk/geany-plugins/addons/src/ao_blanklines.c 2010-05-10 17:49:29 UTC (rev 1339)
+++ trunk/geany-plugins/addons/src/ao_blanklines.c 2010-05-10 21:29:47 UTC (rev 1340)
@@ -89,4 +89,4 @@
{
if (enabled)
editor_strip_trailing_newlines(doc->editor);
-}
\ No newline at end of file
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1339
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1339&view=rev
Author: frlan
Date: 2010-05-10 17:49:29 +0000 (Mon, 10 May 2010)
Log Message:
-----------
GeanyLaTeX: Some update of documentation in terms of wording
Modified Paths:
--------------
trunk/geanylatex/doc/geanylatex.tex
Modified: trunk/geanylatex/doc/geanylatex.tex
===================================================================
--- trunk/geanylatex/doc/geanylatex.tex 2010-05-09 18:35:20 UTC (rev 1338)
+++ trunk/geanylatex/doc/geanylatex.tex 2010-05-10 17:49:29 UTC (rev 1339)
@@ -55,10 +55,10 @@
\begin{document}
-\dedication{\normalsize \textbf{Note:} Please note the document has been created on
-\today. If you are using devel version from SVN, please compile and check
-\texttt{doc/geanylatex.tex} from sources. Please check page \pageref
-{sec:compiling_of_documentation}, section \ref{sec:compiling_of_documentation} how to do so. }
+\dedication{\normalsize \textbf{Note:} Please note that this document has been created on
+\today. If you are using a devel version from SVN, please compile and check
+\texttt{doc/geanylatex.tex} from sources. Please check Page \pageref
+{sec:compiling_of_documentation}, Section \ref{sec:compiling_of_documentation} to see how to do this. }
\pagenumbering{Roman}
\maketitle
@@ -69,28 +69,25 @@
\pagenumbering{arabic}
\section{About the plugin}
-Geany\LaTeX{} is a little plugin to improve support of \LaTeX{} on Geany.
-It implements a couple of maybe useful functions:
+Geany\LaTeX{} is a little plugin to improve \LaTeX{} support in Geany.
+It implements a couple of hopefully useful functions:
\begin{itemize}
- \item Wizard to create new \LaTeX{} documents in a fast and easy way
+ \item A wizard to create new \LaTeX{} documents in a fast and easy way
with a bunch of templates available
- \item A front end for add labels \textbackslash label{} and
+ \item A front end for adding labels \textbackslash label{} and
references \textbackslash ref{} and \textbackslash pageref{}
- with getting suggestion from aux file of document
- \item A dialog helping inserting \texttt{\textbackslash{}usepackage\{\}}
- into head of document.
- \item Inserting special characters through menu
- \item Help entering the right fields for BibTeX entries by
- providing templates
- \item Easy inserting format patterns like \textbackslash texttt{}
- through menu
- \item Support on inserting environments by offering an dialog and
+ getting suggestions from the document's aux file
+ \item Insertion of special characters through the menu
+ \item Help on BibTeX entries by templates
+ \item Easy insertion of format patterns like \textbackslash texttt{}
+ through the menu
+ \item Support of environment insertion by offering an dialog and
recognising selections
\item Shortcuts for inserting \textbackslash item and
\textbackslash newline
- \item Toolbar with often used format options
- \item A couple of useful autocompletion functions during typing
+ \item Toolbar with frequently used format options
+ \item A couple of useful auto-completion functions during typing
\end{itemize}
\newpage
@@ -98,38 +95,38 @@
\subsection*{Since 0.4}
\begin{itemize}
- \item Introducing custom templates for \LaTeX-Wizard
- \item Adding a icon for \LaTeX-Wizard to toolbar
- \item Adding shortcuts for inserting common list environments
+ \item Introduced custom templates for \LaTeX-Wizard
+ \item Added a \LaTeX-Wizard icon to the toolbar
+ \item Added shortcuts for inserting common list environments
like \texttt{enumerate}, \texttt{itemize} and
\texttt{description}
- \item Some general bugfixes and improvments. As always, see
+ \item Some general bugfixes and improvements. As always, see the
ChangeLog or svn log.
- \item Switch to waf for building the plugin
- \item Move some \LaTeX{}-specific stuff out of Geany's core into the
- plugin. This is effecting e.g. this functions
+ \item Switched to waf for building the plugin
+ \item Moved some \LaTeX{}-specific stuff out of Geany's core into the
+ plugin. This affects features like
\begin{itemize}
\item Autocompletion of \texttt{\textbackslash{}end\{\}}
and \texttt{\textbackslash{}endgroup\{\}}
\end{itemize}
- \item Increasing dependency for plugin to Geany Plugin API v166
- \item Make inserting text for references configurable.
- \item Add an function to insert \textbackslash{}usepackage\{\} into
+ \item Proceeded to Geany Plugin API v166
+ \item Made reference insertion configurable.
+ \item Added an function to insert \textbackslash{}usepackage\{\} into
header of file
\item Automatic adding of \{\} after typing of \_{} and \symbol{94}
\end{itemize}
\subsection*{GeanyLaTeX{} 0.4 -- 2009-05-26}
\begin{itemize}
- \item Adding a toolbar with often used format commands
- \item Adding a configuration dialog to configure basic options
- of plugin
+ \item Added a toolbar with frequently used format commands
+ \item Added a configuration dialog to configure basic options
+ of the plugin
\item Moved documentation into a \TeX{}-document
\item Replace \textbackslash{}u-UTF-8 letters by octal coded
- chars to don't depend on C99 anymore.
+ chars to avoid dependency on C99.
\item Added a function to bulk replace special characters
inside marked text by keybinding
- \item Added a function to replace special characters on typing
+ \item Added a function for special characters substitution during typing
\end{itemize}
\newpage
@@ -148,26 +145,25 @@
And obviously, you will need to have Geany with its header files
installed (in case you are compiling the plugin on your own). If you
-have Geany installed from the sources, you should be ready to go. If
-you used a prepared package e.g. from your distribution you probably
-need to install an additional package, this might be called geany-dev
+installed Geany from the sources, you should be ready to go. If
+you used a prepared package, e.g. from your distribution, you probably
+need to install an additional package, probably called geany-dev
or geany-devel. Please note that in order to compile and use this
plugin, you need Geany 0.19svn or later (Geany Plugin API v184 or higher).
Furthermore you need, of course, a C compiler and python installed. The
-GNU version of the C compiler is recommended. Also there should be a
+GNU version of the C compiler is recommended. Furthermore, there should be a
working \LaTeX-environment on your System.
-There is no special need in RAM or CPU so the plugin should compile and
+There is no special need in RAM or CPU, so the plugin should compile and
run on all systems Geany is able to run.
\section{Installation}
\small{\textbf{Please note:} This section of documentation is only
-valid with standalone distribution of Geany\LaTeX{}. If you are
-planning to use the common geany-plugins project, please check
-documentation over there as there are some specialties you might
-like to know.}
+valid for the standalone distribution of Geany\LaTeX{}. If you are
+about to use the common geany-plugins project, please check their
+documentation as there are some specialties you might like to know.}
\subsection{Compiling the plugin itself}
Compiling and installing the code is done by the following three
@@ -194,7 +190,7 @@
authors\footnote{Contact data can be found at chapter \ref{contact},
page \pageref{contact}.}
-\subsection{Compiling of documentation}
+\subsection{Compiling the documentation}
\label{sec:compiling_of_documentation}
Sources of this documentation are available throught
\texttt{doc/geanylatex.tex} inside source tree. To compile the sources,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.