Commit Graph

766 Commits

Author SHA1 Message Date
Fumitoshi UKAI
b1266c7a32 [w3m-dev 03596] LIST
* anchor.c (link_list_panel): check internal
From: Hiroaki Shimotsu <shim@d5.bs1.fc.nec.co.jp>
2002-12-24 17:24:05 +00:00
Fumitoshi UKAI
4ca69fff36 [w3m-dev 03595] tolower, toupper
* Str.c (Strlower): TOLOWER
	(Strupper): TOUPPER
* backend.c: delete ctype.h
* etc.c (gethtmlcmd): TOLOWER
* file.c (readHeader): TOLOWER
	(checkOverWrite): TOLOWER
	(guess_charset): TOLOWER
* ftp.c: delete ctype.h
* indep.c (strcasecmp): TOLOWER
	(strncasecmp): TOLOWER
	(strcasematch): TOLOWER
* istream.c: include myctype.h
	(ssl_get_certificate): TOLOWER
* mailcap.c (mailcapMatch): TOLOWER
* main.c (_quitfm): TOLOWER
* menu.c (accesskey_menu): TOLOWER
* mimehead.c: include myctype.h
	(decodeWord): TOUPPER
* mktable.c: delete ctype.h, include myctype.h
	(main): IS_SPACE
* myctype.h: delete ctype.h
	(TOLOWER): added
	(TOUPPER): added
* parsetagx.c (parse_tag): TOLOWER
* rc.c (str_to_bool): TOLOWER
	(str_to_color): TOLOWER
* regex.c: delete ctype.h, include myctype.h
	(TOLOWER): added
	(TOUPPER): added
	(regmatch1): TOLOWER
	(matchWhich): TOLOWER, TOUPPER
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-24 17:20:45 +00:00
Fumitoshi UKAI
456fdb4d45 mimehead.c (decodeWord): don't use toupper() (requires ctype.h)
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-12-22 14:26:34 +00:00
Fumitoshi UKAI
29ea24810f [w3m-dev 03594] mime decode with encoding named 'b' & 'q'
* mimehead.c (decodeWord): toupeer(method)
From: ABE Yuji <cbo46560@pop12.odn.ne.jp>
2002-12-21 16:20:40 +00:00
Fumitoshi UKAI
6776e15f34 * file.c (discardline): not used
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-21 16:19:33 +00:00
Fumitoshi UKAI
e22ad9fd9b fix indent 2002-12-21 16:17:13 +00:00
Fumitoshi UKAI
59654a203b [w3m-dev 03593] Re: segmentation fault when <title> exist after <img>
* file.c (cur_title): added
	(save_obuf): deleted
	(process_title): added
	(process_n_title): added
	(feed_title): added
	(HTMLtagproc1): rewrite HTML_TITLE, HTML_N_TITLE,
			HTML_TITLE_ALT, HTML_N_HEAD, HTML_HEAD
	(HTMLlineproc0): check RB_TITLE
	(completeHTMLstream): add RB_TITLE
	(loadHTMLstream): initialize cur_title
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-21 16:16:43 +00:00
Fumitoshi UKAI
62dc71c28c [w3m-dev 03590] segmentation fault when <title> exist after <img>
* file.c (save_line): deleted
	(save_prevchar): deleted
	(save_obuf): added
	(HTMLtagproc1): bcopy save_obuf
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-20 20:20:52 +00:00
Fumitoshi UKAI
53052f7327 update TODO 2002-12-20 20:17:47 +00:00
Fumitoshi UKAI
76d0b32d30 [w3m-dev 03588] include time.h in ftp.c
* ftp.c: include <time.h>
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-19 15:29:05 +00:00
Fumitoshi UKAI
38a5fceac1 [w3m-dev 03584] Re: meta refresh 2002-12-18 16:48:58 +00:00
Fumitoshi UKAI
3888822eef [w3m-dev 03583] w3mman
* scripts/w3mman/README: W3MMAN_W3M, W3MMAN_MAN
* scripts/w3mman/w3mman.1.in: add ENVIRONMENT
* scripts/w3mman/w3mman.in: $ENV{'W3MMAN_W3M'}, $ENV{'W3MMAN_MAN'}
* scripts/w3mman/w3mman2html.cgi.in: $ENV{'W3MMAN_MAN'}
				hyphenation
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-18 16:48:02 +00:00
Fumitoshi UKAI
8696cb81db [w3m-dev 03582] add config options graphic_char and use_proxy
* NEWS: rc: graphic_char, use_proxy
* fm.h (Do_no_use_proxy): macro using use_proxy
	(use_proxy): added
	(no_graphic_char): deleted
	(UseGraphicChar): added
* main.c (main): UseGraphicChar, use_proxy
* rc.c (CMT_GRAPHIC_CHAR): added
	(CMT_USE_PROXY): added
	(params1): graphic_char
	(params4): use_proxy
