From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Monnier Subject: Re: Completing with anything Date: Tue, 24 May 2011 11:05:43 -0300 Message-ID: References: <87r5bhysp6.fsf@keller.adm.naquadah.org> <87mxm2na63.fsf@member.fsf.org> <87vd0qfhu3.fsf@member.fsf.org> <87y63jpii5.fsf@keller.adm.naquadah.org> <871v0ecwe4.fsf@keller.adm.naquadah.org> <87aaecihl2.fsf@gmail.com> <87lixwkzi4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <87lixwkzi4.fsf@gmail.com> (Antoine Levitt's message of "Tue, 24 May 2011 15:18:59 +0200") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org To: Antoine Levitt Cc: emacs-orgmode@gnu.org, emacs-devel@gnu.org List-Id: emacs-orgmode.gnu.org > (defadvice completion-at-point > (after completion-at-point-complete-if-failed activate) > "Fallback on dabbrev if completion didn't do anything useful." > (unless ad-return-value > (dabbrev-expand nil))) BTW, you can avoid the advice by using your own (defun al-completion-at-point () (interactive) (or (completion-at-point) (dabbrev-expand nil))) -- Stefan