Skip to content

Remove cl-flet #225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 16, 2015
Merged

Remove cl-flet #225

merged 2 commits into from
Feb 16, 2015

Conversation

syohex
Copy link
Collaborator

@syohex syohex commented Feb 16, 2015

We should not use cl-flet because

  • cl-flet is different from flet on Emacs >=24.3
  • We should use for defining local function cl-labels or
    anonymous function(lambda) + funcall instead of flet
    (flet should be used for overriding function temporary,
    however we should use cl-letf for this purpose)
  • It is unnecessary at all to using cl-flet in php-mode.el now.

We should not use cl-flet because
 - cl-flet is different from flet on Emacs >=24.3
 - We should use for defining local function cl-labels or
   anonymous function(lambda) + funcall instead of flet
   (flet should be used for overriding function temporary,
    however we should use cl-letf for this purpose)
 - It is unnecessary at all to using cl-flet in php-mode.el now.
syohex added a commit that referenced this pull request Feb 16, 2015
@syohex syohex merged commit e46c80f into master Feb 16, 2015
@syohex syohex deleted the remove-cl-flet branch February 16, 2015 14:28
@ejmr
Copy link
Collaborator

ejmr commented Feb 16, 2015

Thanks, this was educational; I didn't know cl-flet and flet were no longer synonymous as of Emacs 24.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants