[patch #6249] Improvement usability of "Goto line"/"Goto address" dialogs

Andrew Borodin INVALID.NOREPLY at gnu.org
Mon Oct 29 07:30:54 UTC 2007


URL:
  <http://savannah.gnu.org/patch/?6249>

                 Summary: Improvement usability of "Goto line"/"Goto address"
dialogs
                 Project: GNU Midnight Commander
            Submitted by: a_borodin
            Submitted on: Понедельник 29.10.2007 at 07:30
                Category: Viewer
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

In editor, the "Goto line" dialog is called by M-l key command. In viewer,
"Goto line"/"Goto address" dialog is called by F5 key command. I propose to
add M-l key combination as alias of F5 one in viewer. Patch is attached.

In editor, the input line of "Goto line" dialog is initialized by prevous
typed value. In viewer, doesn't. Attached patch provides the initialization of
input line.

Changelog:

* src/view.c: Removed unnecessary #include directives.
(view_offset_to_coord): Check pointers of returned values.
(view_moveto_bol): Eliminate unused variable.
(view_moveto_eol): Likewise.
(view_moveto_line_cmd): Input line of "Goto line" dialog is
initilized by previous typed value. Small optimization.
(view_moveto_addr_cmd): Input line of "Goto Address" dialog is
initilized by previous typed value. Small optimization.
(view_handle_key): Added M-l as alias of F5 to call the
"Goto Line"/"Goto address" command (like in mcedit).
doc/mc.1.in: Added Alt-l to mcview key descriptions.
doc/es/mc.1.in: Likewise.
doc/hu/mc.1.in: Likewise.
doc/it/mc.1.in: Likewise.
doc/pl/mc.1.in: Likewise.
doc/ru/mc.1.in: Likewise.
doc/sr/mc.1.in: Likewise.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Понедельник 29.10.2007 at 07:30  Name:
mc-20071027-view-moveto.patch  Size: 7kB   By: a_borodin

<http://savannah.gnu.org/patch/download.php?file_id=14241>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?6249>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




More information about the mc-devel mailing list