Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.171
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
jed /
lib /
[ HOME SHELL ]
Name
Size
Permission
Action
colors
[ DIR ]
drwxr-xr-x
abbrev.sl
838
B
-rw-r--r--
abbrev.slc
636
B
-rw-r--r--
abbrmisc.sl
2.15
KB
-rw-r--r--
abbrmisc.slc
1.98
KB
-rw-r--r--
aboutjed.hlp
252
B
-rw-r--r--
acompile.sl
2.04
KB
-rw-r--r--
acompile.slc
2.02
KB
-rw-r--r--
aprocess.sl
267
B
-rw-r--r--
aprocess.slc
238
B
-rw-r--r--
ashell.sl
7.69
KB
-rw-r--r--
ashell.slc
6.96
KB
-rw-r--r--
backups.sl
1.41
KB
-rw-r--r--
backups.slc
637
B
-rw-r--r--
bibtex.sl
17.05
KB
-rw-r--r--
bibtex.slc
12.74
KB
-rw-r--r--
binary.sl
589
B
-rw-r--r--
binary.slc
522
B
-rw-r--r--
bookmark.sl
1.6
KB
-rw-r--r--
bookmark.slc
1.2
KB
-rw-r--r--
brief.sl
5.98
KB
-rw-r--r--
buf.sl
3.41
KB
-rw-r--r--
buf.slc
1.96
KB
-rw-r--r--
bufed.sl
6.69
KB
-rw-r--r--
bufed.slc
4.68
KB
-rw-r--r--
bytecomp.sl
3.38
KB
-rw-r--r--
cal.sl
6.4
KB
-rw-r--r--
cal.slc
4.44
KB
-rw-r--r--
chglog.sl
3.13
KB
-rw-r--r--
chglog.slc
2.62
KB
-rw-r--r--
cmisc.sl
4.91
KB
-rw-r--r--
cmisc.slc
4
KB
-rw-r--r--
cmode.dfa
7.58
KB
-rw-r--r--
cmode.sl
40.06
KB
-rw-r--r--
cmode.slc
27.9
KB
-rw-r--r--
comments.sl
7.99
KB
-rw-r--r--
comments.slc
5.93
KB
-rw-r--r--
compat.sl
1.39
KB
-rw-r--r--
compile.sl
11.44
KB
-rw-r--r--
compile.slc
5.83
KB
-rw-r--r--
compress.sl
3.12
KB
-rw-r--r--
compress.slc
2.73
KB
-rw-r--r--
cpright.hlp
464
B
-rw-r--r--
ctags.sl
9.53
KB
-rw-r--r--
ctags.slc
7.34
KB
-rw-r--r--
cua.hlp
385
B
-rw-r--r--
cua.sl
7.56
KB
-rw-r--r--
cua.slc
3.91
KB
-rw-r--r--
cuamisc.sl
5.7
KB
-rw-r--r--
cuamisc.slc
1.63
KB
-rw-r--r--
dabbrev.sl
13.77
KB
-rw-r--r--
dabbrev.slc
8.05
KB
-rw-r--r--
dcl.sl
4.68
KB
-rw-r--r--
dcl.slc
4.5
KB
-rw-r--r--
defaults.sl
1.07
KB
-rw-r--r--
digraph.sl
3.8
KB
-rw-r--r--
digraph.slc
1.04
KB
-rw-r--r--
dired.sl
17.78
KB
-rw-r--r--
dired.slc
12.69
KB
-rw-r--r--
docbook.sl
38.33
KB
-rw-r--r--
docbook.slc
38.41
KB
-rw-r--r--
dos437.sl
998
B
-rw-r--r--
dos850.sl
1.3
KB
-rw-r--r--
dos852.sl
1.14
KB
-rw-r--r--
edt.hlp
1.6
KB
-rw-r--r--
edt.sl
14.55
KB
-rw-r--r--
edt.slc
7.93
KB
-rw-r--r--
emacs.hlp
227
B
-rw-r--r--
emacs.sl
6.86
KB
-rw-r--r--
emacs.slc
6.31
KB
-rw-r--r--
emacsmsc.sl
3.52
KB
-rw-r--r--
emacsmsc.slc
3.52
KB
-rw-r--r--
emul.sl
87
B
-rw-r--r--
f90.sl
22.75
KB
-rw-r--r--
f90.slc
18.39
KB
-rw-r--r--
ff90.sl
56
B
-rw-r--r--
ff90.slc
82
B
-rw-r--r--
filter.sl
646
B
-rw-r--r--
filter.slc
562
B
-rw-r--r--
folding.sl
13.47
KB
-rw-r--r--
folding.slc
11.13
KB
-rw-r--r--
fortran.sl
10.65
KB
-rw-r--r--
fortran.slc
7.79
KB
-rw-r--r--
generic.hlp
135
B
-rw-r--r--
gpg.sl
4.89
KB
-rw-r--r--
gpg.slc
4.51
KB
-rw-r--r--
help.sl
15.37
KB
-rw-r--r--
help.slc
12
KB
-rw-r--r--
history.sl
5.73
KB
-rw-r--r--
history.slc
2.2
KB
-rw-r--r--
hooks.sl
1.95
KB
-rw-r--r--
hooks.slc
1.74
KB
-rw-r--r--
html.dfa
6.13
KB
-rw-r--r--
html.sl
13.63
KB
-rw-r--r--
html.slc
10.06
KB
-rw-r--r--
ide.hlp
1.25
KB
-rw-r--r--
ide.sl
22.57
KB
-rw-r--r--
ide.slc
20.07
KB
-rw-r--r--
idl.sl
5.58
KB
-rw-r--r--
idl.slc
5.34
KB
-rw-r--r--
info.sl
19.92
KB
-rw-r--r--
info.slc
17.16
KB
-rw-r--r--
isearch.sl
7.7
KB
-rw-r--r--
isearch.slc
5.01
KB
-rw-r--r--
iso-lat2.sl
963
B
-rw-r--r--
iso-lat2.slc
1010
B
-rw-r--r--
iso-lat3.sl
1.3
KB
-rw-r--r--
iso-lat3.slc
994
B
-rw-r--r--
iso-latin.sl
625
B
-rw-r--r--
iso-latin.slc
420
B
-rw-r--r--
iso2xxx.sl
1.77
KB
-rw-r--r--
iso2xxx.slc
1.39
KB
-rw-r--r--
ispell.sl
2.99
KB
-rw-r--r--
ispell.slc
2.26
KB
-rw-r--r--
javamode.dfa
7.59
KB
-rw-r--r--
javamode.sl
3.24
KB
-rw-r--r--
javamode.slc
3.29
KB
-rw-r--r--
jed.hlp
356
B
-rw-r--r--
jed.rc
9.43
KB
-rw-r--r--
jed.sl
3.57
KB
-rw-r--r--
jed.slc
4.01
KB
-rw-r--r--
jedhelp.sl
1.43
KB
-rw-r--r--
jedhelp.slc
1.49
KB
-rw-r--r--
jedusage.sl
967
B
-rw-r--r--
jedusage.slc
1.08
KB
-rw-r--r--
keycode.sl
4.46
KB
-rw-r--r--
keydefs.sl
9.21
KB
-rw-r--r--
keydefs.slc
6.63
KB
-rw-r--r--
krconv.sl
1.86
KB
-rw-r--r--
krconv.slc
1.45
KB
-rw-r--r--
latex.sl
27.01
KB
-rw-r--r--
latex.slc
20.94
KB
-rw-r--r--
latex209.sl
2.24
KB
-rw-r--r--
latex209.slc
1.57
KB
-rw-r--r--
linux.sl
821
B
-rw-r--r--
lisp.sl
1.21
KB
-rw-r--r--
lisp.slc
1.1
KB
-rw-r--r--
ltx-comp.dat
2.01
KB
-rw-r--r--
ltx-math.sl
4.12
KB
-rw-r--r--
ltx-math.slc
3.95
KB
-rw-r--r--
lua.sl
13.05
KB
-rw-r--r--
macro.sl
2.08
KB
-rw-r--r--
macro.slc
1.95
KB
-rw-r--r--
mail.sl
4.82
KB
-rw-r--r--
mail.slc
4.17
KB
-rw-r--r--
mailalias.sl
6.21
KB
-rw-r--r--
mailalias.slc
3.61
KB
-rw-r--r--
mailedit.sl
10.79
KB
-rw-r--r--
mailutils.sl
3.52
KB
-rw-r--r--
makemode.sl
6.83
KB
-rw-r--r--
man.sl
1.8
KB
-rw-r--r--
man.slc
948
B
-rw-r--r--
maple.sl
2.14
KB
-rw-r--r--
maple.slc
1.91
KB
-rw-r--r--
matlab.sl
5.07
KB
-rw-r--r--
matlab.slc
4.07
KB
-rw-r--r--
menu.sl
4.7
KB
-rw-r--r--
menu.slc
3.91
KB
-rw-r--r--
menus.sl
2.31
KB
-rw-r--r--
menus.slc
1.74
KB
-rw-r--r--
mime.sl
1.98
KB
-rw-r--r--
mime.slc
1.75
KB
-rw-r--r--
mimemisc.sl
684
B
-rw-r--r--
mimemisc.slc
733
B
-rw-r--r--
mini.sl
4.54
KB
-rw-r--r--
mini.slc
3.73
KB
-rw-r--r--
minued.sl
8.99
KB
-rw-r--r--
minued.slc
4.37
KB
-rw-r--r--
misc.sl
4.01
KB
-rw-r--r--
misc.slc
2.51
KB
-rw-r--r--
modehook.sl
3.71
KB
-rw-r--r--
modehook.slc
1.64
KB
-rw-r--r--
modeinfo.sl
1.6
KB
-rw-r--r--
modeinfo.slc
1.48
KB
-rw-r--r--
most.sl
3.64
KB
-rw-r--r--
most.slc
3.13
KB
-rw-r--r--
mouse.sl
5.15
KB
-rw-r--r--
mousex.sl
8.33
KB
-rw-r--r--
mousex.slc
4.36
KB
-rw-r--r--
mswmouse.sl
6.85
KB
-rw-r--r--
mutekeys.sl
3.19
KB
-rw-r--r--
mutekeys.slc
1.49
KB
-rw-r--r--
nroff.sl
1.09
KB
-rw-r--r--
nroff.slc
709
B
-rw-r--r--
occur.sl
1.48
KB
-rw-r--r--
occur.slc
1.03
KB
-rw-r--r--
os.sl
4.22
KB
-rw-r--r--
paste.sl
509
B
-rw-r--r--
paste.slc
485
B
-rw-r--r--
perl.sl
33.63
KB
-rw-r--r--
perl.slc
13.77
KB
-rw-r--r--
perlxtra.sl
13.1
KB
-rw-r--r--
perlxtra.slc
5.18
KB
-rw-r--r--
php.sl
83.23
KB
-rw-r--r--
php.slc
54.16
KB
-rw-r--r--
pipe.sl
567
B
-rw-r--r--
pipe.slc
579
B
-rw-r--r--
popups.sl
9.03
KB
-rw-r--r--
popups.slc
8.88
KB
-rw-r--r--
preparse.sl
1.69
KB
-rw-r--r--
pscript.dfa
21.64
KB
-rw-r--r--
pscript.sl
4.79
KB
-rw-r--r--
pscript.slc
4.3
KB
-rw-r--r--
pushmode.sl
1.84
KB
-rw-r--r--
pushmode.slc
1.55
KB
-rw-r--r--
pymode.sl
17.24
KB
-rw-r--r--
pymode.slc
12.9
KB
-rw-r--r--
python.dfa
6.54
KB
-rw-r--r--
rcs.sl
4.27
KB
-rw-r--r--
rcs.slc
2.86
KB
-rw-r--r--
recent.sl
4.53
KB
-rw-r--r--
recent.slc
2.73
KB
-rw-r--r--
recentx.sl
10.13
KB
-rw-r--r--
recentx.slc
6.38
KB
-rw-r--r--
regexp.sl
1.63
KB
-rw-r--r--
regexp.slc
1.54
KB
-rw-r--r--
register.sl
4.11
KB
-rw-r--r--
register.slc
3.1
KB
-rw-r--r--
replace.sl
1.39
KB
-rw-r--r--
replace.slc
1.09
KB
-rw-r--r--
rmail.sl
38.64
KB
-rw-r--r--
rmail.slc
35.99
KB
-rw-r--r--
rot13.sl
497
B
-rw-r--r--
rot13.slc
379
B
-rw-r--r--
runpgm.sl
690
B
-rw-r--r--
sccs.sl
4.33
KB
-rw-r--r--
sccs.slc
2.54
KB
-rw-r--r--
search.sl
2.5
KB
-rw-r--r--
search.slc
2.29
KB
-rw-r--r--
seldisp.sl
806
B
-rw-r--r--
seldisp.slc
617
B
-rw-r--r--
sendmail.sl
7.02
KB
-rw-r--r--
sendmail.slc
5.73
KB
-rw-r--r--
session.sl
5.91
KB
-rw-r--r--
session.slc
3.46
KB
-rw-r--r--
shell.sl
6.26
KB
-rw-r--r--
shell.slc
3.32
KB
-rw-r--r--
shmode.dfa
1.57
KB
-rw-r--r--
shmode.sl
2.33
KB
-rw-r--r--
shmode.slc
1.91
KB
-rw-r--r--
simple.hlp
407
B
-rw-r--r--
site.sl
76.36
KB
-rw-r--r--
site.slc
36.67
KB
-rw-r--r--
slmode.dfa
3.22
KB
-rw-r--r--
slmode.sl
7.1
KB
-rw-r--r--
slmode.slc
5.79
KB
-rw-r--r--
sort.sl
1.21
KB
-rw-r--r--
sort.slc
1.13
KB
-rw-r--r--
sortmisc.sl
751
B
-rw-r--r--
sortmisc.slc
546
B
-rw-r--r--
spicemod.sl
1.06
KB
-rw-r--r--
spicemod.slc
1.03
KB
-rw-r--r--
srchmisc.sl
3.22
KB
-rw-r--r--
srchmisc.slc
2.56
KB
-rw-r--r--
syncproc.sl
3.58
KB
-rw-r--r--
syncproc.slc
2.36
KB
-rw-r--r--
syntax.sl
3.05
KB
-rw-r--r--
syntax.slc
1.47
KB
-rw-r--r--
tabs.sl
1.39
KB
-rw-r--r--
tabs.slc
1.31
KB
-rw-r--r--
tclmode.dfa
4.69
KB
-rw-r--r--
tclmode.sl
10.41
KB
-rw-r--r--
tclmode.slc
6.11
KB
-rw-r--r--
tex.sl
2.39
KB
-rw-r--r--
tex.slc
779
B
-rw-r--r--
texcom.dfa
1.5
KB
-rw-r--r--
texcom.sl
4.75
KB
-rw-r--r--
texcom.slc
4.12
KB
-rw-r--r--
textmode.sl
2.05
KB
-rw-r--r--
textmode.slc
974
B
-rw-r--r--
tiasm.sl
1.16
KB
-rw-r--r--
tiasm.slc
1.11
KB
-rw-r--r--
tmisc.sl
841
B
-rw-r--r--
tmisc.slc
786
B
-rw-r--r--
tmmode.sl
2.01
KB
-rw-r--r--
tmmode.slc
1.65
KB
-rw-r--r--
tmpfile.sl
2.83
KB
-rw-r--r--
tmpfile.slc
1.56
KB
-rw-r--r--
tpascal.dfa
7.65
KB
-rw-r--r--
tpascal.sl
5.77
KB
-rw-r--r--
tpascal.slc
5.51
KB
-rw-r--r--
untab.sl
1021
B
-rw-r--r--
untab.slc
569
B
-rw-r--r--
util.sl
544
B
-rw-r--r--
util.slc
293
B
-rw-r--r--
verilog.sl
1.49
KB
-rw-r--r--
verilog.slc
1.52
KB
-rw-r--r--
vhdlmode.sl
8.45
KB
-rw-r--r--
vhdlmode.slc
5.6
KB
-rw-r--r--
vmshelp.sl
2.25
KB
-rw-r--r--
win1250.sl
1.29
KB
-rw-r--r--
wmark.sl
4.36
KB
-rw-r--r--
wmark.slc
3.61
KB
-rw-r--r--
wmenu.sl
4.72
KB
-rw-r--r--
wmenu.slc
4.86
KB
-rw-r--r--
wordstar.hlp
909
B
-rw-r--r--
wordstar.sl
15.56
KB
-rw-r--r--
wordstar.slc
13.93
KB
-rw-r--r--
xformreg.sl
1.7
KB
-rw-r--r--
xformreg.slc
1.36
KB
-rw-r--r--
yankpop.sl
2.21
KB
-rw-r--r--
yankpop.slc
2.01
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : bibtex.sl
% BIBTeX mode for JED % % Version: 1.9 % Original Author: Carsten Tinggaard Nielsen, tinggard@iesd.auc.dk % Update: 2001-04-24 % ----------------------------------------------------------------------- % History: % 1.9 24 Apr 2001 % Added user defined default values for fields. % 1.8 16 Oct 1999 % removed local_setkey statements from bibtex_mode function. % Added '&' character to mode menu. --JED % 1.7 15 October 1999 % * fixed bug where OPT would be removed from e.g. ".. optical.." in title % with bibtex_removeOPT and consequently bibtex_clean_entry % * JED recommended self_insert_cmd thingy for keypress " to normal " % * more highlight keywords % Charl P. Botha <cpbotha@ieee.org> % 1.6 30 September 1999 % added syntax table % Charl P. Botha <cpbotha@ieee.org> % 1.5 26 September 1999 % added mode menu for bibtex mode % Charl P. Botha <cpbotha@ieee.org> % 1.4 29 May 1995 % fixed bug refering to bibtex_insert_quote: using tex_insert_quote % added usage of LaTeX font commands: ^C^F % as suggested by Franz-Josef Knelangen % 1.3 16 May 1995 % next/prev field can now position correct in "" and "{}" % changed def of next entry to ESC N / Meta N % changed def of prev entry to ESC P / Meta P % ESC p and ESC P does the same job now. % 1.2 11 May 1995 % from fjk@ruf.uni-freiburg.de (Franz-Josef Knelangen): % next field ^n % prev field ^p % next entry ESC n % prev entry ESC p % 1.1 10 May 1995 % Optimized code after suggestions by John E. Davis % 1.0 08 May 1995 % Public release to comp.editors,comp.text.tex,alt.lang.s-lang % ----------------------------------------------------------------------- % % When bibtex mode is loaded, 'bibtex_mode_hook' is called. % This hook will allow users to customize the mode. % So, in your jed.rc /.jedrc file, % add something like: % define bibtex_mode_hook () { % local_setkey ("bibtex_Article", "^C^E^A"); % } % which binds the function to Ctrl-C Ctrl-E Ctrl-A % % For customization, the 'bibtex_item_hook' is called everytime a % template is entered into the buffer. % To add your own entry, % then add something like (in your jed.rc /.jedrc file): % autoload ("bib_field", "bibtex.sl"); % define bibtex_item_hook () { % bib_field("myentry"); % } % Your additions will be placed before the note/annote field. % The variable bibtex_item_name holds current name like Article, Manual etc. %------------------------------------------------------------------------- % Load the common definitions if not already loaded. This also defines % the TeX-Mode syntax table require ("latex"); % % For customization, the 'bib_field_default_hook' is called everytime a % new field is inserted. It takes the name of the field and returns the % default value (or the empty string). Simply add to your jed.rc/.jedrc: % define bibtex_field_default_hook (fieldstr) { % switch (fieldstr) % {case "isbn" : "3-934601-";} % {case "location" : "Jena";} % {case "publisher" : "IKS Garamond";} % {case "address" : "Wildenbruchstr. 15, 07745 Jena, Germany";} % {"";} % } % %------------------------------------------------------------------------- variable bib_OPT_flag = 0; % if true then insert OPT in the field names variable bib_indent = 16; % amount of whitespace before '=' variable bibtex_item_name = Null_String; % name of current item define bib_set_OPT () { bib_OPT_flag = 1; } define bib_unset_OPT () { bib_OPT_flag = 0; } define bib_field (fieldstr) { variable sl; sl = bib_indent - strlen(fieldstr); insert(",\n "); if (bib_OPT_flag) { insert("OPT"); sl -= 3; } vinsert ("%s =", fieldstr); insert_spaces(sl); sl = ""; variable hook = __get_reference ("bibtex_field_default_hook"); if (hook != NULL) sl = @hook (fieldstr); if (fieldstr == "title") vinsert("\"{%s}\"", sl); else vinsert("\"%s\"", sl); } define bib_journal () { bib_field("journal"); } define bib_year () { bib_field("year"); } define bib_volume () { bib_field("volume"); } define bib_number () { bib_field("number"); } define bib_pages () { bib_field("pages"); } define bib_month () { bib_field("month"); } define bib_editor () { bib_field("editor"); } define bib_publisher () { bib_field("publisher"); } define bib_series () { bib_field("series"); } define bib_address () { bib_field("address"); } define bib_edition () { bib_field("edition"); } define bib_howpublished () { bib_field("howpublished"); } define bib_booktitle () { bib_field("booktitle"); } define bib_organization () { bib_field("organization"); } define bib_institution () { bib_field("institution"); } define bib_school () { bib_field("school"); } define bib_type () { bib_field("type"); } define bib_chapter () { bib_field("chapter"); } define bib_note () { bib_field("note"); } define bib_author () { bib_field("author"); } define bib_item (itemstr, use_author) { vinsert("@%s{", itemstr); bibtex_item_name = itemstr; bib_unset_OPT(); if (use_author) { bib_author();} bib_field("title"); } define bib_itemend (use_note) { bib_field("location"); bib_field("isbn"); bib_field("keywords"); run_mode_hooks("bibtex_item_hook"); if (use_note) { bib_note(); } bib_field("annote"); insert("\n}\n\n"); pop(bsearch("{,")); go_right_1 (); } define bib_cref_and_key() { bib_set_OPT(); bib_field("crossref"); bib_field("key"); } define bibtex_Article () { bib_item("Article", 1); bib_journal(); bib_year(); bib_cref_and_key(); bib_volume(); bib_number(); bib_pages(); bib_month(); bib_itemend(1); } define bibtex_Book () { bib_item("Book", 1); bib_publisher(); bib_year(); bib_cref_and_key(); bib_editor(); bib_volume(); bib_number(); bib_series(); bib_address(); bib_edition(); bib_month(); bib_itemend(1); } define bibtex_preamble () { insert("@Preamble\{\}\n"); go_left(2); } define bibtex_string () { insert("@string\{ = \"\"\}\n"); go_left(7); } define bibtex_Unpublished () { bib_item("Unpublished", 1); bib_note(); bib_cref_and_key(); bib_year(); bib_month(); bib_itemend(0); } define bibtex_TechReport () { bib_item("TechReport", 1); bib_institution(); bib_year(); bib_cref_and_key(); bib_type(); bib_number(); bib_address(); bib_month(); bib_itemend(1); } define bibtex_PhdThesis () { bib_item("PhdThesis", 1); bib_school(); bib_year(); bib_cref_and_key(); bib_address(); bib_month(); bib_type(); bib_itemend(1); } define bibtex_Proceedings () { bib_item("Proceedings", 0); bib_year(); bib_cref_and_key(); bib_editor(); bib_volume(); bib_series(); bib_publisher(); bib_organization(); bib_address(); bib_month(); bib_itemend(1); } define bibtex_Misc () { bib_item("Misc", 0); bib_cref_and_key(); bib_author(); bib_howpublished(); bib_year(); bib_month(); bib_itemend(1); } define bibtex_MastersThesis () { bib_item("MastersThesis", 1); bib_school(); bib_year(); bib_cref_and_key(); bib_address(); bib_month(); bib_type(); bib_itemend(1); } define bibtex_Manual () { bib_item("Manual", 0); bib_cref_and_key(); bib_author(); bib_organization(); bib_address(); bib_edition(); bib_year(); bib_month(); bib_itemend(1); } define bibtex_InProceedings () { bib_item("InProceedings", 1); bib_cref_and_key(); bib_editor(); bib_volume(); bib_number(); bib_series(); bib_pages(); bib_booktitle(); bib_year(); bib_organization(); bib_publisher(); bib_address(); bib_month(); bib_itemend(1); } define bibtex_InCollection () { bib_item("InCollection", 1); bib_cref_and_key(); bib_booktitle(); bib_publisher(); bib_year(); bib_editor(); bib_volume(); bib_number(); bib_series(); bib_type(); bib_chapter(); bib_pages(); bib_address(); bib_edition(); bib_month(); bib_itemend(1); } define bibtex_InBook () { bib_item("InBook", 1); bib_chapter(); bib_cref_and_key(); bib_publisher(); bib_year(); bib_editor(); bib_pages(); bib_volume(); bib_number(); bib_series(); bib_address(); bib_edition(); bib_type(); bib_month(); bib_itemend(1); } define SearchInThisLine(str) { % return 1 if str is found at current line variable thisline = what_line(); variable res = 0; bol(); if (fsearch(str)) if (thisline == what_line()) res = 1; ifnot (res) { goto_line(thisline); bol(); } return res; } variable bibtex_remove_value = 0; % 0:nothing removed 1:OPT 2:killed define bibtex_removeOPT () { % remove the string OPT from the current line % if there is no text in the entry then the line is deleted % ensure beginning of current line bol(); bibtex_remove_value = 0; % if current line has OPT then go on if (SearchInThisLine(" OPT")) { % first make sure that the OPT is before the = ! % get current column variable thiscolumn = what_column(); % get position of equal sign variable r = SearchInThisLine(" ="); variable esigncolumn = what_column(); % if there is an equal sign and the OPT is before the =, we can nuke it if (r and (thiscolumn < esigncolumn)) { % go back to where we were just after the initial OPT search go_left(esigncolumn - thiscolumn); % replace OPT with spaces after = go_right_1 (); deln(3); if (SearchInThisLine(" =")) { go_right(2); insert_spaces(3); } bibtex_remove_value = 1; % if the line has no information then kill it if (SearchInThisLine("\"\"")) { delete_line(); bibtex_remove_value = 2; } } } } define bibtex_clean_entry () { % remove lines where field starts with OPT and ends with "" % remove lines if the contains no information % if lines has OPT and "<anything>" then OPT is removed and % line is adjusted accordingly % the stopmark is "}" at the first position in a line or eobp(). () = bsearch_char ('@'); go_down_1(); while (looking_at_char('}') == 0) { bibtex_removeOPT(); if (bibtex_remove_value == 1) go_down(1); % removed OPT in line with content ifnot (bibtex_remove_value) { % did nothing, check for empty line if (SearchInThisLine("\"\"")) delete_line(); else go_down_1(); } bol(); } % there must not be a comma after the last entry go_left(2); if (looking_at_char(',')) del(); bol(); go_down(3); } define bibtex_no(whatdir, whatstr) { vmessage ("There is no %s %s", whatdir, whatstr); } define bibtex_no_next(whatstr) { bibtex_no("next", whatstr); } define bibtex_no_prev(whatstr) { bibtex_no("previous", whatstr); } define bibtex_next_entry() { % jump to the next entry: Article, Manual if (fsearch_char ('@')) { % first char of entry () = fsearch_char ('{'); % point at label go_right_1 (); } else bibtex_no_next("entry"); } define bibtex_prev_entry() { % jump to the previous entry: Article, Manual if (bsearch_char ('}')){ % last char of entry () = bsearch_char ('@'); % first char of entry () = fsearch_char ('{'); % point at label go_right_1 (); } else bibtex_no_prev("entry"); } define bibtex_go_into_field() { % A std. field is of the form "" % the title field is of the form "{}" % if the field is of the title form "{}" the % posiiton the cursor between the braces. go_right(2); if (looking_at_char ('{')) go_right_1 (); } define bibtex_next_field() { % jump to the next field: author, title if (fsearch(" \"")) bibtex_go_into_field(); else bibtex_no_next("field"); } define bibtex_prev_field() { % jump to the previous field: author,title bol(); if (bsearch(" \"")) bibtex_go_into_field(); else bibtex_no_prev("field"); } private variable bibtexName = "BibTeX"; private variable bibtexModeName = bibtexName + "-Mode"; ifnot (keymap_p(bibtexModeName)) { make_keymap (bibtexModeName); definekey ("tex_insert_quote", "\"", bibtexModeName); definekey ("tex_insert_quote", "'", bibtexModeName); definekey ("tex_blink_dollar", "$", bibtexModeName); % The next two conflict with other, non-emacs, bindings --JED %definekey ("bibtex_next_field", "^N", bibtexModeName); %definekey ("bibtex_prev_field", "^P", bibtexModeName); definekey ("bibtex_next_entry", "\eN", bibtexModeName); definekey ("bibtex_prev_entry", "\eP", bibtexModeName); definekey("self_insert_cmd", "\"", bibtexModeName); % These are the keys that have a ^C prefix definekey_reserved ("tex_font", "^F", bibtexModeName); definekey_reserved ("bibtex_Article", "a", bibtexModeName); definekey_reserved ("bibtex_Book", "b", bibtexModeName); definekey_reserved ("bibtex_Unpublished", "u", bibtexModeName); definekey_reserved ("bibtex_string", "s", bibtexModeName); definekey_reserved ("bibtex_TechReport", "t", bibtexModeName); definekey_reserved ("bibtex_PhdThesis", "T", bibtexModeName); definekey_reserved ("bibtex_preamble", "P", bibtexModeName); definekey_reserved ("bibtex_Proceedings", "p", bibtexModeName); definekey_reserved ("bibtex_Misc", "M", bibtexModeName); definekey_reserved ("bibtex_MastersThesis", "m", bibtexModeName); definekey_reserved ("bibtex_Manual", "^M", bibtexModeName); definekey_reserved ("bibtex_InProceedings", "I", bibtexModeName); definekey_reserved ("bibtex_InCollection", "i", bibtexModeName); definekey_reserved ("bibtex_InBook", "B", bibtexModeName); definekey_reserved ("bibtex_removeOPT", "^O", bibtexModeName); definekey_reserved ("bibtex_clean_entry", "^C", bibtexModeName); } % syntax table and keywords for bibtex stuff added by <cpbotha@ieee.org> create_syntax_table (bibtexName); % comments define_syntax ("%", "", '%', bibtexName); % matching set of delimiters (for blinking) define_syntax ("{", "}", '(', bibtexName); % string (key values) define_syntax ('"', '"', bibtexName); % keywords define_syntax ("0-9a-zA-Z_@", 'w', bibtexName); % delimiter define_syntax (",", ',', bibtexName); % operator define_syntax ("=", '+', bibtexName); % keywords are case-insensitive set_syntax_flags (bibtexName, 1); () = define_keywords_n (bibtexName, "key", 3, 0); () = define_keywords_n (bibtexName, "notetypeyear", 4, 0); () = define_keywords_n (bibtexName, "monthpagestitle", 5, 0); () = define_keywords_n (bibtexName, "authoreditornumberschoolseriesvolume", 6, 0); () = define_keywords_n (bibtexName, "addresschaptereditionjournal", 7, 0); () = define_keywords_n (bibtexName, "crossref", 8, 0); () = define_keywords_n (bibtexName, "booktitlepublisher", 9, 0); () = define_keywords_n (bibtexName, "institution", 11, 0); () = define_keywords_n (bibtexName, "howpublishedorganization", 12, 0); % now for the entry types () = define_keywords_n (bibtexName, "@book@misc", 5, 1); () = define_keywords_n (bibtexName, "@inbook@manual@string", 7, 1); () = define_keywords_n (bibtexName, "@article", 8, 1); () = define_keywords_n (bibtexName, "@preamble", 9, 1); () = define_keywords_n (bibtexName, "@phdthesis", 10, 1); () = define_keywords_n (bibtexName, "@techreport", 11, 1); () = define_keywords_n (bibtexName, "@proceedings@unpublished", 12, 1); () = define_keywords_n (bibtexName, "@incollection", 13, 1); () = define_keywords_n (bibtexName, "@inproceedings@mastersthesis", 14, 1); private define init_menu (menu) { menu_append_item (menu, "&Article", "bibtex_Article"); menu_append_item (menu, "&Book", "bibtex_Book"); menu_append_item (menu, "&Unpublished", "bibtex_Unpublished"); menu_append_item (menu, "&TechReport", "bibtex_TechReport"); menu_append_item (menu, "&PhdThesis", "bibtex_PhdThesis"); menu_append_item (menu, "P&roceedings", "bibtex_Proceedings"); menu_append_item (menu, "&Misc", "bibtex_Misc"); menu_append_item (menu, "Ma&stersThesis", "bibtex_MastersThesis"); menu_append_item (menu, "Ma&nual", "bibtex_Manual"); menu_append_item (menu, "&InProceedings", "bibtex_InProceedings"); menu_append_item (menu, "In&Collection", "bibtex_InCollection"); menu_append_item (menu, "InBoo&k", "bibtex_InBook"); menu_append_separator (menu); menu_append_item (menu, "Next &Field", "bibtex_next_field"); menu_append_item (menu, "Pre&vious Field", "bibtex_prev_field"); menu_append_item (menu, "Next &Entry", "bibtex_next_entry"); menu_append_item (menu, "Previo&us Entry", "bibtex_prev_entry"); menu_append_separator (menu); menu_append_item (menu, "Rem&ove OPT", "bibtex_removeOPT"); menu_append_item (menu, "C&lean entry", "bibtex_clean_entry"); } define bibtex_mode () { use_keymap (bibtexModeName); set_mode (bibtexName, 0x1 | 0x20); set_buffer_hook ("par_sep", "tex_paragraph_separator"); set_buffer_hook ("wrap_hook", "tex_wrap_hook"); TAB = 0; % pure spaces in this mode mode_set_mode_info (bibtexName, "init_mode_menu", &init_menu); use_syntax_table(bibtexName); run_mode_hooks ("bibtex_mode_hook"); } %-----------------------------------------------------------% define bibtex_info_find_node () { variable node; node = read_mini ("Node:", Null_String, Null_String); ifnot (strlen (node)) return; info_reader (); info_find_node ("(bibtex)top"); info_find_node ("(bibtex)" + node); }
Close