Commit graph

14 commits

Author SHA1 Message Date
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
widp 95120e310b change instances of flet to cl-flet as flet is obsolete 2018-07-28 20:01:58 +05:30
modula t. worm c52e2912b6 populate sclang-class-list 2016-11-21 17:37:37 -06: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
Martin Marier 6d6ec77634 Fix bug #132
Fix #132.  Incorrect regexp caused methods names with a capital letter to be interpreted as a class name.  Adding a start of word \\< seems to fix it.
2016-10-05 03:51:37 -03:00
bion 3ca01e04ed Highlight uppercase symbols in emacs 2014-10-15 00:31:48 -07:00
Tim Blechmann 3e5cf00140 scel: avoid temporary file for symbol table
the symbol table can simply be passed via the command fifo, there is no
need for using a temporary file.

Signed-off-by: Tim Blechmann <tim@klingt.org>
2011-10-10 21:00:39 +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
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
andersvi e2897e6cdd modified clang-point-in-defun-p to allow positioning on the beginning
paren and immediately after the end-paren of a block


git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@8884 a380766d-ff14-0410-b294-a243070f3f08
2009-03-06 10:09:50 +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 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