Commit Graph

729 Commits

Author SHA1 Message Date
Fumitoshi UKAI
96c21a2169 [w3m-dev 03558] long title is displayed over tab region
* display.c (redrawNLine): check l < 0
			use addnstr
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-11 15:03:06 +00:00
Fumitoshi UKAI
d6c90ea50f [w3m-dev 03554] Re: Undo/Redo
* doc/README.func (REDO): added
		(UNDO): added
* doc-jp/README.func (REDO): added
		(UNDO): added
* scripts/w3mhelp.cgi.in: (Page/Cursor motion): add undoPos, redoPos
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-11 02:57:30 +00:00
Fumitoshi UKAI
05b0496842 NEWS: func: REDO, UNDO
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-12-10 15:53:55 +00:00
Fumitoshi UKAI
7d71261e92 fix indent 2002-12-10 15:53:03 +00:00
Fumitoshi UKAI
4eb0a6fe3d [w3m-dev 03553] Undo/Redo
* fm.h (Buffer): add undo
	(BufferPos): added
* funcname.tab (REDO): added
		(UNDO): added
* main.c (save_buffer_position): added
	(main): save_buffer_position
	(resetPos): added
	(undoPos): added
	(redoPos): added
* proto.h (undoPos): added
	(redoPos): added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-10 15:51:14 +00:00
Fumitoshi UKAI
529b4cb63d [w3m-dev 03552] Re: link list
* menu.c (accesskey_menu): check hseq
	(list_menu): check hseq
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-10 15:41:31 +00:00
Fumitoshi UKAI
df0a52887b fix indent 2002-12-10 15:36:10 +00:00
Fumitoshi UKAI
b422f71d84 [w3m-dev 03551] Re: External URI loader
* file.c (loadGeneralFile): fix SCM_UNKNONWN
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-10 15:36:10 +00:00
Fumitoshi UKAI
a509f3133b NEWS: func: LIST, LIST_MENU, MOVE_LIST_MENU 2002-12-10 15:36:10 +00:00
Fumitoshi UKAI
945ebeab6f [w3m-dev 03549] link list
* anchor.c (addMultirowsImg): add a->slave
	(getAnchorText): arg AnchorList *al
	(link_list_panel): added
* funcname.tab (LIST): added
	(LIST_MENU): added
	(MOVE_LIST_MENU): added
* main.c (anchorMn): added
	(accessKey): use anchorMn()
	(listMn): added
	(movlistMn): added
	(linkLst): added
* map.c (searchMapList): not static
* menu.c (accesskey_menu): pass AnchorList to getAnchorText()
	(lmKeys): added
	(lmKeys2): added
	(nlmKeys): added
	(nlmKeys2): added
	(lmGoto): added
	(lmSelect): added
	(list_menu): added
* proto.h (linkLst): added
	(listMn): added
	(movlistMn): added
	(list_menu): added
	(searchMapList): added
	(getAnchorText): arg AnchorList *al
	(link_list_panel): added
* doc/README.func (LIST): added
	(LIST_MENU): added
	(MOVE_LIST_MENU): added
* doc-jp/README.func (LINK_MENU): fix message
	(LIST): added
	(LIST_MENU): added
	(MOVE_LIST_MENU): added
* scripts/w3mhelp.cgi.in (Page/Cursor motion): add movlistMn
	(Hyperlink operation): add linkLst linkMn
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-09 15:51:08 +00:00
Fumitoshi UKAI
4c89fd63aa [w3m-dev 03548] close anchor before <img align=...>
* file.c (process_img): use div_int
	(process_hr): use div_int
	(process_idattr): don't close_anchor
	(CLOSE_A): added
	(HTMLtagproc1): </p> close anchor
	  <dl>,<ul>,<ol>,<blockquote>,<li>,<dt>,<dd> close anchor
	  <noframes> close anchor
	  <pre> close anchor
	  <center> close anchor
	  <div> close anchor
	  add DIV_INT
	  <form> close anchor
