Commit Graph

898 Commits

Author SHA1 Message Date
Fumitoshi UKAI
fbc26e9c4b [w3m-dev 03732] Re: scroll() is slow ?
* configure (use_raw_scroll): added
	(config.h) use_raw_scroll
* config.h.dist (USE_RAW_SCROLL): added
* display.c (displayBuffer): ifdef USE_RAW_SCROLL
* proto.h (scroll): ifdef USE_RAW_SCROLL
	(rscroll): ditto
	(need_clrtoeol): if 0
	(terms.c): if 0 need_clrtoeol
	(scroll_raw): ifdef USE_RAW_SCROLL
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-02-06 17:15:04 +00:00
Fumitoshi UKAI
254eeb195f fix typo 2003-02-05 16:48:09 +00:00
Fumitoshi UKAI
d98e4a517c NEWS: rc: decode_url
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-02-05 16:45:57 +00:00
Fumitoshi UKAI
8f4d3b66f1 fix indent 2003-02-05 16:45:07 +00:00
Fumitoshi UKAI
e312638d0c [w3m-dev 03730] display decoded URL
* anchor.c (link_list_panel): support DecodeURL
* display.c (make_lastline_link): support DecodeURL
* etc.c (url_unquote_conv): added
* fm.h (DecodeURL): added
* history.c (historyBuffer): support DecodeURL
* indep.c (QUOTE_MAP): added
	(HTML_QUOTE_MAP): added
	(html_quote_char): deleted
	(url_quote): use is_url_quote
	(file_quote): use is_file_quote
	(is_url_safe): deleted
	(Str_form_quote): use is_url_unsafe
	(Str_url_unquote): add safe args
	(is_shell_safe): delete
	(shell_quote): use is_shell_unsafe
* indep.h (QUOTE_MAP): added
	(HTML_QUOTE_MAP): added
	(HTML_QUOTE_MASK): added
	(SHELL_UNSAFE_MASK): added
	(URL_QUOTE_MASK): added
	(FILE_QUOTE_MASK): added
	(URL_UNSAFE_MASK): added
	(GET_QUOTE_TYPE): added
	(is_html_quote): added
	(is_shell_unsafe): added
	(is_url_quote): added
	(is_file_quote): added
	(is_url_unsafe): added
	(html_quote_char): added
	(html_quote_char): deleted
	(Str_url_unquote): added safe
	(form_unquote): Str_url_unquote changes
* linein.c (_prev): support DecodeURL
	(_next): ditto
* main.c (goURL0): support DecodeURL
	(_peekURL): ditto
	(curURL): ditto
* map.c (follow_map_panel): support DecodeURL
	(append_map_info): ditto
	(append_link_info): ditto
	(append_frame_info): ditto
	(page_info_panel): ditto
* menu.c (initSelectMenu): delete SCM_LOCAL_CGI
		support DecodeURL
	(initSelTabMenu): delete SCM_LOCAL_CGI
		support DecodeURL
	(link_menu): support DecodeURL
* parsetagx.c (parse_tag): is_html_quote
* proto.h (url_unquote_conv): added
* rc.c (CMT_DECODE_URL): added
	(params1): add decode_url
* url.c (openURL): Str_url_unquote non safe
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-02-05 16:43:56 +00:00
Fumitoshi UKAI
4f8c42c5db [w3m-dev 03729] buf fix of reAnchorNewsheader()
* anchor.c (reAnchorAny): check l->bpos
	 (reAnchorNewsheader): check l->bpos
				strlen(*q)
				lineBuf[l->size]
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-02-05 16:23:27 +00:00
Fumitoshi UKAI
84fefac4a4 [w3m-dev 03728] IPv6 hostname
* url.c (parseURL): rewrite IPv6 address parser
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-02-05 16:18:23 +00:00
Fumitoshi UKAI
c25c21e5c1 update TODO 2003-02-05 16:17:10 +00:00
Fumitoshi UKAI
c4e2c3280f update TODO 2003-02-03 15:50:21 +00:00
Fumitoshi UKAI
3263518a49 [w3m-dev 03724] Re: view source, edit source
* buffer.c (reshapeBuffer): initialize buf->width first
* display.c (displayBuffer): no need to check buf>sourcefile
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-02-03 15:49:13 +00:00
Fumitoshi UKAI
585d713d9d fix indent 2003-01-31 16:26:41 +00:00
Fumitoshi UKAI
92fc697f22 [w3m-dev 03721] PATH_INFO support of local CGI
* local.c (CGIFN_DROOT): deleted
	(CGIFN_LIBDIR): added
	(CGIFN_MODE): deleted
	(CGIFN_CONTAIN_SLASH): deleted
	(check_local_cgi): rewrite
	(cgi_filename): rewrite
	(localcgi_post): support PATH_INFO