* terms.c (graph_ok): UseGraphicChar
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-18 16:42:30 +00:00
Fumitoshi UKAI
68d625fdab [w3m-dev 03581] MARK_URL, MARK_WORD
* main.c (chkWORD): accept ()[]{}&|;*?$ as anchor
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-18 16:38:49 +00:00
Fumitoshi UKAI
800ff446b0 [w3m-dev 03580] Re: clean up displayBuffer()
* main.c (main): force redraw
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-18 16:34:38 +00:00
Fumitoshi UKAI
22fc4c640a [w3m-dev 03579] Re: clean up displayBuffer()
* display.c (displayBuffer): re calcTabPos() when force or image redraw
* main.c (_mark): force redraw
	(reinit): redraw image
* search.c (backwardSearch): found_last
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-18 16:33:19 +00:00
Fumitoshi UKAI
4922417449 * main.c (DefaultAlarm): fix initialize value
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-12-18 16:25:47 +00:00
Fumitoshi UKAI
becb6e454a fix indent 2002-12-18 16:25:11 +00:00
Fumitoshi UKAI
6189d68a78 [w3m-dev 03578] meta refresh
* file.c (getMetaRefreshParam): do nothing if refresh_interval < 0
	(HTMLtagproc1): rewrite refresh
	(HTMLlineproc2body): add HTML_META
* fm.h (BP_RELOAD): deleted
	(Buffer): add event
	(AL_IMPLICIT_DONE): deleted
	(AL_ONCE): deleted
	(AL_RESTORE): deleted
	(AlarmEvent): added
* main.c (AlarmEvent): deleted
	(PrevAlarm): deleted
	(DefaultAlarm): added
	(CurrentAlarm): point to DefaultAlarm
	(main): CurrentKeyData, CurrentCmdData
		handle Currentbuf->event
	(SigAlarm): CurrentAlarm is pointer
	(copyAlarmEvent): deleted
	(setAlarm): setAlarmEvent pass &DefaultAlarm
	(setAlarmEvent): arg event
	(ldDL): no BP_RELOAD
* proto.h (setAlarmEvent): arg event
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-18 16:20:49 +00:00
Fumitoshi UKAI
4e52a4adb4 [w3m-dev 03577] incorrect table width
* table.c (dv2sv): fix move direction
	(set_integered_width): ditto
	(check_table_height): ditto
	(feed_table_tag): ditto
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-17 16:17:28 +00:00
Fumitoshi UKAI
aec3cd7cc6 [w3m-dev 03576] Re: news support
* anchor.c (_put_anchor_news): convert to document code and quote
	(_put_anchor_all): convert to document code
* main.c (chkNMIDBuffer): change url_like_pat
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-16 15:41:03 +00:00
Fumitoshi UKAI
c5f41178f1 * NEWS: rc: preserve_timestamp
From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-12-15 12:37:33 +00:00
Fumitoshi UKAI
c795d4380f [w3m-dev 03574] Re: preserve timestamp
* ftp.c (getFtpModtime): don't call localtime,gettime in same expr
From: Takahashi Youichirou <nikuq@hk.airnet.ne.jp>
2002-12-15 12:12:47 +00:00
Fumitoshi UKAI
b5420dc7c5 [w3m-dev 03573] Re: Bug#172851: w3m: In form, takes hostname as baseref for relative URI action
* url.c (parseURL): if empty is URL, base URL is used
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-12-14 16:09:51 +00:00
Fumitoshi UKAI
9081b77f56 [w3m-dev 03571] base=0 -> 10 in toNumber()
* parsetagx.c (toNumber): strtol base=10
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-14 15:37:56 +00:00
Fumitoshi UKAI
74940c5a0d [w3m-dev 03570] meta tag in frame
* frame.c (createFrameFile): fix meta equiv parse in frame
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-14 15:28:37 +00:00
Fumitoshi UKAI
021ce52a52 fix indent 2002-12-14 15:26:44 +00:00
Fumitoshi UKAI
4a9e9df295 [w3m-dev 03569] Re: preserve timestamp
* file.c (loadGeneralFile): PresetveTimestamp
	(_doFileCopy): is_pipe, PreserveTimestamp
	(doFileSave): PreserveTImestamp
* fm.h (PreserveTimestamp): added
* rc.c (CMT_PRESERVE_TIMESTAMP): added
	(params3): add preserve_timestamp
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-14 15:24:03 +00:00
Fumitoshi UKAI
26a8e37fdc [w3m-dev 03568] Re: preserve timestamp
* etc.c (USE_COOKIE): moved
* file.c (utime.h): include
	(setModtime): added
	(loadGeneralFile): set f.modtime
	(_doFileCopy): setModtime()
	(doFileSave): setModtime()
* ftp.c (getFtpModtime): added
	(openFTP): pass URLFile, set modtime
* html.h (URLFile): add modtime
* proto.h (openFTP): arg URLFile *uf
	(mymktime): always
