]> granicus.if.org Git - mutt/commitdiff
IRIX fixes.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 26 Aug 1999 07:27:59 +0000 (07:27 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 26 Aug 1999 07:27:59 +0000 (07:27 +0000)
curs_main.c
keymap.c
pager.c
recvattach.c

index 3634caf5b355e04e276fdc54ae5796f933754046..fcf8364029d638ae39fefa67c1f75c30afc72358 100644 (file)
 #include <sys/stat.h>
 #include <errno.h>
 
-static const char No_mailbox_is_open[] = N_("No mailbox is open.");
-static const char There_are_no_messages[] = N_("There are no messages.");
-static const char Mailbox_is_read_only[] = N_("Mailbox is read-only.");
-static const char Function_not_permitted_in_attach_message_mode[] = N_("Function not permitted in attach-message mode.");
+static const char *No_mailbox_is_open = N_("No mailbox is open.");
+static const char *There_are_no_messages = N_("There are no messages.");
+static const char *Mailbox_is_read_only = N_("Mailbox is read-only.");
+static const char *Function_not_permitted_in_attach_message_mode = N_("Function not permitted in attach-message mode.");
 
 #define CHECK_MSGCOUNT if (!Context) \
        { \
index ed547bddabe9fb2225ee0ea0b43e7ad64c1971c4..da453d069b0a618f7920a8583307698e5d2b6976 100644 (file)
--- a/keymap.c
+++ b/keymap.c
@@ -584,6 +584,8 @@ void km_init (void)
   km_bindkey ("8", MENU_GENERIC, OP_JUMP);
   km_bindkey ("9", MENU_GENERIC, OP_JUMP);
 
+  km_bindkey ("<enter>", MENU_GENERIC, OP_GENERIC_SELECT_ENTRY);
+
   /* Miscellaneous extra bindings */
   
   km_bindkey (" ", MENU_MAIN, OP_DISPLAY_MESSAGE);
@@ -593,6 +595,8 @@ void km_init (void)
   km_bindkey ("K", MENU_MAIN, OP_PREV_ENTRY);
   km_bindkey ("x", MENU_MAIN, OP_EXIT);
 
+  km_bindkey ("<enter>", MENU_MAIN, OP_DISPLAY_MESSAGE);
+
   km_bindkey ("x", MENU_PAGER, OP_PAGER_EXIT);
   km_bindkey ("q", MENU_PAGER, OP_PAGER_EXIT);
   km_bindkey ("<backspace>", MENU_PAGER, OP_PREV_LINE);
@@ -614,7 +618,13 @@ void km_init (void)
   km_bindkey ("8", MENU_PAGER, OP_JUMP);
   km_bindkey ("9", MENU_PAGER, OP_JUMP);
 
+  km_bindkey ("<enter>", MENU_PAGER, OP_NEXT_LINE);
+  
   km_bindkey ("<return>", MENU_ALIAS, OP_TAG);
+  km_bindkey ("<enter>",  MENU_ALIAS, OP_TAG);
+
+  km_bindkey ("<enter>", MENU_ATTACH, OP_VIEW_ATTACH);
+  km_bindkey ("<enter>", MENU_COMPOSE, OP_VIEW_ATTACH);
 
   /* edit-to (default "t") hides generic tag-entry in Compose menu
      This will bind tag-entry to  "T" in the Compose menu */
diff --git a/pager.c b/pager.c
index d0f786a58bc04b95a955bb197c751d58b8f5f6b9..03bbb635db4bfbc6b0e337a726377f2fb2dd2f1e 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -51,9 +51,9 @@
 #define IsAttach(x) (x && (x)->bdy)
 #define IsHeader(x) (x && (x)->hdr)
 
-static const char Not_available_in_this_menu[] = N_("Not available in this menu.");
-static const char Mailbox_is_read_only[] = N_("Mailbox is read-only.");
-static const char Function_not_permitted_in_attach_message_mode[] = N_("Function not permitted in attach-message mode.");
+static const char *Not_available_in_this_menu = N_("Not available in this menu.");
+static const char *Mailbox_is_read_only = N_("Mailbox is read-only.");
+static const char *Function_not_permitted_in_attach_message_mode = N_("Function not permitted in attach-message mode.");
 
 #define CHECK_MODE(x)  if (!(x)) \
                        { \
index bf0a091c7595fb15584a2cd0cd1d2d05c002cc4b..20849075f3bf74858eb78154147e4870ce20ae1b 100644 (file)
@@ -44,7 +44,7 @@
 #include <string.h>
 #include <errno.h>
 
-static const char Mailbox_is_read_only[] = N_("Mailbox is read-only.");
+static const char *Mailbox_is_read_only = N_("Mailbox is read-only.");
 
 #define CHECK_READONLY if (Context->readonly) \
 {\