]> granicus.if.org Git - neomutt/commitdiff
eliminate asymmetric quotes
authorRichard Russon <rich@flatcap.org>
Fri, 8 Feb 2019 19:46:05 +0000 (19:46 +0000)
committerRichard Russon <rich@flatcap.org>
Fri, 8 Feb 2019 20:17:37 +0000 (20:17 +0000)
17 files changed:
color.c
copy.c
email/address.c
email/envelope.c
email/parse.c
index.c
init.h
keymap.c
mbox/mbox.c
muttlib.c
mx.c
ncrypt/crypt_gpgme.c
options.h
pattern.c
postpone.c
send.c
sendlib.c

diff --git a/color.c b/color.c
index e505963fa1873572d106f4af9476cb5df740146f..89fc61d1ec496551f49c1b6f611142aea0c6cc67 100644 (file)
--- a/color.c
+++ b/color.c
@@ -726,7 +726,7 @@ static enum CommandResult add_pattern(struct ColorLineHead *top, const char *s,
                                       struct Buffer *err, bool is_index, int match)
 {
   /* is_index used to store compiled pattern
-   * only for `index' color object
+   * only for 'index' color object
    * when called from mutt_parse_color() */
 
   struct ColorLine *tmp = NULL;
diff --git a/copy.c b/copy.c
index 0830c04ca1f4fadced96b09068207b2738dd8e96..e68db3a4be3ccf161aa20ad695706a2400e6df2f 100644 (file)
--- a/copy.c
+++ b/copy.c
@@ -395,7 +395,7 @@ int mutt_copy_hdr(FILE *in, FILE *out, LOFF_T off_start, LOFF_T off_end,
  * * #CH_NONEWLINE    don't output a newline after the header
  * * #CH_NOSTATUS     ignore the Status: and X-Status:
  * * #CH_PREFIX       quote header with $indent_string
- * * #CH_REORDER      output header in order specified by `hdr_order'
+ * * #CH_REORDER      output header in order specified by 'hdr_order'
  * * #CH_TXTPLAIN     generate text/plain MIME headers [hack alert.]
  * * #CH_UPDATE       write new Status: and X-Status:
  * * #CH_UPDATE_LEN   write new Content-Length: and Lines:
index a85380c317fa744ee375f1ef88bfd027519cc55d..bc1ebd2c66cb9ae617271fbfc6f78c31f21ac000 100644 (file)
@@ -1174,7 +1174,7 @@ size_t mutt_addr_write(char *buf, size_t buflen, struct Address *addr, bool disp
     mutt_addr_write_single(pbuf, buflen + 1, addr, display);
 
     /* this should be safe since we always have at least 1 char passed into
-       the above call, which means `pbuf' should always be nul terminated */
+       the above call, which means 'pbuf' should always be nul terminated */
     len = mutt_str_strlen(pbuf);
     pbuf += len;
     buflen -= len;
index 8faf81820d9c0e90eceda8eddbeaff7686d5eee0..bd05306a20de46b659bbcbc27d3e76420647e15d 100644 (file)
@@ -211,8 +211,8 @@ void mutt_env_to_local(struct Envelope *env)
   mutt_addrlist_to_local(env->mail_followup_to);
 }
 
-/* Note that `a' in the `env->a' expression is macro argument, not
- * "real" name of an `env' compound member.  Real name will be substituted
+/* Note that 'a' in the 'env->a' expression is macro argument, not
+ * "real" name of an 'env' compound member.  Real name will be substituted
  * by preprocessor at the macro-expansion time.
  * Note that #a escapes and double quotes the argument.
  */
index f3d3083396b9f628d1af814eb53c5099f402e0e2..eecf67a690181b16d5012da57b5bfe414ba64b59 100644 (file)
@@ -180,7 +180,7 @@ static void parse_parameters(struct ParameterList *param, const char *s)
       {
         new->value = mutt_str_strdup(buffer);
 
-        mutt_debug(2, "parse_parameter: '%s' = `%s'\n",
+        mutt_debug(2, "parse_parameter: '%s' = '%s'\n",
                    new->attribute ? new->attribute : "", new->value ? new->value : "");
 
         /* Add this parameter to the list */
@@ -767,7 +767,7 @@ int mutt_rfc822_parse_line(struct Envelope *env, struct Email *e, char *line,
 #endif
 
     case 'o':
-      /* field `Organization:' saves only for pager! */
+      /* field 'Organization:' saves only for pager! */
       if (mutt_str_strcasecmp(line + 1, "rganization") == 0)
       {
         if (!env->organization && (mutt_str_strcasecmp(p, "unknown") != 0))
diff --git a/index.c b/index.c
index 4b562fe3053c4b9c960731b7e0aa95a79733ec34..b69bc50813ad4cd06fe2d7b3ceadd513786068a1 100644 (file)
--- a/index.c
+++ b/index.c
@@ -1545,7 +1545,7 @@ int mutt_index_menu(void)
         break;
 
         /* --------------------------------------------------------------------
-         * `index' specific commands
+         * 'index' specific commands
          */
 
       case OP_MAIN_DELETE_PATTERN:
diff --git a/init.h b/init.h
index a8ea7c7d45275dcdfb406113fa1b09d6d63c9eb6..85ea505e2770fd5fcdc43bc350d7440f55341013 100644 (file)
--- a/init.h
+++ b/init.h
@@ -368,8 +368,8 @@ struct ConfigDef MuttVars[] = {
   ** .pp
   ** When \fIset\fP, Mutt assumes the presence of a List-Post header
   ** means the recipient is subscribed to the list.  Unless the mailing list
-  ** is in the ``unsubscribe'' or ``unlist'' lists, it will be added
-  ** to the ``$subscribe'' list.  Parsing and checking these things slows
+  ** is in the "unsubscribe" or "unlist" lists, it will be added
+  ** to the "$subscribe" list.  Parsing and checking these things slows
   ** header reading down, so this option is disabled by default.
   */
   { "auto_tag",         DT_BOOL, R_NONE, &AutoTag, false },
@@ -3270,10 +3270,10 @@ struct ConfigDef MuttVars[] = {
   /*
   ** .pp
   ** This variable provides a toggle. When active, the From: header will be
-  ** extracted from the current mail's `X-Original-To:' header. This setting
+  ** extracted from the current mail's 'X-Original-To:' header. This setting
   ** does not have precedence over "$reverse_realname".
   ** .pp
-  ** Assuming `fast_reply' is disabled, this option will prompt the user with a
+  ** Assuming 'fast_reply' is disabled, this option will prompt the user with a
   ** prefilled From: header.
   */
   { "resolve",          DT_BOOL, R_NONE, &Resolve, true },
@@ -3539,12 +3539,12 @@ struct ConfigDef MuttVars[] = {
   ** This contains the list of characters which you would like to treat
   ** as folder separators for displaying paths in the sidebar.
   ** .pp
-  ** Local mail is often arranged in directories: `dir1/dir2/mailbox'.
+  ** Local mail is often arranged in directories: 'dir1/dir2/mailbox'.
   ** .ts
   ** set sidebar_delim_chars='/'
   ** .te
   ** .pp
-  ** IMAP mailboxes are often named: `folder1.folder2.mailbox'.
+  ** IMAP mailboxes are often named: 'folder1.folder2.mailbox'.
   ** .ts
   ** set sidebar_delim_chars='.'
   ** .te
index 0871d112f99b5505fce1f5d690295eabe50a6ae4..61d2d5ad3deeb3a60d32954b9a8b3eb4c1f68313 100644 (file)
--- a/keymap.c
+++ b/keymap.c
@@ -1268,7 +1268,7 @@ enum CommandResult mutt_parse_bind(struct Buffer *buf, struct Buffer *s,
   {
     for (int i = 0; i < nummenus; ++i)
     {
-      km_bindkey(key, menu[i], OP_NULL); /* the `unbind' command */
+      km_bindkey(key, menu[i], OP_NULL); /* the 'unbind' command */
     }
   }
   else
index 36c8ea1ab6f01536b2a1ed1a456bd6e55146b64f..04a46d0f22f7b4463724517c58bbfada283d479a 100644 (file)
@@ -765,12 +765,12 @@ static int fseek_last_message(FILE *f)
   fseek(f, 0, SEEK_END);
   pos = ftello(f);
 
-  /* Set `bytes_read' to the size of the last, probably partial, buffer;
-   * 0 < `bytes_read' <= `BUFSIZ'.  */
+  /* Set 'bytes_read' to the size of the last, probably partial, buffer;
+   * 0 < 'bytes_read' <= 'BUFSIZ'.  */
   bytes_read = pos % BUFSIZ;
   if (bytes_read == 0)
     bytes_read = BUFSIZ;
-  /* Make `pos' a multiple of `BUFSIZ' (0 if the file is short), so that all
+  /* Make 'pos' a multiple of 'BUFSIZ' (0 if the file is short), so that all
    * reads will be on block boundaries, which might increase efficiency.  */
   while ((pos -= bytes_read) >= 0)
   {
@@ -780,7 +780,7 @@ static int fseek_last_message(FILE *f)
     bytes_read = fread(buffer, sizeof(char), bytes_read, f);
     if (bytes_read == 0)
       return -1;
-    /* 'i' is Index into `buffer' for scanning.  */
+    /* 'i' is Index into 'buffer' for scanning.  */
     for (int i = bytes_read; i >= 0; i--)
     {
       if (mutt_str_startswith(buffer + i, "\n\nFrom ", CASE_MATCH))
@@ -1277,9 +1277,9 @@ static int mbox_mbox_sync(struct Mailbox *m, int *index_hint)
         }
       }
 
-      /* save the new offset for this message.  we add `offset' because the
+      /* save the new offset for this message.  we add 'offset' because the
        * temporary file only contains saved message which are located after
-       * `offset' in the real mailbox
+       * 'offset' in the real mailbox
        */
       new_offset[i - first].hdr = ftello(fp) + offset;
 
index 81d33317cd1c3b0091e9dd6a5b9623ea7950461b..a5838a4913a25bc70e84f97d1f7903800eecbd2e 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -1042,7 +1042,7 @@ void mutt_expando_format(char *buf, size_t buflen, size_t col, int cols, const c
           break; /* bad format */
         src++;
 
-        /* eat the `if' part of the string */
+        /* eat the 'if' part of the string */
         cp = if_str;
         count = 0;
         lrbalance = 1;
@@ -1079,7 +1079,7 @@ void mutt_expando_format(char *buf, size_t buflen, size_t col, int cols, const c
         }
         *cp = 0;
 
-        /* eat the `else' part of the string (optional) */
+        /* eat the 'else' part of the string (optional) */
         if (*src == '&')
           src++; /* skip the & */
         cp = else_str;
@@ -1120,7 +1120,7 @@ void mutt_expando_format(char *buf, size_t buflen, size_t col, int cols, const c
         if (!*src)
           break; /* bad format */
 
-        src++; /* move past the trailing `>' (formerly '?') */
+        src++; /* move past the trailing '>' (formerly '?') */
       }
 
       /* handle generic cases first */
@@ -1508,7 +1508,7 @@ void mutt_encode_path(char *buf, size_t buflen, const char *src)
 {
   char *p = mutt_str_strdup(src);
   int rc = mutt_ch_convert_string(&p, Charset, "us-ascii", 0);
-  /* `src' may be NULL, such as when called from the pop3 driver. */
+  /* 'src' may be NULL, such as when called from the pop3 driver. */
   size_t len = mutt_str_strfcpy(buf, (rc == 0) ? p : src, buflen);
 
   /* convert the path to POSIX "Portable Filename Character Set" */
diff --git a/mx.c b/mx.c
index ebf39ff14cd836d6c71c820c4460401e16f758a5..9ce6f89e0872467b96ad6b2bac90b258ab3c7635 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -328,7 +328,7 @@ struct Context *mx_mbox_open(struct Mailbox *m, int flags)
 
   mutt_make_label_hash(m);
 
-  /* if the user has a `push' command in their .neomuttrc, or in a folder-hook,
+  /* if the user has a 'push' command in their .neomuttrc, or in a folder-hook,
    * it will cause the progress messages not to be displayed because
    * mutt_refresh() will think we are in the middle of a macro.  so set a
    * flag to indicate that we should really refresh the screen.
index 5132e3cbc79f09385bf4bf54d95946e4fc877f2e..8fbf4f7d14c9e1488049389f4e85953832d623f1 100644 (file)
@@ -1053,7 +1053,7 @@ static gpgme_key_t *create_recipient_set(const char *keylist, gpgme_protocol_t p
         rset[rset_n++] = key;
       else
       {
-        mutt_error(_("error adding recipient `%s': %s\n"), buf, gpgme_strerror(err));
+        mutt_error(_("error adding recipient '%s': %s\n"), buf, gpgme_strerror(err));
         rset[rset_n] = NULL;
         free_recipient_set(&rset);
         gpgme_release(context);
index 1d081e26c01a3ca0a05a9f795694039469ae845f..2d26f12c6ff9c355b74fdd441d9ec42e730fbbc3 100644 (file)
--- a/options.h
+++ b/options.h
@@ -36,7 +36,7 @@ WHERE bool OptIgnoreMacroEvents;  /**< (pseudo) don't process macro/push/exec ev
 WHERE bool OptKeepQuiet;           /**< (pseudo) shut up the message and refresh functions while we are executing an external program.  */
 WHERE bool OptMenuCaller;          /**< (pseudo) tell menu to give caller a take */
 WHERE bool OptMsgErr;              /**< (pseudo) used by mutt_error/mutt_message */
-WHERE bool OptNeedRescore;         /**< (pseudo) set when the `score' command is used */
+WHERE bool OptNeedRescore;         /**< (pseudo) set when the 'score' command is used */
 WHERE bool OptNeedResort;          /**< (pseudo) used to force a re-sort */
 #ifdef USE_NNTP
 WHERE bool OptNews;                 /**< (pseudo) used to change reader mode */
index 84592fca8fbcbaf3ac13b86231a1f3613c6fa782..de51bb6026198faf5ca613fd2d6056c0ca194a12 100644 (file)
--- a/pattern.c
+++ b/pattern.c
@@ -590,7 +590,7 @@ static bool eat_date(struct Pattern *pat, struct Buffer *s, struct Buffer *err)
   }
 
   memset(&min, 0, sizeof(min));
-  /* the `0' time is Jan 1, 1970 UTC, so in order to prevent a negative time
+  /* the '0' time is Jan 1, 1970 UTC, so in order to prevent a negative time
      when doing timezone conversion, we use Jan 2, 1970 UTC as the base
      here */
   min.tm_mday = 2;
index d43629a48e8560d23180b9f86c3c345e41ffe385..9d44e9be87c73b0733a88ca23fb6a92728a7e396 100644 (file)
@@ -280,7 +280,7 @@ static struct Email *select_msg(struct Context *ctx)
  * mutt_get_postponed - Recall a postponed message
  * @param[in]  ctx     Context info, used when recalling a message to which we reply
  * @param[in]  hdr     envelope/attachment info for recalled message
- * @param[out] cur     if message was a reply, `cur' is set to the message which `hdr' is in reply to
+ * @param[out] cur     if message was a reply, 'cur' is set to the message which 'hdr' is in reply to
  * @param[in]  fcc     fcc for the recalled message
  * @param[in]  fcclen  max length of fcc
  * @retval -1         Error/no messages
diff --git a/send.c b/send.c
index a2b0baf4e977fe3cc95872c838d2c607b28007d1..225f59b823e9203c60dc965e28ce1f2214f57b22 100644 (file)
--- a/send.c
+++ b/send.c
@@ -1890,7 +1890,7 @@ int ci_send_message(int flags, struct Email *msg, const char *tempfile,
   /* this is handled here so that the user can match ~f in send-hook */
   if (cur && ReverseName && !(flags & (SEND_POSTPONED | SEND_RESEND)))
   {
-    /* we shouldn't have to worry about freeing `msg->env->from' before
+    /* we shouldn't have to worry about freeing 'msg->env->from' before
      * setting it here since this code will only execute when doing some
      * sort of reply.  the pointer will only be set when using the -H command
      * line option.
@@ -1911,14 +1911,14 @@ int ci_send_message(int flags, struct Email *msg, const char *tempfile,
   }
   if (cur && ReplyWithXorig && !(flags & (SEND_POSTPONED | SEND_RESEND | SEND_FORWARD)))
   {
-    /* We shouldn't have to worry about freeing `msg->env->from' before
+    /* We shouldn't have to worry about freeing 'msg->env->from' before
      * setting it here since this code will only execute when doing some
      * sort of reply. The pointer will only be set when using the -H command
      * line option.
      *
-     * If there is already a from address recorded in `msg->env->from',
+     * If there is already a from address recorded in 'msg->env->from',
      * then it theoretically comes from ReverseName handling, and we don't use
-     * the `X-Orig-To header'.
+     * the 'X-Orig-To header'.
      */
     if (cur->env->x_original_to && !msg->env->from)
     {
@@ -1962,7 +1962,7 @@ int ci_send_message(int flags, struct Email *msg, const char *tempfile,
     }
 
     /* the from address must be set here regardless of whether or not
-     * $use_from is set so that the `~P' (from you) operator in send-hook
+     * $use_from is set so that the '~P' (from you) operator in send-hook
      * patterns will work.  if $use_from is unset, the from address is killed
      * after send-hooks are evaluated */
 
index 9d7206aa1795ff0986f36686231790a31448e4d7..5d5ed5a898896054a4e63c67efd1587cfcb61ba9 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -1062,10 +1062,10 @@ struct Content *mutt_get_content_info(const char *fname, struct Body *b)
  * @param path Path to attachment
  * @retval num MIME type, e.g. #TYPE_IMAGE
  *
- * Given a file at `path`, see if there is a registered MIME type.
+ * Given a file at 'path', see if there is a registered MIME type.
  * Returns the major MIME type, and copies the subtype to "d".  First look
  * in a system mime.types if we can find one, then look for ~/.mime.types.
- * The longest match is used so that we can match `ps.gz' when `gz' also
+ * The longest match is used so that we can match 'ps.gz' when 'gz' also
  * exists.
  */
 int mutt_lookup_mime_type(struct Body *att, const char *path)
@@ -1894,7 +1894,7 @@ static int fold_one_header(FILE *fp, const char *tag, const char *value,
   {
     int fold = 0;
 
-    /* find the next word and place it in `buf'. it may start with
+    /* find the next word and place it in 'buf'. it may start with
      * whitespace we can fold before */
     const char *next = mutt_str_find_word(p);
     l = MIN(sizeof(buf) - 1, next - p);
@@ -2224,7 +2224,7 @@ int mutt_rfc822_write_header(FILE *fp, struct Envelope *env,
     fputs(mutt_date_make_date(buf, sizeof(buf)), fp);
 
   /* UseFrom is not consulted here so that we can still write a From:
-   * field if the user sets it with the `my_hdr' command
+   * field if the user sets it with the 'my_hdr' command
    */
   if (env->from && !privacy)
   {
@@ -3186,7 +3186,7 @@ int mutt_write_fcc(const char *path, struct Email *e, const char *msgid,
     stat(path, &st);
   }
 
-  e->read = !post; /* make sure to put it in the `cur' directory (maildir) */
+  e->read = !post; /* make sure to put it in the 'cur' directory (maildir) */
   onm_flags = MUTT_ADD_FROM;
   if (post)
     onm_flags |= MUTT_SET_DRAFT;