* cosmetics
This commit is contained in:
@ -60,7 +60,8 @@ AC_ARG_ENABLE([mu4e],
|
|||||||
AS_HELP_STRING([--disable-mu4e],[Disable building mu4e]))
|
AS_HELP_STRING([--disable-mu4e],[Disable building mu4e]))
|
||||||
AS_IF([test "x$enable_mu4e" != "xno"], [
|
AS_IF([test "x$enable_mu4e" != "xno"], [
|
||||||
AM_PATH_LISPDIR
|
AM_PATH_LISPDIR
|
||||||
AS_IF([test "x$lispdir" != "xno"], [emacs_version="`$EMACS --version | head -1`"])
|
AS_IF([test "x$lispdir" != "xno"],
|
||||||
|
[emacs_version="`$EMACS --version | head -1`"])
|
||||||
AS_CASE([$emacs_version],[*23*|*24*|*25*],[build_mu4e=yes],
|
AS_CASE([$emacs_version],[*23*|*24*|*25*],[build_mu4e=yes],
|
||||||
[AC_WARN([emacs is too old to build mu4e (need emacs >= 23.x)])])
|
[AC_WARN([emacs is too old to build mu4e (need emacs >= 23.x)])])
|
||||||
])
|
])
|
||||||
@ -164,7 +165,7 @@ AC_SUBST(XAPIAN_LIBS)
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
# we set the set the version of the MuStore (Xapian database) layout
|
# we set the set the version of the MuStore (Xapian database) layout
|
||||||
# here; it will become part of the db name, so we can automatically
|
# here; it will become part of the db name, so we can automatically
|
||||||
# recreate the database when we incompatible have changes.
|
# recreate the database when we have incompatible changes.
|
||||||
#
|
#
|
||||||
# note that MU_STORE_SCHEMA_VERSION does not necessarily follow MU
|
# note that MU_STORE_SCHEMA_VERSION does not necessarily follow MU
|
||||||
# versioning, as we hopefully don't have updates for each version;
|
# versioning, as we hopefully don't have updates for each version;
|
||||||
|
|||||||
@ -748,9 +748,10 @@ mu_str_asciify_in_place (char *buf)
|
|||||||
|
|
||||||
g_return_val_if_fail (buf, NULL);
|
g_return_val_if_fail (buf, NULL);
|
||||||
|
|
||||||
for (c = buf; c && *c; ++c)
|
for (c = buf; c && *c; ++c) {
|
||||||
if (!isascii(*c))
|
if (!isascii(*c) || *c < ' ')
|
||||||
c[0] = '.';
|
*c = '.';
|
||||||
|
}
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
@ -765,7 +766,7 @@ mu_str_utf8ify (const char *buf)
|
|||||||
utf8 = g_strdup (buf);
|
utf8 = g_strdup (buf);
|
||||||
|
|
||||||
if (!g_utf8_validate (buf, -1, NULL))
|
if (!g_utf8_validate (buf, -1, NULL))
|
||||||
mu_str_asciify_in_place (utf8);
|
mu_str_asciify_in_place (utf8);
|
||||||
|
|
||||||
return utf8;
|
return utf8;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -201,7 +201,7 @@ char* mu_str_escape_c_literal (const gchar* str, gboolean in_quotes)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* turn a string into plain ascii by replacing each non-ascii
|
* turn a string into plain ascii by replacing each non-ascii
|
||||||
* character with a dot ('.'). replacement is done in-place.
|
* character with a dot ('.'). Replacement is done in-place.
|
||||||
*
|
*
|
||||||
* @param buf a buffer to asciify
|
* @param buf a buffer to asciify
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user