* html.c (TagMAP): add div_int
* html.h (HTML_DIV_INT): added
	(HTML_N_DIV_INT): added
* tagtable.tab (div_int): added
		(/div_int): added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-09 15:40:34 +00:00
Fumitoshi UKAI
d2c8b1d1fc [w3m-dev 03544] Can't display "1&2" in table
* file.c (HTMLlineproc0): continue -> R_ST_NORMAL
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-09 15:33:33 +00:00
Fumitoshi UKAI
6a24638eee * file.c (loadGeneralFile): missing `{', fix indent for SCM_UNKNOWN
* main.c (set_buffer_environ): unused variables `prev_col'
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-12-09 15:32:16 +00:00
Fumitoshi UKAI
946089ac81 [w3m-dev 03543] External URI loader (Debian closes: Bug#169962)
* file.c (loadGeneralFile): rewrite SCM_UNKNOWN
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-09 15:27:43 +00:00
Fumitoshi UKAI
f9657e4719 [w3m-dev 03542] news support
* file.c (loadGeneralFile): NNTP as well as NEWS
* indep.c (url_unquote_char): check % hex hex
	(url_unquote): unquote except \0, \n, \r
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-09 15:24:00 +00:00
Fumitoshi UKAI
21b44ca99e [w3m-dev 03541] Re: W3M_LINE_NO / W3M_CURRENT_COLUMN
* main.c (goLine): check searchKeyData()
	(set_buffer_environ): W3M_CURRENT_*
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-09 15:21:12 +00:00
Fumitoshi UKAI
52a09ad262 fix indent 2002-12-08 14:23:44 +00:00
Fumitoshi UKAI
1d7704dc60 [w3m-dev 03536] <del>, <s>
* file.c (HTMLtagproc1): <s>..</s> is [S:...:S]
	(HTMLtagproc0): <del> will delete <table>
* fm.h (RB_S): added
* html.c (TagMAP): <s>,</s>
		move <internal>, </internal>
* html.h (HTML_S): added
	(HTML_N_S): added
	(HTML_INTERNAL): renumed
	(HTML_N_INTERNAL): ditto
	(MAX_HTMLTAG): add 2
* rc.c (CMT_DISP_INS_DEL): update
* table.c (feed_table_tag): add HTML_S, HTML_N_S
* table.h (TBLM_S): added
	(TBLM_ANCHOR): renum
* tagtable.tab: (strike, s): HTML_S
	(/strike, /s): HTML_N_S
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-06 16:49:18 +00:00
Fumitoshi UKAI
71fde51a9d [w3m-dev 03535] close anchor, quote <
* file.c (HTMLtagproc1): close_anchor
* frame.c (createFrameFile): quote <
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-06 16:37:42 +00:00
Fumitoshi UKAI
b49619c69c [w3m-dev 03534] cleanup file.c
* file.c (HTMLlineproc2body): cleanup
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-06 16:33:22 +00:00
Fumitoshi UKAI
b5825d1498 * version.c.in: w3m/0.3.2.2+cvs
* NEWS: 0.3.2.2
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-12-06 03:40:45 +00:00
Fumitoshi UKAI
5b608d8f0f [w3m-dev 03530] save history
* history.c (saveHistory): save tmpfile and rename
From: Takahashi Youichirou <nikuq@hk.airnet.ne.jp>
2002-12-05 16:34:33 +00:00
Fumitoshi UKAI
3ac3ce1893 fix indent 2002-12-05 16:33:06 +00:00
Fumitoshi UKAI
4defa86728 NEWS: func: ACCESSKEY, LINK_MENU
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-12-05 16:32:45 +00:00
Fumitoshi UKAI
d02a0802cd [w3m-dev 03529] Support of title, accesskey of anchor
* anchor.c (putAnchor): arg title, key
			initialize slave
	(registerHref): arg title, key
	(registerName): title = NULL, key = '\0'
	(registerForm): title = NULL, key = '\0'
	(_put_anchor_news): title = NULL, key = '\0'
	(_put_anchor_all): title = NULL, key = '\0'
	(addMultirowsImg): register title, accesskey
	(addMultirowsForm): title = NULL, key = '\0'
	(getAnchorText): added
* display.c (displayBuffer): show title if any
* file.c (set_breakpoint): use bcopy
	(back_to_breakpoint): use bcopy
	(flushline): s/anchor/anchor.url/
		     s/anchor_hseq/anchor.hseq/
		     s/anchor_target/anchor.target/
		     add anchor.*
	(close_effect0): s/anchor/anchor.url/
			s/anchor_hseq/anchor.hseq/
	(close_anchor): use bzero
	(process_img): ATTR_TITLE,
	(HTMLtagproc1): s/anchor/anchor.url/
			target, referer, title, accesskey, hseq
	(HTMLlineproc2body): ATTR_TITLE, ATTR_ACCESSKEY
	(init_henv): use bzero
* fm.h (Anchor): add title, accesskey, slave
	(Breakpoint): use Anchor
	(struct readbuffer): use Anchor
* funcname.tab (ACCESSKEY): added
	(LINK_MENU): added
* html.c (ALST_A): add ATTR_TITLE, ATTR_ACCESSKEY
	(ALST_IMG): add ATTR_TITLE
	(ALST_IMG_ALT): add ATTR_TITLE
	(AttrMAP): add accesskey, renum
* html.h (ATTR_ACCESSKEY): added
	(ATTR_*): renum 50->60
* main.c (linkMn): added
	(accessKey): added
* menu.c (LinkMenu): deleted
	(LinkV): deleted
	(initLinkMenu): deleted
	(lmGoURL): deleted
	(popupMenu): delete initLinkMenu()
	(initMenu): delete Link
	(link_menu): added
	(accesskey_menu): added
* proto.h (linkMn): added
	(link_menu): added
	(accessKey): added
	(accesskey_menu): added
	(putAnchor): arg title, key
	(registerHref): arg title, key
	(registerImg): arg title
	(getAnchorText): added
* doc/README.func (ACCESSKEY): added
		(LINK_MENU): added
* doc-jp/README.func (ACCESSKEY): added
		(LINK_MENU): added
* scripts/w3mhelp.cgi.in (Hyperlink operation): add linkMn accessKey
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-05 16:29:02 +00:00
Fumitoshi UKAI
dd4e9f38d1 [w3m-dev 03528] area without alt
* map.c (getCurrentMapLabel): when a->alt is empty
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-05 16:08:34 +00:00
Fumitoshi UKAI
543b6cffef [w3m-dev 03527] fix frame.c
* frame.c (createFrameFile): move need_reconstruct
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-05 16:04:00 +00:00
Fumitoshi UKAI
2fddcbd7ff [w3m-dev 03526] Re: fix doc*/README.func, w3mhelp.cgi.in
* scripts/w3mhelp.cgi.in: (load_keymap):
		always upcase ESC,SPC,TAB,DEL,UP,DOWN,RIGHT,LEFT
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-05 16:01:57 +00:00
Fumitoshi UKAI
284d762709 [w3m-dev 03525] Re: sync option
* func.c (initKeymap): delete check force, keymap_initialized
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-04 17:15:35 +00:00
Fumitoshi UKAI
9a38ed27e4 [w3m-dev 03524] fix doc*/README.func, w3mhelp.cgi.in
* doc/README.func (REINIT): added
* doc-jp/README.func (REINIT): added
* scripts/w3mhelp.cgi.in (Page/Cursor motion):
			add moveR1 movL1 movD1 movU1 ldown1 lup1
	(File/Stream operation): add pipeBuf
	(Miscellany): add dispVer execCmd reinit
	(load_keymap): rewrite
	(norm_key): rewrite
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-04 17:08:26 +00:00
Fumitoshi UKAI
33c9fa4685 NEWS: rc: display_ins_del
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-12-04 17:02:34 +00:00
Fumitoshi UKAI
650e90ad75 [w3m-dev 03523] Re: del/ins
* file.c (HTMLtagproc1): check displayInsDel, RB_DEL
* fm.h (RB_DEL): added
	(displayInsDel): added
* rc.c (CMT_DISP_INS_DEL): added
	(display_ins_del): added
* table.c (feed_table_tag): check displayInsDel, TBLM_DEL
* table.h (TBLM_DEL): added
	(TBLM_ANCHOR): renum
	(struct table_mode): unsigned int pre_mode
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-04 17:00:44 +00:00
Fumitoshi UKAI
b061871474 [w3m-dev 03522] newline around <pre>..</pre>
* file.c (HTMLtagproc1): break before <pre>/after </pre> if necessary
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-04 16:55:04 +00:00
Fumitoshi UKAI
f8e094d717 [w3m-dev 03521] sync option
* display.c (redrawNLine): calcTabPos()
* func.c (initKeymap): return if keymap_initialized
* main.c (calcTabPos): no more static
	(main): move sync_with_option, initCookie, setLocalCookie
		move backend
		move initKeymap, initMouseAction, initMenu
		remove calcTabPos
		add displayBuffer
	(numTab): static
	(deleteTab): delete calcTabPos
	(moveTab): delete calcTabPos
* proto.h (calcTabPos): added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-04 16:45:40 +00:00
Fumitoshi UKAI
fcc7d09085 [w3m-dev-en 00841] Re: w3m segfaults if the terminal is not writable
* terms.c (reset_tty): don't close stderr
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-04 16:38:53 +00:00
Fumitoshi UKAI
3c84aef6f7 fix indent 2002-12-03 16:09:41 +00:00
Fumitoshi UKAI
3546830a99 [w3m-dev 03516] Re: 2 stroke keybinding
* func.c (keymap_initialized): initialized to FALSE
	(setKeymap): push KeyData
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-03 16:07:37 +00:00
Fumitoshi UKAI
c800b1d0fd NEWS: 2 stroke keybinding
func: MULTIMAP
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-12-03 16:03:46 +00:00
Fumitoshi UKAI
2d31da386c [w3m-dev 03515] 2 stroke keybinding
* func.c (setKeymap): add map
			K_MULTI support
	(getKey2): added
	(getKey): rewrite to use getKey2()
* func.h (K_MULTI): added
	(MULTI_KEY): added
* funcname.tab (MULTIMAP): added
* main.c (escKeyProc): added
	(escmap): rewrite to use escKeyProc()
	(escbmap): rewrite to use escKeyProc()
	(escdmap): rewrite to use escKeyProc()
	(multimap): added
* proto.h (multimap): added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-03 16:01:14 +00:00
Fumitoshi UKAI
e1d37e57bc [w3m-dev 03514] Effect of tab title
* display.c (redrawNLine): rewrite, do without clrtoeolx()
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-03 15:52:37 +00:00
Fumitoshi UKAI
b79390caab [w3m-dev 03512] Re: HTML parser
* table.c (feed_table_tag): HTML_N_SELECT, HTML_N_CAPTION
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-03 15:49:52 +00:00
Fumitoshi UKAI
ae7c469215 [w3m-dev 03510] waiting time when cookie was rejected.
* file.c (readHeader): display cookie warnings for only 1 sec
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-03 15:47:38 +00:00
Fumitoshi UKAI
a2ab9a44f5 fix indent 2002-12-03 15:45:31 +00:00
Fumitoshi UKAI
569d535b29 [w3m-dev 03509] HTML parser
* file.c (close_textarea): delete
	(HTMLtagproc1): rewrite
			delete HTML_EOL
			move HTML_LISTING, HTML_N_LISTING
			add HTML_PRE_PLAIN, HTML_N_PRE_PLAIN
			add HTML_PLAINTEXT
			end_tag
	(HTMLlineproc0): s/str/line/
			rewrite
	(completeHTMLstream): </textarea> if necessary
* fm.h (struct readbuffer): delete ignore_tag
			add end_tag
	(RB_XMPMODE): deleted
	(RB_LSTMODE): deleted
	(RB_SCRIPT): added
	(RB_STYLE): added
	(RB_*): renumber
	(R_ST_EOL): added
	(R_ST_*): renumber
	(ST_IS_TAG): check R_ST_EOL
* form.c (form_fputs_decode): remove <eol> handling
* frame.c (newFrame): remove_space()
	(CASE_TABLE_TAG): added
	(createFrameFile): rewrite
* html.c (TagMAP): delete eol
		add pre_plain, /pre_plain
* html.h (HTML_EOL): deleted
	(HTML_PRE_PLAIN): added
	(HTML_N_PRE_PLAIN): added
* table.c (visible_length): rewrite
	(visible_length_plain): added
	(maximum_visible_length_plain): added
	(do_refill): R_ST_EOL
	(table_close_select): end_tag
	(table_close_textarea): end_tag
	(TAG_ACTION_PLAIN): added
	(feed_table_tag): rewrite
	(feed_table): rewrite
* table.h (TBLM_*) reassign
	(struct table_mode): delete ignore_tag
			add end_tag
* tagtable.tab (eol): deleted
		(pre_plain): added
		(/pre_plain): added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-03 15:35:09 +00:00
Fumitoshi UKAI
49098b36fe update 2002-12-03 15:15:45 +00:00
Fumitoshi UKAI
ec9153f471 [w3m-dev 03505] Re: coredump when ssl error
* file.c (loadGeneralFile): term_raw(), SIGINT before retry
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-03 15:00:52 +00:00
Fumitoshi UKAI
82ef7c22a1 fix indent 2002-12-02 17:55:46 +00:00
Fumitoshi UKAI
f2770707c1 [w3m-dev 03504] coredump when ssl error
* file.c (loadGeneralFile): term_raw, SIGINT
From: AIDA Shinra <aida-s@jcom.home.ne.jp>
2002-12-02 17:48:56 +00:00
Fumitoshi UKAI
f4d7e60586 remove ununsed variables
* file.c (addLink): unused variable `t'
* menu.c (lmGoURL): unused variable `pu'
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-12-02 17:38:55 +00:00
Fumitoshi UKAI
eb44b171c3 [w3m-dev 03501] link tag support
* buffer.c (reshapeBuffer): initialize formlist, linklist,
				maplist, hmarklist, imarklist
* file.c (addLink): added
	(HTMLlineproc2body): add HTML_LINK
	(loadHTMLstream): use HTMLlineproc0 not in R_ST_NORMAL
	(reloadBuffer): initialize linklist, maplist,
			hmarklist, imarklist
* fm.h (LINK_TYPE_NONE): added
	(LINK_TYPE_REL): added
	(LINK_TYPE_REV): added
	(LinkList): added
	(Buffer): add linklist
* html.c (ALST_LINK): added
	(TagMAP): add link
	(AtrMAP): add rel, rev, title
* html.h (HTML_LINK): added
	(ATTR_REL): added
	(ATTR_REV): added
	(ATTR_TITLE): added
* map.c (append_map_info): anchor
	(append_link_info): added
	(page_info_panel): append_link_info
* menu.c (LinkMenu): added
	(linkV): added
	(initLinkMenu): added
	(lmGoURL): added
	(popupMenu): initLinkMenu()
	(initMenu): w3mMenuList new 4
			add "Link"
* tagtable.tab (link): added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-02 17:27:34 +00:00