* url.c (openURL): rewrite
* Bonus/smb.cgi: use PATH_INFO
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-31 16:25:02 +00:00
Fumitoshi UKAI
1ecacc5ad1 [w3m-dev 03720] mark remains
* main.c (srchcore): PREC_NUM
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-31 16:14:22 +00:00
Fumitoshi UKAI
081ef4058c [w3m-dev 03719] Re: Too slow when loading big file with fold_line=1
* file.c (addnewline): check i <l->len
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30 16:48:40 +00:00
Fumitoshi UKAI
0c0438352c [w3m-dev 03718] Too slow when loading big file with fold_line=1
* etc.c (nextColumn): added
	(calcPosition): use New_N
			rewrite with nextColumn
	(columnLen): added
* file.c (addnewline): rewrite with columnLen
* proto.h (columnLen): added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30 16:39:29 +00:00
Fumitoshi UKAI
2517af675a [w3m-dev 03717] print newline before exec shell command.
* main.c (execsh): print newline
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30 16:35:34 +00:00
Fumitoshi UKAI
7226ac9de4 [w3m-dev 03715] initial currentLine when pager mode.
* file.c (getNextPage): fix cur
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30 16:31:56 +00:00
Fumitoshi UKAI
79af75d00c [w3m-dev 03714] -cols 1 -dump -o fold_line=1
* file.c (addnewline): check i == 0, i == l->len
* fm.h (_INIT_BUFFER_WIDTH): added
	(INIT_BUFFER_WIDTH): use _INIT_BUFFER_WIDTH
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30 16:29:11 +00:00
Fumitoshi UKAI
992994203c [w3m-dev 03713] search with "$"
* search.c (forwardSearch): check l->next && l->next->bpos
	(backwardSearch): check l->size, l->next && l->next->bpos
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30 16:26:15 +00:00
Fumitoshi UKAI
7b292142c2 fix indent 2003-01-30 16:21:59 +00:00
Fumitoshi UKAI
041c4b06e4 [w3m-dev 03712] buf fix of LINE_INFO
* main.c (curlno): rewrite
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30 16:18:29 +00:00
Fumitoshi UKAI
931a54afec [w3m-dev 03709] Re: view source, edit source
* display.c (displayBuffer): INIT_BUFFER_WIDTH
* file.c (_saveBuffer): added
	(saveBuffer): use _saveBuffer
	(saveBufferBody): added
* main.c (vmSrc): saveBufferBody
* proto.h (saveBufferBody): added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-29 17:38:12 +00:00
Fumitoshi UKAI
901902c777 [w3m-dev-en 00852] Re: Enhancement: content type detection of files
* url.c (DefaultGuess): remove upppercases
	(guessContentTypeFromTable): rewrite, strcasecmp
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-29 17:33:28 +00:00
Fumitoshi UKAI
51a4f5771e wait_st is not used 2003-01-29 17:31:22 +00:00
Fumitoshi UKAI
c3281c3658 fix indent 2003-01-29 17:26:51 +00:00
Fumitoshi UKAI
b0a661730f [w3m-dev 03708] Re: Don't stop loading image when moving to next page.
* config.h.dist (lstat): define ifndef HAVE_LSTAT
* configure (config.h) ditto
* display.c (fmTerm): new loadImage
	(save_current_buf): only ifdef USE_BUFINFO
	(displayBuffer): new loadImage
* etc.c (setup_child): TrapSignal
* file.c (loadGeneralFile): TRAP_OFF, TRAP_ON
	(loadHTMLstream): ditto
	(loadGopherDir): ditto
	(loadBuffer): ditto
	(loadImageBuffer): ditto
	(getNextPage): ditto
	(save2tmp): ditto
* fm.h (TrapSignal): added
	(TRAP_ON): added
	(TRAP_OFF): added
* form.c (HAVE_LSTAT): deleted
* frame.c (createFrameFile): TRAP_OFF, TRAP_ON
* image.c (image_buffer): added
	(deleteImage): new loadImage
	(getAllImage): initialize image_buffer
	(loadImage): rewrite
