Jonas Fonseca
fa124d0988
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2005-12-18 23:49:15 +01:00
Miciah Dashiel Butler Masters
2fef4bd531
In cache_entry_get_property and cache_entry_set_property, use
...
cache_entry_is_valid to check that the reference to the struct cache_entry
is still valid. Thanks to fonseca for the reminder.
2005-12-18 22:47:58 +00:00
Jonas Fonseca
8ea7f202b1
#include "src/scripting/smjs/cache_object.h"
2005-12-18 22:17:48 +01:00
Jonas Fonseca
838e2ea0c9
Make all global variables exported by src/scripting/smjs/core.h extern
2005-12-18 19:57:03 +01:00
Miciah Dashiel Butler Masters
51322649fe
Load the default script.
2005-12-18 18:02:32 +00:00
Miciah Dashiel Butler Masters
e3fed7e19e
Add a pre-format-html hook.
2005-12-18 17:58:42 +00:00
Miciah Dashiel Butler Masters
30ccbaaf21
Add the elinks.alert method.
2005-12-18 17:49:21 +00:00
Miciah Dashiel Butler Masters
6e0d4374c1
Add the "elinks" object.
2005-12-18 17:47:54 +00:00
Miciah Dashiel Butler Masters
acb2bb80be
Create a global object.
2005-12-18 17:40:13 +00:00
Miciah Dashiel Butler Masters
60d40b7f50
Initial skeleton for SpiderMonkey scripting backend.
2005-12-18 17:40:00 +00:00
Miciah Dashiel Butler Masters
a96c0250c3
Merge textarea updates
2005-12-18 16:26:05 +00:00
Miciah Dashiel Butler Masters
d11dc65320
If the user edits a textarea with an external editor but exceeds the
...
maximum length, do not simply drop the changes, but instead truncate them,
warn the user, and provide the user with the path to the temporary file
from which the full changes can be recovered.
2005-12-18 16:23:52 +00:00
Witold Filipczyk
d09bdf7c28
Fix problem with double decompression of local files
...
ELinks tries decompress local gziped files twice, which causes problems
with some files eg. with this README.gz. This patch prevents it.
2005-12-18 17:03:34 +01:00
Miciah Dashiel Butler Masters
69f38bcbcc
After editing a textarea in an external editor, do not unlink the file
...
if it was too large to fit into the textarea.
2005-12-18 16:02:37 +00:00
Miciah Dashiel Butler Masters
9959f4d788
Fold load_textarea_file into textarea_edit.
2005-12-18 16:00:48 +00:00
Miciah Dashiel Butler Masters
517bb03da4
Add routine add_file_to_string and use it in load_textarea_file.
2005-12-18 15:56:59 +00:00
Miciah Dashiel Butler Masters
dc29fa0a0b
Add a missing bracket in report_scripting_error.
2005-12-18 15:32:11 +00:00
Jonas Fonseca
3dadc0ad46
Fix order of args passed to SEE_string_sprintf("%.*s")
2005-12-17 19:19:42 +01:00
Jonas Fonseca
6251884765
One more compile fix for evhook_use_param() macro usage
2005-12-17 18:36:46 +01:00
Jonas Fonseca
1e60feacb4
Compile fix for arg usage macro
2005-12-17 18:27:49 +01:00
Miciah Dashiel Butler Masters
5145ae266a
Follow-up for commit fdacffd113
: change
...
the Python, Ruby, and SEE hooks for pre-format-html to work properly
now that they are given a non-NUL-terminated string. Thanks to fonseca
for noticing this problem as well as that fixed by the previous commit.
2005-12-17 16:38:24 +00:00
Miciah Dashiel Butler Masters
97b71aa868
Document that pre-format-html hooks are given a session pointer.
2005-12-17 16:01:15 +00:00
Miciah Dashiel Butler Masters
fdacffd113
Change the pre-format event so that hooks are given the cache entry
...
instead of the URI, content, and length of the entry. Change the hooks
to use add_fragment. This should fix the memory leakage when multiple
hooks change the same document, closing bug 703.
2005-12-17 06:32:08 +00:00
Miciah Dashiel Butler Masters
35aa8119e3
In run_lua_func, pass handle_ref 0 for the unref flag so that bindings
...
will work more than once.
2005-12-17 01:42:20 +00:00
Miciah Dashiel Butler Masters
717b440f62
Add an unref flag to handle_ref so that the unreferencing is optional.
2005-12-17 01:36:26 +00:00
Miciah Dashiel Butler Masters
00e3af6412
Do not use the -e option to echo, which besides being non-portable is
...
now unnecessary.
2005-12-17 01:18:33 +00:00
Miciah Dashiel Butler Masters
75f21d276c
Use tput instead of hardcoded escape sequences in the make system.
2005-12-17 01:17:26 +00:00
Miciah Dashiel Butler Masters
8edcb292cb
In l_set_option, use lua_toboolean for boolean options instead of
...
lua_tonumber. Now set_option(opt, not get_option(opt)) will always work
to toggle a boolean option.
2005-12-17 00:31:45 +00:00
Miciah Dashiel Butler Masters
35e5ec74d2
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2005-12-17 00:09:02 +00:00
Miciah Dashiel Butler Masters
fa0ce83f24
Recomment do_tab_compl_unambiguous.
2005-12-17 00:02:15 +00:00
Miciah Dashiel Butler Masters
093800d6fb
Only set match the first time since we are only interested in the common
...
substring at the start, which will be the same for all matches.
2005-12-16 23:59:04 +00:00
Miciah Dashiel Butler Masters
aad46173ae
Refactor.
2005-12-16 23:50:17 +00:00
Miciah Dashiel Butler Masters
63a71348f2
Refactor.
2005-12-16 23:48:41 +00:00
Miciah Dashiel Butler Masters
5279ea97da
Drop a funny comment.
2005-12-16 23:47:25 +00:00
Miciah Dashiel Butler Masters
20ee738904
Stop using a special value of 0 for longest_common_match to check whether
...
a match has been found and just check whether match is NULL.
2005-12-16 23:37:52 +00:00
Miciah Dashiel Butler Masters
0f8fe3f919
Define a new routine strcommonlen and use it in do_tab_compl_unambiguous.
2005-12-16 23:35:11 +00:00
Jonas Fonseca
33c02d7469
Merge with git+ssh://pasky/srv/git/elinks.git
2005-12-15 22:06:12 +01:00
Jonas Fonseca
45861c68e1
pop_dom_state(): Drop unused left-over argument
2005-12-15 22:05:30 +01:00
Russ Rowan
959bd2cd30
Don't be quite so silent during make.
2005-12-15 16:04:41 -05:00
Russ Rowan
ec5d74d262
Don't color the feature log.
2005-12-15 16:03:15 -05:00
Jonas Fonseca
ef5d5fc27a
dom_node_cmp(): Only use element or attribute type ID if both are set
2005-12-15 22:02:02 +01:00
Russ Rowan
ef32768d3a
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2005-12-15 15:30:01 -05:00
Jonas Fonseca
c2d27a33d8
Rename: nav -> stack
2005-12-15 17:24:20 +01:00
Russ Rowan
e057bad11a
Colorize the feature summary.
2005-12-15 05:14:34 -05:00
Russ Rowan
9960e1a3a1
Clean up 'make install'.
2005-12-15 05:13:42 -05:00
Russ Rowan
42f715f90f
Clean up 'make clean'.
2005-12-15 04:04:26 -05:00
Russ Rowan
01db6af270
Don't print the "Entering..." and "Leaving..." directory messages. It
...
makes the new build system look bad.
2005-12-15 02:59:16 -05:00
Russ Rowan
3c9f192267
Colorize Pasky's build system a bit.
2005-12-15 02:44:15 -05:00
Petr Baudis
2f6f0341c2
Merge with /srv/git/elinks.git
2005-12-14 19:32:55 +01:00
Petr Baudis
aaac5e2047
Make the grafting script more idi^Wuser-proof
...
Insist on being run from the project root and pre-create possibly
missing directories.
2005-12-14 19:32:18 +01:00