Control: package yasnippet
Control: retitle -1 yasnippet: causes warnings about obsolete ‘flet’ and ‘assoc’
Control: tags -1 + confirmed upstream
Control: thanks

On 06-Jan-2015, Olivier Berger wrote:
> On Thu, Nov 27, 2014 at 10:02:17AM +0100, Olivier Berger wrote:
> > When starting emacs, the *Messages* buffer reports :
> > ...
> > Loading /etc/emacs/site-start.d/50yasnippet.el (source)...
> > ../../usr/share/emacs/site-lisp/yasnippet/yasnippet.el: `flet' is an 
> > obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'.
> > […]
> 
> There's also another annoying message about :
> Package assoc is obsolete!
> 
> Hopefully, this may be fixed in most recent upstream version at
> https://github.com/capitaomorte/yasnippet/releases

One file in the upstream repository which causes this behaviour is
<URL:https://github.com/capitaomorte/yasnippet/blob/master/doc/yas-doc-helper.el>
(there may be more files, that's just the first one I found).

The latest revision still contains the problematic code in that file
<URL:https://github.com/capitaomorte/yasnippet/blob/21ffe4b797e7c54f128fdf3ee205273e74f1be33/doc/yas-doc-helper.el>::

    (defun yas--document-symbol (symbol level)
      (flet ((concat-lines (&rest lines)
                           (mapconcat #'identity lines "\n")))
    […]

and::

    (let* ((dir (if load-file-name (file-name-directory load-file-name)
                  default-directory))
      […]
           (project (assoc "yasnippet" org-publish-project-alist)))
      (if project
                (setcdr project proj-plist)
      […]

Maintainer, please report this as a bug (or two separate bugs)
upstream so they can address this.

-- 
 \          “Instead of a trap door, what about a trap window? The guy |
  `\      looks out it, and if he leans too far, he falls out. Wait. I |
_o__)                guess that's like a regular window.” —Jack Handey |
Ben Finney <b...@benfinney.id.au>

Attachment: signature.asc
Description: Digital signature

Reply via email to