* url.c (init_stream): initialize modtime
	(openFTPStream): pass URLFile
	(openURL): openFTPStream
From: Takahashi Youichirou <nikuq@hk.airnet.ne.jp>
2002-12-14 15:18:37 +00:00
Fumitoshi UKAI
9963ad03d3 [w3m-dev 03567] default keybinding
* doc-jp/keymap.default (C-q,C-t,(,),+,-,D,L,T,m,r,{,|,},
			M-c,M-k,M-l,M-m,M-o,M-t): assign
* doc/keymap.default: ditto
* keybind.c: ditto
* doc-jp/keymap.lynx (C-q,C-t,C-u,(,),,,.,;,D,L,T,W,[,],
			m,r,w,{,|,},M-<,M->,M-W,M-c,M-g,
			M-k,M-l,M-m,M-n,M-o,M-p,M-t,M-w): assign
* doc/keymap.lynx: ditto
* keybind_lynx.c: ditto
* doc-jp/menu.default (Main): Select,SelectTab,TAB_LINK
* doc/menu.default: ditto
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-13 03:02:03 +00:00
Fumitoshi UKAI
9df094b123 [w3m-dev 03566] configure prefix
* configure: add X prefix for expr args
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-13 02:27:23 +00:00
Fumitoshi UKAI
e0ae7b688b [w3m-dev 03564] clean up displayBuffer()
* display.c (delayed_msg): static
	(drawAnchorCursor): static
	(redrawBuffer): define
	(redrawNLine): static
	(redrawLine): static
	(redrawLineRegion): static
	(do_effects): static
	(do_color): static
	(make_lastline_link): added
	(make_lastline_message): added
	(displayBuffer): rewrite with make_lastline_message()
	(drawAnchorCursor0): added
	(drawAnchorCursor): added
* main.c (main): remove onA()
	(keyPressEventProc): remove onA()
	(disp_srchresult): static
		disp_message TRUE
	(isrch): remove onA()
	(srch): displayBuffer
		remove onA()
	(srch_nxtprv): remove onA()
	(pipeBuf): disp_message TRUE
	(pipesh): disp_message TRUE
	(readsh): disp_message TRUE
	(_mark): dispBuffer
	(_followForm): break, always dispBuffer
	(drawAnchorCursor0): deleted
	(drawAnchorCursor): deleted
	(onA): deleted
	(anchorMn): delete onA()
	(svBuf): displayBuffer B_NORMAL
	(reload): disp_err_message TRUE
		displayBuffer
	(rFrame): displayBuffer
	(invoke_browser): displayBuffer
	(extbrz): disp_err_message TRUE
	(process_mouse): onA -> displayBuffer
	(movMs): delete onA()
	(menuMs): onA -> displayBuffer
	(closeTMs): disp_message TRUE
	(wrapToggle): disp_message TRUE
	(execdict): disp_message TRUE
	(SigAlarm): displayBuffer, delete onA
	(reinit): displayBuffer
* map.c (getCurrentMapLabel): deleted
	(retrieveCurrentMapArea): added
* proto.h (redrawBuffer): deleted
	(redrawNLine): deleted
	(redrawLine): deleted
	(redrawLineRegion): deleted
	(do_effects): deleted
	(do_color): deleted
	(message_list): deleted
	(getCurrentMapLabel): deleted
	(retrieveCurrentMapArea): added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-13 02:19:01 +00:00
Fumitoshi UKAI
0b9f61c039 [w3m-dev 03563] Directory Traversal Vulnerabilities in FTP Clients
* file.c (guess_save_name): pass guess_filename
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-13 00:09:50 +00:00
Fumitoshi UKAI
e9fa33af3b [w3m-dev 03562] #undef BUFINFO
* config.h.dist (BUFINFO): undef
* configure (use_bufinfo): n
* main.c (saveBufferInfo): ifdef USE_BUFINFO
* proto.h (reloadBuffer): if 0
	(saveBufferInfo): ifdef USE_BUFINFO
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-12 23:55:30 +00:00
Fumitoshi UKAI
fb86e0b3ca update TODO 2002-12-12 23:41:21 +00:00
Fumitoshi UKAI
2d65b2eee2 fix indent 2002-12-11 15:08:47 +00:00
Fumitoshi UKAI
69d9bff231 [w3m-dev 03559] Re: use select instead of signal for loading images
* fm.h (Buffer): add image_loaded
* image.c (W3M_SIGIMG): deleted
	(image_lock): deleted
	(need_load_image): deleted
	(load_image_handler): deleted
	(load_image_next): deleted
	(getAllImage): check image_loaded
	(loadImage): delete image_lock
		delete IMG_FLAG_NEXT
* main.c (main): check image_loaded
* proto.h (sleep_till_anykey): return int
* terms.c (sleep_till_anykey): return int
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-11 15:07:53 +00:00
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