lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev LYEdit.c patch


From: Ismael Cordeiro
Subject: lynx-dev LYEdit.c patch
Date: Mon, 22 Feb 1999 10:09:49 -0500 (EST)

> 1999-02-16 (2.8.2dev.17)
>
> * the editor's cursor is now positioned on the same line in the edit file,
>   as it was on when the editor was invoked (relative to the beginning of
>   the TEXTAREA). At least for those editors that lynx knows support
>   initial positioning (emacs, vi, pico, jove, and jed for non-VMS
>   platforms; sedt for VMS) - KED

With this patch lynx will know that joe and its variants support initial
positioning:

*** lynx2-8-2/src/LYEdit.c.ori  Wed Feb 17 09:29:33 1999
--- lynx2-8-2/src/LYEdit.c      Mon Feb 22 09:16:38 1999
***************
*** 22,36 ****
  #else
      return (strstr(editor, "emacs") || strstr(editor, "vi") ||
        strstr(editor, "pico") || strstr(editor, "jove") ||
!       strstr(editor, "jed"));
  #endif
  }
  
  /*
!  *  In edit mode invoke either emacs, vi, pico, jove, jed sedt or the
!  *  default editor to display and edit the current file.
!  *  For emacs, vi, pico, jove and jed, Lynx will open the file to the
!  *  same line that the screen cursor is on when editing is invoked.
   *  Returns FALSE if file is uneditable.
   */
  PUBLIC int edit_current_file ARGS3(
--- 22,40 ----
  #else
      return (strstr(editor, "emacs") || strstr(editor, "vi") ||
        strstr(editor, "pico") || strstr(editor, "jove") ||
!       strstr(editor, "jed") || strstr(editor, "joe") ||
!       strstr(editor, "jstar") || strstr(editor, "jmacs") ||
!       strstr(editor, "rjoe") || strstr(editor, "jpico"));
  #endif
  }
  
  /*
!  *  In edit mode invoke either emacs, vi, pico, jove, jed, joe, jstar,
!  *  jmacs, rjoe, jpico, sedt or the default editor to display and edit the
!  *  current file.
!  *  For emacs, vi, pico, jove, jed, joe, jstar, jmacs, rjoe and jpico, Lynx
!  *  will open the file to the same line that the screen cursor is on (or
!  *  close...) when editing is invoked.
   *  Returns FALSE if file is uneditable.
   */
  PUBLIC int edit_current_file ARGS3(

Ismael
-- 

       +--------------------------------------------------------------+
       | ISMAEL CORDEIRO            | mailto:address@hidden      |
       | Production sound mixer     | http://www.ismael.cordeiro.com/ |
       | Montréal - Québec - Canada | ftp://ftp.cam.org/users/ismael/ |
       +--------------------------------------------------------------+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]