When editing an Autoconf (configure.ac
) file I observe strange behaviour when using M-;
(comment-dwim
) to uncomment a selected region. When a region with comments is selected comment-dwim
calls uncomment-region
, so maybe the problem is in that function.
Commenting a region works as expected:
# ACML
AC_SEARCH_LIBS(dgemm, acml_mp,
[found_blas=1 AM_CPPFLAGS="-D_acml_ $AM_CPPFLAGS"],
[AC_MSG_NOTICE([NOT using AMD the ACML library])],
[-lgfortran]
)
becomes:
dnl # ACML
dnl AC_SEARCH_LIBS(dgemm, acml_mp,
dnl [found_blas=1 AM_CPPFLAGS="-D_acml_ $AM_CPPFLAGS"],
dnl [AC_MSG_NOTICE([NOT using AMD the ACML library])],
dnl [-lgfortran]
dnl )
However, when trying to uncomment the region, the result is:
dnl ACML
dnl AC_SEARCH_LIBS(dgemm, acml_mp,
[found_blas=1 AM_CPPFLAGS="-D_acml_ $AM_CPPFLAGS"],
dnl [AC_MSG_NOTICE([NOT using AMD the ACML library])],
[-lgfortran]
dnl )
Did I miss something or have I hit a bug?
-Q
. I probably should start looking for a Emacs 24.4 repo for Ubuntu...