11module Docs
22 class Elisp < FileScraper
33 self . type = 'elisp'
4- self . release = '28.2 '
4+ self . release = '31.1.50 '
55 self . base_url = 'https://www.gnu.org/software/emacs/manual/html_node/elisp/'
66 self . root_path = 'index.html'
77 self . links = {
88 home :'https://www.gnu.org/software/emacs/manual/elisp' ,
99 code : 'https://git.savannah.gnu.org/cgit/emacs.git'
1010 }
1111
12- html_filters . push 'elisp/entries ' , 'elisp/clean_html '
12+ html_filters . push 'elisp/clean_html ' , 'elisp/entries '
1313
1414 # some file that were not skipped by skip patterns
1515 options [ :skip ] = [
@@ -24,46 +24,17 @@ class Elisp < FileScraper
2424 /Antinews.html/ ,
2525 /GNU-Free-Documentation-License.html/ ,
2626 /GPL.html/ ,
27- /Tips.html/ ,
28- /Definition-of-/
27+ /Tips.html/
2928 ]
3029
31- # fix duplicates
32- options [ :fix_urls ] = -> ( url ) do
33- url . sub! ( 'Window-Group.html' , 'Basic-Windows.html' )
34- url . sub! ( 'Local-defvar-example.html' , 'Using-Lexical-Binding.html' )
35- url . sub! ( 'Defining-Lisp-variables-in-C.html' , 'Writing-Emacs-Primitives.html' )
36- url . sub! ( 'describe_002dsymbols-example.html' , 'Accessing-Documentation.html' )
37- url . sub! ( 'The-interactive_002donly-property.html' , 'Defining-Commands.html' )
38- url . sub! ( 'Text-help_002decho.html' , 'Special-Properties.html' )
39- url . sub! ( 'Help-display.html' , 'Special-Properties.html' )
40- url . sub! ( 'autoload-cookie.html' , 'Autoload.html' )
41- url . sub! ( 'external_002ddebugging_002doutput.html' , 'Output-Streams.html' )
42- url . sub! ( 'modifier-bits.html' , 'Other-Char-Bits.html' )
43- url . sub! ( 'message_002dbox.html' , 'Displaying-Messages.html' )
44- url . sub! ( 'abbreviate_002dfile_002dname.html' , 'Directory-Names.html' )
45- url . sub! ( 'Inhibit-point-motion-hooks.html' , 'Special-Properties.html' )
46- url . sub! ( 'Coding-systems-for-a-subprocess.html' , 'Process-Information.html' )
47- url . sub! ( 'Process-Filter-Example.html' , 'Filter-Functions.html' )
48- url . sub! ( 'Docstring-hyperlinks.html' , 'Documentation-Tips.html' )
49- url . sub! ( 'seq_002dlet.html' , 'Sequence-Functions.html' )
50- url . sub! ( 'should_005fquit.html' , 'Module-Misc.html' )
51- url . sub! ( 'Display-Face-Attribute-Testing.html' , 'Display-Feature-Testing.html' )
52- url . sub! ( 'module-initialization-function.html' , 'Module-Initialization.html' )
53- url . sub! ( 'pcase_002dsymbol_002dcaveats.html' , 'pcase-Macro.html' )
54- url . sub! ( 'intern.html' , 'Module-Misc.html' )
55- url . sub! ( 'pcase_002dexample_002d1.html' , 'pcase-Macro.html' )
56- url
57- end
58-
5930 options [ :attribution ] = <<-HTML
60- Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc. < br >
31+ Copyright © 1990-1996, 1998-2026 Free Software Foundation, Inc. < br >
6132 Licensed under the GNU GPL license.
6233 HTML
6334
6435 def get_latest_version ( opts )
6536 body = fetch ( 'https://www.gnu.org/software/emacs/manual/html_node/elisp/index.html' , opts )
66- body . scan ( /version \d * \. ? \d */ ) [ 0 ] . sub ( 'version' , '' )
37+ body . scan ( /version \d +(?: \. \d +) */ ) [ 0 ] . sub ( 'version ' , '' )
6738 end
6839
6940 private
0 commit comments