Comments (6)
from subed.
That prints "Debug on Error enabled globally" and exits with 0.
It's strange.
The error on my computer is caused by the following code in subed-autoloads.el
:
(dolist (item subed--init-alist) (let ((file-ext-regex (car item))) (add-to-list 'auto-mode-alist (cons (concat "\\." file-ext-regex "\\'") 'subed-mode))))
When I moved the definition of subed--init-alist
from subed-config.el
to subed.el
, then remake autoloads, the error dispear:
- subed-config.el
- (defvar subed--init-alist '(("srt" . subed-srt--init)
- ("vtt" . subed-vtt--init))
- "Alist that maps file extensions to format-specific init functions.")
- subed.el
+ ;;;###autoload
+ (defvar subed--init-alist '(("srt" . subed-srt--init)
+ ("vtt" . subed-vtt--init))
+ "Alist that maps file extensions to format-specific init functions.")
...
;;;###autoload
(dolist (item subed--init-alist)
(let ((file-ext-regex (car item)))
(add-to-list 'auto-mode-alist (cons (concat "\\." file-ext-regex "\\'")
'subed-mode))))
- subed-autoloads.el
+ (defvar subed--init-alist '(("srt" . subed-srt--init) ("vtt" . subed-vtt--init)) "\
+ Alist that maps file extensions to format-specific init functions.")
...
(dolist (item subed--init-alist) (let ((file-ext-regex (car item))) (add-to-list 'auto-mode-alist (cons (concat "\\." file-ext-regex "\\'") 'subed-mode))))
from subed.
from subed.
Where did you get
subed-autoloads.el
? It's not part of the repo.
Now I understand why there is no error occurs on your computer, because you used the source code directly, that makes autoload
not take effect.
I installed subed via quelpa:
(quelpa '(subed :fetcher github "rndusr/subed" :files "subed/*.el"))
It compiles the source into an ELPA compatible package, the subed-autoloads.el
is thus created.
The little change I made above will ensure that the definition of subed--init-alist
will also be added to subed-autoloads.el
before the dolist
statement: twlz0ne@73ad0a5
from subed.
Same problem here, I'm using borg to install this package which will also generate an autoload file when building.
twlz0ne's patch resolves this issue.
from subed.
from subed.
Related Issues (20)
- Default faces clash with different theme styles HOT 1
- How to insert a new subtitle that begin at the actual timestamp of mpv? HOT 5
- can we use this for transcription of audio files? HOT 3
- Adopt REUSE standard for copyright and licensing HOT 6
- subed recenters on save, breaking scroll-all-mode HOT 3
- Describe workflow for converting a series of lines like "2:34 foo bar" to subtitles? HOT 1
- subed fails to open the corresponding video file automatically HOT 8
- Define `subed-loop-seconds-before` and `subed-loop-seconds-after` in millisecond? HOT 2
- org-links to subtitles by number HOT 3
- adjust time of current subtitle end and next subtitle start? HOT 41
- saving subed buffer removes flyspell overlays HOT 5
- typo in subed.el (subed-prepare-for-save) HOT 4
- mark ring is emptied on save HOT 2
- How to read a property from mpv HOT 4
- How to use IINA with subed? HOT 3
- (error "Found invalid start time: \"00:00:00.000 --> 00:00:03.400\"") HOT 3
- How to use subed-scale-subtitles-forward? HOT 2
- The looping over period of timestamp do not change instantly after merge with the next subtitle. HOT 3
- subed-mpv--socket: Couldn’t make directory /scp:edrx@linode:/tmpsubed HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from subed.