jed-users mailing list

[2011 Date Index] [2011 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [Jed-users-l] [PATCH] save_buffer_to_file: Remove second question mark from prompt


On Di 18.Jan'11 at  2:07:25 +0100, Jörg Sommer wrote:
> The function jed_get_yes_no() already adds a question mark to the end of
> the prompt.

So why not remove it?

---
 src/ledit.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/ledit.c b/src/ledit.c
index 9a13d40..a742bbb 100644
--- a/src/ledit.c
+++ b/src/ledit.c
@@ -608,7 +608,7 @@ int jed_get_y_n (char *question)
    int ans;
    char *yn_quest;
 
-   if (NULL == (yn_quest = strcat_malloc (question, "? (y/n)")))
+   if (NULL == (yn_quest = strcat_malloc (question, " (y/n)")))
      return -1;
 
    ans = jed_get_mini_response (yn_quest);
@@ -745,7 +745,7 @@ int find_file_cmd (char *filestr)       /* filestr is const ! */ /*{{{*/
    if (NULL != (buf = find_file_buffer (dirfile)))
      {
 	if ((file_changed_on_disk (buf, dirfile) > 0)
-	    && (1 == jed_get_yes_no("File changed on disk.  Read from disk")))
+	    && (1 == jed_get_yes_no("File changed on disk.  Read from disk?")))
 	  {
 	     int n = (int) buf->linenum;
 	     mark_buffer_modified (buf, 0, 1);
@@ -1214,7 +1214,7 @@ int kill_buffer (void) /*{{{*/
 	Buffer *b = find_buffer(tmp);
 	if ((b != NULL) && (b->subprocess))
 	  {
-	     if (0 == jed_get_yes_no("Buffer has a subprocess attached.  Delete anyway"))
+	     if (0 == jed_get_yes_no("Buffer has a subprocess attached.  Delete anyway?"))
 	       {
 		  SLfree(tmp);
 		  return 0;
-- 
1.7.2.2.119.gf9c33

_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l

[2011 date index] [2011 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]