emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [bug] YASnippet (bound to SPC) and Org in `master'


From: Sebastien Vauban
Subject: [O] [bug] YASnippet (bound to SPC) and Org in `master'
Date: Mon, 24 Nov 2014 10:30:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (windows-nt)

Hello,

In Org `master' (not in `maint'), there is a bug (or conflict or ???)
when one binds `yas-expand' to SPC (the "abbrev-way"), as in the
following minimal Emacs configuration file:

--8<---------------cut here---------------start------------->8---
;; Autoloads.
(add-to-list 'load-path "~/.emacs.d/elpa/yasnippet-20141117.327")
(load-library "yasnippet-autoloads")

;; Enable YASnippet in all buffers.
(yas-global-mode 1)

;; Bind yas-expand to SPC (abbrev-way).
(define-key yas-minor-mode-map (kbd "SPC") 'yas-expand)
--8<---------------cut here---------------end--------------->8---

With the above config, typing SPC after any word in any Org table cell
deletes the whole contents of the cell... [1]

When typing, for example, "Every word gets deleted on pressing SPC...",
you successively only see "Every", then "word", then "gets", ..., and
then finally "SPC..." as the cell contents!

Searching for the difference between `maint' and `master' shows that the
problem occurs since the following commit in `master':

--8<---------------cut here---------------start------------->8---
e8b51c0ce5d6dbd5f2c6cfff2d260a3f5f7ac58f is the first bad commit
commit e8b51c0ce5d6dbd5f2c6cfff2d260a3f5f7ac58f
Author: Bastien Guerry <address@hidden>
Date:   Mon Jul 28 17:28:54 2014 +0200

    org.el (org-self-insert-command): Use `yas-expand'

    * org.el (org-self-insert-command): Use `yas-expand' as
    yas/expand is obsolete since Yasnippet 0.8.

    Thanks to Craig Tanis for reporting this.

:040000 040000 203e5106edcfa9d9809cae034e9f551819f75941 
a43fde57dd3143ddd91b932f6634bb09c7857708 M      lisp
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

[1] Demo on http://screencast.com/t/KKKCQJYo.

-- 
Sebastien Vauban




reply via email to

[Prev in Thread] Current Thread [Next in Thread]