Emacs

615 readers
1 users here now

founded 2 years ago
MODERATORS
51
52
53
 
 

Emacs 30.1 includes security fixes for a shell injection vulnerability in man.el (CVE-2025-1244), and for arbitrary code execution with flymake (CVE-2024-53920). We recommend upgrading immediately.

54
55
 
 

Hello,

the most powerful thing in elisp is program as data but what does it mean how can I run data as a program. I was confused too but here is what I found.

First I tried this:

(setq x '(+ 1 3))
(x)

basically setting the value of x as a list. now x is set to some code but when I try to run x as function using (x) syntax we get this error *** Eval error *** Symbol’s function definition is void: x. It tried to look for function in x but couldn't find it. then how can I run the code that I stored in a variable? how to evaluate it? we need a built-in function eval.

If we run this code it works and outputs 4:

(setq x '(+ 1 3))
(eval x)

so yeah, it is how you can evaluate a code stored in a variable. feel free to correct me if there is another way to achieve it :)

56
 
 

cross-posted from: https://discuss.tchncs.de/post/25591500

Hi! I'd like to share a package of mine that was recently made available on MELPA.

Disproject is a package for GNU Emacs that provides integration with project.el and allows for dispatching various project-related commands via Transient menus.

It is similar to (and inspired by) the function project-switch-project, but also attempts to improve on its feature set in addition to the use of Transient. Projectile users may also find similarities to projectile-commander.

Some notable features include (but may not be limited to):

  • Auto-detecting the current project when starting the menu.
  • Switching between active projects (i.e. only those with open buffers).
  • Defining custom per-project suffixes like compilation commands to show in the menu (see disproject-custom-suffixes).
  • An option to prefer displaying buffers to another window when executing commands.
  • When available, integration with: envrc; magit; magit-todos; mise.el.
  • A set of customizable variables to substitute some commands in the menu (see Customization).
57
 
 

The latest, 29.x, version of Emacs. Whenever I drap&drop an image into a note, it'll open an image in a new buffer. An image won't get embedded or attached onto a note. Why not? Hasn't d&d functionality been added since several versions ago, natively?

How to embed or attach an image onto a note? Preferably, a) by Drap&Drop b) without any third-party package

58
59
 
 

announce the release of Magit version 4.0.

One of the best things to happen to EMACS!

More information can be found on in the release notes.

60
61
62
63
 
 

Hello,

I am an vim user and I am used to the vim way of doing things. I started tinkering with emacs some time ago and enjoying it since because of the elisp. however I find the default keybinding kinda weird and it's hard to get used to it. we can't even vi" or ci" in emacs. also emacs doesn't have inbuilt multi cursor support.

I really want to use emacs but these things are holding me back :(

64
65
66
67
68
69
1
Emacs 29.3 released (lists.gnu.org)
submitted 2 years ago* (last edited 2 years ago) by mac@programming.dev to c/emacs@programming.dev
 
 

Emacs 29.3 is an emergency bugfix release intended to fix several security vulnerabilities described below.

** Arbitrary Lisp code is no longer evaluated as part of turning on Org mode. This is for security reasons, to avoid evaluating malicious Lisp code.

** New buffer-local variable 'untrusted-content'. When this is non-nil, Lisp programs should treat buffer contents with extra caution.

** Gnus now treats inline MIME contents as untrusted. To get back previous insecure behavior, 'untrusted-content' should be reset to nil in the buffer.

** LaTeX preview is now by default disabled for email attachments. To get back previous insecure behavior, set the variable 'org--latex-preview-when-risky' to a non-nil value.

** Org mode now considers contents of remote files to be untrusted. Remote files are recognized by calling 'file-remote-p'.

70
71
72
73
74
75
view more: ‹ prev next ›