* main.c (main): new loadImage
	(checkDownloadList): remove ifdef HAVE_LSTAT
* news.c (loadNwesgroup): TRAP_ON, TRAP_OFF
* proto.h (loadImage): add buf arg
* url.c (openSocket): TRAP_ON, TRAP_OFF
	(check_no_proxy): TRAP_ON, TRAP_OFF
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-29 17:10:17 +00:00
Fumitoshi UKAI
6a009d9482 [w3m-dev 03707] Don't stop loading image when moving to next page.
* display.c (save_current_buf): required when defined USE_IMAGE
	(displayBuffer): stop only buffer changed
* image.c (loadImage): IMG_FLAG_START load from maxLoadImage
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-28 16:45:15 +00:00
Fumitoshi UKAI
e442c118b8 fix indent 2003-01-28 16:42:02 +00:00
Fumitoshi UKAI
58259b5c34 [w3m-dev 03706] X-Image-URL: support, bug fix of reshapeBuffer()
* buffer.c (reshapeBuffer): rewrite
* file.c (readHeader): rewrite
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-28 16:40:58 +00:00
Fumitoshi UKAI
b701883b27 [w3m-dev 03705] goodict.cgi (was: Re: google.cgi (was: Re: keymap key SEARCH string))
* Bonus/goodict.cgi: added
From: NAKAJIMA Mikio <minakaji@osaka.email.ne.jp>
2003-01-28 16:36:49 +00:00
Fumitoshi UKAI
99bb92c0f5 [w3m-dev 03700] Re: google.cgi (was: Re: keymap key SEARCH string)
* main.c (goURL0): check relative or *url == '#'
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-28 16:34:24 +00:00
Fumitoshi UKAI
68c534d2ed [w3m-dev 03689] Re: fold patch
* fm.h (BufferPos): add bpos
* main.c (save_buffer_position): bpos initialize
	(resetPos): reset bpos
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-27 16:18:48 +00:00
Fumitoshi UKAI
10f3122429 fix indent 2003-01-25 18:06:25 +00:00
Fumitoshi UKAI
6e58e83e12 [w3m-dev 03686] Re: fold patch
* buffer.c (writeBufferCache): rewrite
	(readBufferCache): rewrite
* etc.c (calcPosition): short -> int realColumn
* fm.h (Line): short -> int len,width,size,bpos,bwidth
	(BufferPoint): short->int pos
	(Buffer): short->int currentColumn,pos,visualpos
	(BufferPos): short->int currentColumn,pos
* frame.h (frameset_queue): short->int pos,currentColumn
* main.c (clear_mark): short->int pos
	(dispincsrch): short->int pos
	(backBf): short->int pos
	(set_buffer_environ): short->int prev_pos
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-25 17:42:17 +00:00
Fumitoshi UKAI
7119fe00e1 fix indent 2003-01-24 17:57:54 +00:00
Fumitoshi UKAI
a727eef794 [w3m-dev 03684] Re: fold patch
* file.c (PSIZE): added
	(HTMLlineproc2body): outc,outp is created by NewAtom_N
		use PSIZE
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-24 17:57:07 +00:00
Fumitoshi UKAI
6384487c95 file.c (getNextPage): no need volatile for code
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-24 17:54:07 +00:00
Fumitoshi UKAI
d20914e8d9 fix indent 2003-01-24 17:37:16 +00:00
Fumitoshi UKAI
9cfb271a67 [w3m-dev 03683] interrupt in getNextPage()
* file.c (getNextPage): trap SIGINT
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-24 17:36:44 +00:00
Fumitoshi UKAI
ec84de753b [w3m-dev 03682] open null file on tab
* display.c (displayBuffer): if empty, clear()
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-24 17:34:36 +00:00
Fumitoshi UKAI
7a5aebe4b0 [w3m-dev 03681] Re: fold patch
* buffer.c (reshapeBuffer): buf->pos, sbuf.currentLine fix
			FoldLine
* display.c (arrangeCursor): buf->pos fix
	(restorePosition): buf->pos fix
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-24 17:30:38 +00:00
Fumitoshi UKAI
10c855dd4f NEWS: func: RESHAPE
rc: fold_line
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-23 18:44:26 +00:00
Fumitoshi UKAI
3b74155de0 fix compiler warnings
* display.c (displayBuffer): fix suggest parentheses around && within ||
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-23 18:42:51 +00:00
Fumitoshi UKAI
c50771b0a1 fix indent 2003-01-23 18:38:04 +00:00
Fumitoshi UKAI
61c2c2de18 [w3m-dev 03667] fold patch
* anchor.c (reAnchorPos): rewrite
	(reAnchorWord): delete reseq_anchor()
	(reAnchorAny): use l->size
			delete reseq_anchor()
