Commit graph

23 commits

Author SHA1 Message Date
53d3959e1b changes for MELPA compatibility 2022-08-02 12:48:02 +02:00
John Andrews
8503b2a3e2 Better autoloads
Add autoloads which will cause whole sclang package to be loaded.
2021-08-19 13:26:51 -04:00
John Andrews
19dfecc8ca Revert "Combine sclang-mode into the main sclang file"
This reverts commit c414b9c7ab.
2021-08-16 19:57:43 -04:00
John Andrews
c414b9c7ab Combine sclang-mode into the main sclang file
Because the only autoloaded function is sclang-mode, the sclang file was
not being evaluated. This made it impossible to use-package properly in
order to configure the package. Combining the files makes the most sense
as sclang.el wasn't doing much anyways.
2021-08-09 22:34:47 -04:00
John Andrews
9b160ec102 Fix the load issue by unwrapping requires 2021-08-09 12:05:52 -04:00
TatriX
8472f03dbf Use define-derived-mode from prog-mode and update auto-mode-alist 2020-03-25 23:14:32 +01:00
TatriX
7bfbd1929d scel: Add support for completion-at-point-functions and company-mode 2020-02-26 17:10:07 +01:00
Mario Lang
e43da1aa99 Fix a number of overlooked obsolete aliases
For some reason, these slipped my attention.  Sorry about that.
Also:
* `nconc' is more efficient then `append' if destructive modification is not
  an issue.
* Emacs 26 actually deprecated `string-as-multibyte' in favour of
  `decode-coding-string' since the latter actually forces the user to
  specify an encoding.
2019-12-26 11:12:53 +01:00
Mario Lang
bb6bce1671 Use cl-lib instead of obsolete cl package
This is actually pretty boring.  It replaces calls to obsolete aliases
with the properly namespaced functions from the cl-lib package.

This raises our minimal Emacs version requirement to 24.3 (2013-03-10).
However, people using earlier versions can install the cl-lib package
from the Emacs package system.

While at it:
* remove function `sclang-document-list' which was really useless.
* fix `sclang-format-pseq' which needed to use `cl-labels'
  instead of `cl-flet' to actually work.
* (cl-reduce (lambda (a b) (or a b)) (mapcar function list))
  is much better written as (and now properly short-circuits):
  (cl-some function list)
* (cl-remove-if 'null list)
  should be written as
  (remq nil list)
2019-12-25 14:14:13 +01:00
modula t. worm
16835a43e2 Prevent Emacs fontification failure w/ lots of classes - Fixes #248
What I've done to fix this:

- add a sclang-class-list variable in sclang-language.el, which is a
  list of all the classes known to sclang. this is populated when
  sclang starts.
- update sclang-font-lock-class-keyword-matcher in
  sclang-mode.el. since the sclang-class-name-regexp now will match
  all words that start with a capital letter (see next bullet point
  for that change), this function had to be updated to check to make
  sure that the word starting with a capital letter is in the list of
  classes. if it is, then we know it's a class and it gets
  highlighted. if it's not, then it's just something the user typed
  with a capital letter, so we don't highlight it.
- update sclang-update-font-lock in sclang-mode.el. instead of
  generating a huge regexp from a list of all the classes in
  SuperCollider, just run the normal fontification from that
  function. this avoids making the regexp too big and thus prevents
  fontification from failing.
2016-11-21 17:13:01 -06:00
Tim Blechmann
a20081f26a scel: initial support for SCDoc help browser
this patch introduces two new key bindings:
C-c C-y: open help browser via Help.gui
C-c h:   open help browser for a specific topic

the old help browser is still available via C-c C-h and can be used to
display pre-rendered help files.

Signed-off-by: Tim Blechmann <tim@klingt.org>
2011-10-01 11:33:24 +02:00
Tim Blechmann
83d0d94a1a scel: bytecompile fix, correct use of defvar and defconst and add requirements
Signed-off-by: Tim Blechmann <tim@klingt.org>
2011-07-22 20:35:00 +02:00
Tim Blechmann
6726ce6618 scel: use in-process library recompilation
scel is modified to support in-process library recompilation. the key
binding has slightly been changed:
C-c C-l - recompile the library
C-c C-o - restart the interpreter

Signed-off-by: Tim Blechmann <tim@klingt.org>
2011-06-27 21:50:03 +02:00
Tim Blechmann
d1639c1cbb remove trailing whitespaces
git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@9417 a380766d-ff14-0410-b294-a243070f3f08
2009-09-26 06:17:48 +00:00
Marije Baalman
4bff94c0cc committed ide platform switch for emacs/scel, and added the evaluate document shortcut
git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@9398 a380766d-ff14-0410-b294-a243070f3f08
2009-09-12 15:11:18 +00:00
Dan Stowell
6be16de284 Update address of Free Software Foundation (debian source-checking tools produce warnings about this).
Also putting slightly more explicit copyright attribution in some files (for similar reason).


git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@9082 a380766d-ff14-0410-b294-a243070f3f08
2009-04-20 08:38:27 +00:00
Marije Baalman
0f83b8132a sclang side of dev support
git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@9039 a380766d-ff14-0410-b294-a243070f3f08
2009-04-09 21:09:47 +00:00
Marije Baalman
03c461eb75 small fix for dev support shortcut
git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@9038 a380766d-ff14-0410-b294-a243070f3f08
2009-04-09 21:06:20 +00:00
Marije Baalman
c18dbb6efe added scel function for shortcut to open source file at development location
git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@9037 a380766d-ff14-0410-b294-a243070f3f08
2009-04-09 20:53:47 +00:00
andersvi
89784e1ee8 'unescaped' caret (removed backslash) character in syntax-table to not
break compilation in emacs v.23.

(string (char-syntax ?\^)) -> breaks in v. 22 as well, however
mofify-syntax-entry accepts it...


git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@8942 a380766d-ff14-0410-b294-a243070f3f08
2009-03-17 09:26:52 +00:00
Marije Baalman
34a4a5222b added sclang-dump-full-interface and changed sclang-dump-interface, added shortcut for the latter, change sclang-eval-region shortcut to C-c C-d, which is less likely to accidentally quit emacs
git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@8492 a380766d-ff14-0410-b294-a243070f3f08
2009-01-11 17:05:43 +00:00
Marije Baalman
90806c7ab3 added another shortcut for the sclang-complete-symbol (the old one conflicts with some windowmanagers) and added an entry for the function to the menu
git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@8453 a380766d-ff14-0410-b294-a243070f3f08
2009-01-08 06:18:51 +00:00
Marije Baalman
89fba7d169 move scel to editors
git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@8370 a380766d-ff14-0410-b294-a243070f3f08
2009-01-02 19:06:25 +00:00