aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2015-08-09 16:21:05 -0700
committerPaul Eggert2015-08-09 16:23:06 -0700
commit6a45e72052498e082f7f67345daaff5596cbd812 (patch)
treea3a9c0adfb27c3616cbaa44642996b5181d0b5ed /src
parente8b9b8c063df241707143623f4a0e2d37cb2d18b (diff)
downloademacs-6a45e72052498e082f7f67345daaff5596cbd812.tar.gz
emacs-6a45e72052498e082f7f67345daaff5596cbd812.zip
Fix some minor quoting issues with grave accent
* src/dispnew.c (add_window_display_history) [GLYPH_DEBUG]: Remove redundant quotes. * src/doc.c (uLSQM, uRSQM): New macros. * src/doc.c (Fsubstitute_command_keys): * src/syntax.c (Finternal_describe_syntax_value): Follow the user preference for quotes rather than hardcoding the ‘grave’ style. * src/regex.c (PUSH_FAILURE_POINT, POP_FAILURE_POINT) (re_match_2_internal) [DEBUG]: In debugging output, quote C strings with "...", not `...'.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c2
-rw-r--r--src/doc.c9
-rw-r--r--src/regex.c14
-rw-r--r--src/syntax.c4
4 files changed, 18 insertions, 11 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 7833fe3d01c..18afe50dd9b 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -177,7 +177,7 @@ add_window_display_history (struct window *w, const char *msg, bool paused_p)
177 ++history_idx; 177 ++history_idx;
178 178
179 snprintf (buf, sizeof redisplay_history[0].trace, 179 snprintf (buf, sizeof redisplay_history[0].trace,
180 "%"pMu": window %p (`%s')%s\n%s", 180 "%"pMu": window %p (%s)%s\n%s",
181 history_tick++, 181 history_tick++,
182 ptr, 182 ptr,
183 ((BUFFERP (w->contents) 183 ((BUFFERP (w->contents)
diff --git a/src/doc.c b/src/doc.c
index 36619e1142e..a079cd27493 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -695,6 +695,8 @@ enum
695 }; 695 };
696static unsigned char const LSQM[] = { uLSQM0, uLSQM1, uLSQM2 }; 696static unsigned char const LSQM[] = { uLSQM0, uLSQM1, uLSQM2 };
697static unsigned char const RSQM[] = { uRSQM0, uRSQM1, uRSQM2 }; 697static unsigned char const RSQM[] = { uRSQM0, uRSQM1, uRSQM2 };
698#define uLSQM "\xE2\x80\x98"
699#define uRSQM "\xE2\x80\x99"
698 700
699DEFUN ("substitute-command-keys", Fsubstitute_command_keys, 701DEFUN ("substitute-command-keys", Fsubstitute_command_keys,
700 Ssubstitute_command_keys, 1, 1, 0, 702 Ssubstitute_command_keys, 1, 1, 0,
@@ -921,11 +923,14 @@ Otherwise, return a new string. */)
921 if (NILP (tem)) 923 if (NILP (tem))
922 { 924 {
923 name = Fsymbol_name (name); 925 name = Fsymbol_name (name);
924 insert_string ("\nUses keymap `"); 926 insert1 (Fsubstitute_command_keys
927 (build_string ("\nUses keymap "uLSQM)));
925 insert_from_string (name, 0, 0, 928 insert_from_string (name, 0, 0,
926 SCHARS (name), 929 SCHARS (name),
927 SBYTES (name), 1); 930 SBYTES (name), 1);
928 insert_string ("', which is not currently defined.\n"); 931 insert1 (Fsubstitute_command_keys
932 (build_string
933 (uRSQM", which is not currently defined.\n")));
929 if (start[-1] == '<') keymap = Qnil; 934 if (start[-1] == '<') keymap = Qnil;
930 } 935 }
931 else if (start[-1] == '<') 936 else if (start[-1] == '<')
diff --git a/src/regex.c b/src/regex.c
index 38c5e350541..dcf286454b3 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -1544,9 +1544,9 @@ do { \
1544 DEBUG_PRINT (" Push frame index: %zd\n", fail_stack.frame); \ 1544 DEBUG_PRINT (" Push frame index: %zd\n", fail_stack.frame); \
1545 PUSH_FAILURE_INT (fail_stack.frame); \ 1545 PUSH_FAILURE_INT (fail_stack.frame); \
1546 \ 1546 \
1547 DEBUG_PRINT (" Push string %p: `", string_place); \ 1547 DEBUG_PRINT (" Push string %p: \"", string_place); \
1548 DEBUG_PRINT_DOUBLE_STRING (string_place, string1, size1, string2, size2);\ 1548 DEBUG_PRINT_DOUBLE_STRING (string_place, string1, size1, string2, size2);\
1549 DEBUG_PRINT ("'\n"); \ 1549 DEBUG_PRINT ("\"\n"); \
1550 PUSH_FAILURE_POINTER (string_place); \ 1550 PUSH_FAILURE_POINTER (string_place); \
1551 \ 1551 \
1552 DEBUG_PRINT (" Push pattern %p: ", pattern); \ 1552 DEBUG_PRINT (" Push pattern %p: ", pattern); \
@@ -1598,9 +1598,9 @@ do { \
1598 on_failure_keep_string_jump opcode, and we want to throw away the \ 1598 on_failure_keep_string_jump opcode, and we want to throw away the \
1599 saved NULL, thus retaining our current position in the string. */ \ 1599 saved NULL, thus retaining our current position in the string. */ \
1600 str = POP_FAILURE_POINTER (); \ 1600 str = POP_FAILURE_POINTER (); \
1601 DEBUG_PRINT (" Popping string %p: `", str); \ 1601 DEBUG_PRINT (" Popping string %p: \"", str); \
1602 DEBUG_PRINT_DOUBLE_STRING (str, string1, size1, string2, size2); \ 1602 DEBUG_PRINT_DOUBLE_STRING (str, string1, size1, string2, size2); \
1603 DEBUG_PRINT ("'\n"); \ 1603 DEBUG_PRINT ("\"\n"); \
1604 \ 1604 \
1605 fail_stack.frame = POP_FAILURE_INT (); \ 1605 fail_stack.frame = POP_FAILURE_INT (); \
1606 DEBUG_PRINT (" Popping frame index: %zd\n", fail_stack.frame); \ 1606 DEBUG_PRINT (" Popping frame index: %zd\n", fail_stack.frame); \
@@ -5127,9 +5127,9 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1,
5127 5127
5128 DEBUG_PRINT ("The compiled pattern is: "); 5128 DEBUG_PRINT ("The compiled pattern is: ");
5129 DEBUG_PRINT_COMPILED_PATTERN (bufp, p, pend); 5129 DEBUG_PRINT_COMPILED_PATTERN (bufp, p, pend);
5130 DEBUG_PRINT ("The string to match is: `"); 5130 DEBUG_PRINT ("The string to match is: \"");
5131 DEBUG_PRINT_DOUBLE_STRING (d, string1, size1, string2, size2); 5131 DEBUG_PRINT_DOUBLE_STRING (d, string1, size1, string2, size2);
5132 DEBUG_PRINT ("'\n"); 5132 DEBUG_PRINT ("\"\n");
5133 5133
5134 /* This loops over pattern commands. It exits by returning from the 5134 /* This loops over pattern commands. It exits by returning from the
5135 function if the match is complete, or it drops through if the match 5135 function if the match is complete, or it drops through if the match
@@ -5435,7 +5435,7 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1,
5435 && buf_ch == '\000')) 5435 && buf_ch == '\000'))
5436 goto fail; 5436 goto fail;
5437 5437
5438 DEBUG_PRINT (" Matched `%d'.\n", *d); 5438 DEBUG_PRINT (" Matched \"%d\".\n", *d);
5439 d += buf_charlen; 5439 d += buf_charlen;
5440 } 5440 }
5441 break; 5441 break;
diff --git a/src/syntax.c b/src/syntax.c
index 0d8b08c01b6..d45936b2b28 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1333,7 +1333,9 @@ DEFUN ("internal-describe-syntax-value", Finternal_describe_syntax_value,
1333 insert_string (" (nestable)"); 1333 insert_string (" (nestable)");
1334 1334
1335 if (prefix) 1335 if (prefix)
1336 insert_string (",\n\t is a prefix character for `backward-prefix-chars'"); 1336 insert1 (Fsubstitute_command_keys
1337 (build_string
1338 (",\n\t is a prefix character for `backward-prefix-chars'")));
1337 1339
1338 return syntax; 1340 return syntax;
1339} 1341}