* backend.c (internal_get): pass TRUE to saveBuffer
* buffer.c (newBuffer): delete n->linelen
	(reshapeBuffer): rewrite
* display.c (displayBuffer): FoldLine
	(redrawLine): l->bpos
	(cursorUp0): added
	(cursorUp): rewrite
	(cursorDown0): added
	(cursowDown): rewrite
	(cursorRight): check l->next
			l->bwidth
	(cursorLeft): l->prev && l->bpos
			l->bwidth
	(arrangeCursor): buf->currentLine->bwidth
		buf->cursorX
* etc.c (checkType): **oporp
			rewrite
	(calcPosition): realColumn allocated by New_reuse
* file.c (addnewline): add nlines arg
	(propBuffer): deleted
	(colorBuffer): deleted
	(readHeader): propBuffer
		FOLD_BUFFER_WIDTH
	(HTMLlineproc2body): rewrite
	(addnewline2): added
	(addnewline): rewrite
	(loadBuffer): propBuffer, colorBuffer
	(saveBuffer): cont arg
	(getNextPage): rewrite
* fm.h (LINELEN): 256
	(FNLEN): deleted
	(Line): add size, bpos, bwidth
	(Buffer): delete linelen
	(INIT_BUFFER_WIDTH): check showLineNum
	(FOLD_BUFFER_WIDTH): added
	(FoldLine): added
* funcname.tab (RESHAPE): added
* main.c (do_dump): pass FALSE to saveBuffer
	(nscroll): rewrite
	(clear_mark): l->size
	(shiftvisualpos): rewrite
	(pipeBuf): pass TRUE to saveBuffer
	(linebeg): check line->prev && line->bpos
	(linend): check line->next, line->next->bpos
	(editScr): pass TRUE to saveBuffer
	(svBuf): pass TRUE to saveBuffer
	(vmSrc): pass TRUE to saveBuffer
	(reshape): added
	(curlno): rewrite
* mimehead.c (LINELEN): deleted
* proto.h (reshape): added
	(saveBuffer): add cont arg
	(cursorUp0): added
	(cursorDown0): added
	(checkType): change type oprop, ocolor, delete check_color, len
* rc.c (CMT_FOLD_LINE): added
	(params1): add fold_line
	(sync_with_option): check PagerMax
* search.c (set_mark): l->size
	(forwardSearch): rewrite
	(backwardSearch): rewrite
* doc/README.func (RESHAPE): added
* doc-jp/README.func (RESHAPE): added
* scripts/w3mhelp.cgi.in (Buffer operation): add reshape
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-23 18:37:18 +00:00
Fumitoshi UKAI
e718702d12 * etc.c (next_status): after = is R_ST_VALUE
R_ST_VALUE > => R_ST_NORMAL
		R_ST_VALUE SP => R_ST_TAG
	(read_token): R_ST_VALUE
	(correct_irrtag): R_ST_VALUE
* rm.h (R_ST_VALUE): added
	(ST_IS_REAL_TAG): rewrite
	(ST_IS_COMMENT): deleted
	(ST_IS_TAG): deleted
* parsetagx.c (parse_tag): skip too long tagname
			skip too long attrname
			if attrvalue has quote char, need reconstruct
			if unknown attr, need reconstruct
* table.c (visible_length): R_ST_VALUE
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-23 18:01:01 +00:00
Fumitoshi UKAI
51c2899aa9 [w3m-dev 03680] showProgress() on fast system
* file.c (showProgress): check line len, time
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-23 16:05:54 +00:00
Fumitoshi UKAI
0ff57ba4ed fix indent 2003-01-23 16:02:15 +00:00
Fumitoshi UKAI
fb759b572b [w3m-dev 03679] Re: cleanup for pipe
* etc.c (open_pipe_rw): check stdin, stdout
* file.c (uncompress_stream): rewrite
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-23 15:59:24 +00:00
Fumitoshi UKAI
a0300c84b8 [w3m-dev 03678] Re: config.param is clear when configure -help
* configure: don't override config.param
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-22 16:36:11 +00:00