Questions tagged [libraries]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
20 views

Does it exists any library and or functionality that provides an API for indenting major modes?

I am currently maintaining a fork of a major mode and I usually get by through reusing snippets other people have written that provides indention for similar languages. However, this does lead to a ...
1
vote
0answers
33 views

does this routine exist? until (while until true)

I found myself needing this control loop and was very surprised not to find it in the standard library. Does it exist by some other name? (defmacro until (form &optional guard) "Runs `while' on ...
1
vote
0answers
58 views

f.el: f-split behaviour

Using f-split from f.el: (require 'f) (f-split "c:/a/b") returns ("/" "c:" "a" "b") What is the rationale? Shouldn't it be ("c:" "a" "b")? Also in Emacs for Windows the value of: (f-path-...
1
vote
1answer
1k views

libMagickWand-6.Q16.so.2 . . . No such file or directory

I just upgraded from Ubuntu 16.10 to 17.04, and now my Emacs (25.1.1), working fine before, is broken. Here is the error from running emacs --debug-init emacs: error while loading shared libraries: ...
0
votes
0answers
27 views

Packages with user-facing generators / generator logic?

Are there any popular Emacs packages that incorporate generators in any of their user-facing functions / API? I'm thinking of the core Emacs lisp implementation (iter-defun, iter-yield, etc.), but ...
4
votes
2answers
399 views

How to re-load a package?

The situation I have is this. First, I run (require 'prolog) ...which loads the system's default version of prolog.el, and makes the variable prolog-mode-version available. It has value "1.22". ...
0
votes
0answers
122 views

Missing features on Windows

I am trying to assemble a list of features that work out of the box on Linux but will fail on a standard installation without addinng additional executables or DLLs, or are not implemented at all for ...
0
votes
1answer
134 views

emacs interface to ubuntu package management (apt, dpkg)

Is there an emacs library for managing packages on Ubuntu, ie an emacs based alternative to synaptic and aptitude? Presumably this would be an elisp wrapper around apt, dpkg and friends and look ...
8
votes
1answer
3k views

What does (require 'package) mean for emacs and how does it differ from load-file?

I just began using emacs a few days ago and I read somewhere that (require 'package-name) is not needed when the said package is installed using package-install. But why, what does (require 'package-...
1
vote
1answer
169 views

(require 'flx-ido) fails, but “M-x flx-ido-mode” succeeds

I installed the flx-ido package from MELPA, and added the following two lines of code to my .emacs file. (require 'flx-ido) (flx-ido-mode 1) Emacs startup fails with the following error: File error:...
1
vote
1answer
130 views

Writing C++ (or other) code using lisp

I was wondering if are existing tools or package to write C++ (or other langage) code from lisp. For example, this afternoon I needed to create 4 basic classes: class D{ public: D(){ } }; ...
9
votes
1answer
546 views

Unload a whole package or library tree

Sometimes I want to call unload-feature to unload a library… and it a library depends on it… and another library depends on that library… How can I unload a library and all the libraries that depends ...
0
votes
0answers
32 views

sct-dot fails on updated simple-call-tree

sct-dot is convenient for visualizing relationships by graphviz(dot) among functions in programs. EmacsWiki: Simple Call Tree Unfortunately, since simple-call-tree has updated from 20150806.1133 to ...
5
votes
2answers
414 views

What templates are available for generating an elisp library?

At some point I remember encountering a command that generated a skeleton of a properly formatted emacs-lisp library as below: ;;; library.el --- summary ;; Copyright ... ;; Author: ;; Keywords: ;;...
0
votes
1answer
777 views

Emacs GDB does not load shared library symbols

I am trying to debug a C/MPI library that I have built. All objects are compiled using GCC and -ggdb, they are also linked using -ggdb. When I try to attach a gdb session to the process with the -p ...
4
votes
2answers
702 views

Does autoload load all functions in the file or just the one specified?

I have developed some private extensions to some major modes, and I would like to load those extensions only when the given major mode is actually used by the user. The extensions consists of a set of ...
2
votes
2answers
485 views

How to use function update-file-autoloads and and variable generated-autoload-file?

Let's say I have Emacs Lisp library ~/emacs/my-lib.el with contents: ;;;###autoload (defun my-func() "hello" (interactive) (message "Hello")) (provide 'my-lib) I would now like to produce a ...
5
votes
2answers
664 views

How to use autoload?

I am trying to figure out how to add autoload features to a private library. Let's say I have developed a private Lisp library "my-lib.el". It consist of a set of functions, some can be used from any ...
5
votes
3answers
1k views

where are emacs lisp files?

I'm trying to add line numbers to emacs, following this guide: Linum: Separating line numbers from text. I have to edit "linum.el" to add some code, however I can't find that file. I'm using ubuntu, ...
4
votes
0answers
372 views

Are there any Emacs libraries for encoding protocol buffers?

I've found a mode for editing protocol buffer definitions but I'm looking for a library to serialise and de-serialise the wire protocol itself.
3
votes
1answer
2k views

How can I install eww or shr in Emacs 23?

I am beginner using Emacs 23.4, and I wanted to try a web browser package. From Emacs wiki, I found eww. But when Emacs starts I get from *Warnings*: File error: Cannot open load file, shr I get the ...
15
votes
3answers
5k views

Easiest way to install Emacs Windows support libraries

I installed binaries of Emacs 24.4 for Windows and want to install the support libraries described in the Emacs for Windows README. The latest precompiled libraries are available from the ezwinports ...
10
votes
1answer
483 views

Are there any libraries for input fields in Emacs?

Quite a few Emacs modes use (something like) forms: the customization interface is one of them, the Message mode (read: its header part) is another one; there are more of them, unfortunately not ...
30
votes
3answers
3k views

When should I use autoload instead of require?

From what I understand require is used to load large chunks of code (something like modules) although it can also load individual functions. Autoload on the other side, only registers functions and ...