aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2013-04-27 22:34:02 +0900
committerKenichi Handa2013-04-27 22:34:02 +0900
commit13d0e56fa3f73d3583b39409d98aefc30ea52daa (patch)
tree2ac0129ee112a3c2a662d25db50d5ca0afb8a672
parent8bd722db81bcb303d6945b800c7ccb615a5474a5 (diff)
parent8beecaeda0d28bff0c4d3c2758bb938c656728b5 (diff)
downloademacs-13d0e56fa3f73d3583b39409d98aefc30ea52daa.tar.gz
emacs-13d0e56fa3f73d3583b39409d98aefc30ea52daa.zip
merge trunk
-rw-r--r--ChangeLog7
-rwxr-xr-xautogen/configure49
-rw-r--r--configure.ac30
-rw-r--r--lisp/ChangeLog24
-rw-r--r--lisp/emacs-lisp/tabulated-list.el11
-rw-r--r--lisp/progmodes/octave.el33
-rw-r--r--lisp/textmodes/remember.el3
-rw-r--r--src/ChangeLog5
-rw-r--r--src/lisp.h6
9 files changed, 137 insertions, 31 deletions
diff --git a/ChangeLog b/ChangeLog
index 5f74726a743..cf1d4f0d54e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
12013-04-26 Paul Eggert <eggert@cs.ucla.edu>
2
3 Port better to AIX (Bug#14258).
4 * configure.ac (CFLAGS): Append -O if the user did not specify CFLAGS,
5 we did not already infer an optimization option, and -O works.
6 AIX xlc needs -O, otherwise garbage collection doesn't work.
7
12013-04-22 Paul Eggert <eggert@cs.ucla.edu> 82013-04-22 Paul Eggert <eggert@cs.ucla.edu>
2 9
3 * make-dist: Do not distribute admin/unidata/Makefile. 10 * make-dist: Do not distribute admin/unidata/Makefile.
diff --git a/autogen/configure b/autogen/configure
index 7ddac01fb10..bd900b5afef 100755
--- a/autogen/configure
+++ b/autogen/configure
@@ -7271,10 +7271,10 @@ esac
7271 # Code from module xalloc-oversized: 7271 # Code from module xalloc-oversized:
7272 7272
7273 7273
7274# It's helpful to have C macros available to GDB, so prefer -g3 to -g
7275# if -g3 works and the user does not specify CFLAGS.
7276# This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7277if test "$ac_test_CFLAGS" != set; then 7274if test "$ac_test_CFLAGS" != set; then
7275 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7276 # if -g3 works and the user does not specify CFLAGS.
7277 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7278 case $CFLAGS in 7278 case $CFLAGS in
7279 '-g') 7279 '-g')
7280 emacs_g3_CFLAGS='-g3';; 7280 emacs_g3_CFLAGS='-g3';;
@@ -7312,12 +7312,49 @@ rm -f core conftest.err conftest.$ac_objext \
7312fi 7312fi
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5 7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7314$as_echo "$emacs_cv_prog_cc_g3" >&6; } 7314$as_echo "$emacs_cv_prog_cc_g3" >&6; }
7315 if test $emacs_cv_prog_cc_g3 = yes; then 7315 if test $emacs_cv_prog_cc_g3 != yes; then
7316 CFLAGS=$emacs_g3_CFLAGS
7317 else
7318 CFLAGS=$emacs_save_CFLAGS 7316 CFLAGS=$emacs_save_CFLAGS
7319 fi 7317 fi
7320 fi 7318 fi
7319
7320 case $CFLAGS in
7321 *-O*) ;;
7322 *)
7323 # No optimization flag was inferred for this non-GCC compiler.
7324 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7325 emacs_save_CFLAGS=$CFLAGS
7326 test -z "$CFLAGS" || CFLAGS="$CFLAGS "
7327 CFLAGS=${CFLAGS}-O
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7329$as_echo_n "checking whether $CC accepts -O... " >&6; }
7330if test "${emacs_cv_prog_cc_o+set}" = set; then :
7331 $as_echo_n "(cached) " >&6
7332else
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334/* end confdefs.h. */
7335
7336int
7337main ()
7338{
7339
7340 ;
7341 return 0;
7342}
7343_ACEOF
7344if ac_fn_c_try_link "$LINENO"; then :
7345 emacs_cv_prog_cc_o=yes
7346else
7347 emacs_cv_prog_cc_o=no
7348fi
7349rm -f core conftest.err conftest.$ac_objext \
7350 conftest$ac_exeext conftest.$ac_ext
7351fi
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7353$as_echo "$emacs_cv_prog_cc_o" >&6; }
7354 if test $emacs_cv_prog_cc_o != yes; then
7355 CFLAGS=$emacs_save_CFLAGS
7356 fi ;;
7357 esac
7321fi 7358fi
7322 7359
7323# Check whether --enable-gcc-warnings was given. 7360# Check whether --enable-gcc-warnings was given.
diff --git a/configure.ac b/configure.ac
index 2b3afc1fb80..6c59dcaa7e3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -613,10 +613,10 @@ AC_DEFUN([gl_THREADLIB])
613dnl Amongst other things, this sets AR and ARFLAGS. 613dnl Amongst other things, this sets AR and ARFLAGS.
614gl_EARLY 614gl_EARLY
615 615
616# It's helpful to have C macros available to GDB, so prefer -g3 to -g
617# if -g3 works and the user does not specify CFLAGS.
618# This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
619if test "$ac_test_CFLAGS" != set; then 616if test "$ac_test_CFLAGS" != set; then
617 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
618 # if -g3 works and the user does not specify CFLAGS.
619 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
620 case $CFLAGS in 620 case $CFLAGS in
621 '-g') 621 '-g')
622 emacs_g3_CFLAGS='-g3';; 622 emacs_g3_CFLAGS='-g3';;
@@ -632,13 +632,29 @@ if test "$ac_test_CFLAGS" != set; then
632 [emacs_cv_prog_cc_g3], 632 [emacs_cv_prog_cc_g3],
633 [AC_LINK_IFELSE([AC_LANG_PROGRAM()], 633 [AC_LINK_IFELSE([AC_LANG_PROGRAM()],
634 [emacs_cv_prog_cc_g3=yes], 634 [emacs_cv_prog_cc_g3=yes],
635 [emacs_cv_prog_cc_g3=no])]) 635 [emacs_cv_prog_cc_g3=no])])
636 if test $emacs_cv_prog_cc_g3 = yes; then 636 if test $emacs_cv_prog_cc_g3 != yes; then
637 CFLAGS=$emacs_g3_CFLAGS
638 else
639 CFLAGS=$emacs_save_CFLAGS 637 CFLAGS=$emacs_save_CFLAGS
640 fi 638 fi
641 fi 639 fi
640
641 case $CFLAGS in
642 *-O*) ;;
643 *)
644 # No optimization flag was inferred for this non-GCC compiler.
645 # Try -O. This is needed for xlc on AIX; see Bug#14258.
646 emacs_save_CFLAGS=$CFLAGS
647 test -z "$CFLAGS" || CFLAGS="$CFLAGS "
648 CFLAGS=${CFLAGS}-O
649 AC_CACHE_CHECK([whether $CC accepts -O],
650 [emacs_cv_prog_cc_o],
651 [AC_LINK_IFELSE([AC_LANG_PROGRAM()],
652 [emacs_cv_prog_cc_o=yes],
653 [emacs_cv_prog_cc_o=no])])
654 if test $emacs_cv_prog_cc_o != yes; then
655 CFLAGS=$emacs_save_CFLAGS
656 fi ;;
657 esac
642fi 658fi
643 659
644AC_ARG_ENABLE([gcc-warnings], 660AC_ARG_ENABLE([gcc-warnings],
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 340dc41a744..30c49c942c6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,21 @@
12013-04-26 Reuben Thomas <rrt@sc3d.org>
2
3 * textmodes/remember.el (remember-store-in-files): Document that
4 the file name format is passed to `format-time-string'.
5
62013-04-26 Leo Liu <sdl.web@gmail.com>
7
8 * progmodes/octave.el (octave-sync-function-file-names): New function.
9 (octave-mode): Use it in before-save-hook.
10
112013-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
12
13 * emacs-lisp/tabulated-list.el (tabulated-list-mode): Disable undo
14 (bug#14274).
15
16 * progmodes/octave.el (octave-smie-forward-token): Properly skip
17 \n and comment, even if it's not an implicit ; (bug#14218).
18
12013-04-26 Glenn Morris <rgm@gnu.org> 192013-04-26 Glenn Morris <rgm@gnu.org>
2 20
3 * subr.el (read-number): Once more use `read' rather than 21 * subr.el (read-number): Once more use `read' rather than
@@ -20,7 +38,7 @@
20 38
21 * progmodes/octave.el (octave-submit-bug-report): Obsolete. 39 * progmodes/octave.el (octave-submit-bug-report): Obsolete.
22 (octave-mode, inferior-octave-mode): Use setq-local. 40 (octave-mode, inferior-octave-mode): Use setq-local.
23 (octave-not-in-string-or-comment-p): Renamed to 41 (octave-not-in-string-or-comment-p): Rename to
24 octave-in-string-or-comment-p. 42 octave-in-string-or-comment-p.
25 (octave-in-comment-p, octave-in-string-p) 43 (octave-in-comment-p, octave-in-string-p)
26 (octave-in-string-or-comment-p): Replace defsubst with defun. 44 (octave-in-string-or-comment-p): Replace defsubst with defun.
@@ -36,8 +54,8 @@
36 54
372013-04-25 Leo Liu <sdl.web@gmail.com> 552013-04-25 Leo Liu <sdl.web@gmail.com>
38 56
39 * progmodes/octave.el (octave-completion-at-point-function): Make 57 * progmodes/octave.el (octave-completion-at-point-function):
40 use of inferior octave process. 58 Make use of inferior octave process.
41 (octave-initialize-completions): Remove. 59 (octave-initialize-completions): Remove.
42 (inferior-octave-completion-table): New function. 60 (inferior-octave-completion-table): New function.
43 (inferior-octave-completion-at-point): Use it. 61 (inferior-octave-completion-at-point): Use it.
diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el
index da487e463e2..6dba423010f 100644
--- a/lisp/emacs-lisp/tabulated-list.el
+++ b/lisp/emacs-lisp/tabulated-list.el
@@ -519,12 +519,11 @@ printer is `tabulated-list-print-entry', but a mode that keeps
519data in an ewoc may instead specify a printer function (e.g., one 519data in an ewoc may instead specify a printer function (e.g., one
520that calls `ewoc-enter-last'), with `tabulated-list-print-entry' 520that calls `ewoc-enter-last'), with `tabulated-list-print-entry'
521as the ewoc pretty-printer." 521as the ewoc pretty-printer."
522 (setq truncate-lines t) 522 (setq-local truncate-lines t)
523 (setq buffer-read-only t) 523 (setq-local buffer-read-only t)
524 (set (make-local-variable 'revert-buffer-function) 524 (setq-local buffer-undo-list t)
525 'tabulated-list-revert) 525 (setq-local revert-buffer-function #'tabulated-list-revert)
526 (set (make-local-variable 'glyphless-char-display) 526 (setq-local glyphless-char-display tabulated-list-glyphless-char-display))
527 tabulated-list-glyphless-char-display))
528 527
529(put 'tabulated-list-mode 'mode-class 'special) 528(put 'tabulated-list-mode 'mode-class 'special)
530 529
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el
index 640775bfe8b..f8b9e4f6fab 100644
--- a/lisp/progmodes/octave.el
+++ b/lisp/progmodes/octave.el
@@ -461,11 +461,12 @@ Non-nil means always go to the next Octave code line after sending."
461 (forward-comment 1)) 461 (forward-comment 1))
462 (cond 462 (cond
463 ((and (looking-at "$\\|[%#]") 463 ((and (looking-at "$\\|[%#]")
464 (not (smie-rule-bolp)) 464 ;; Ignore it if it's within parentheses or if the newline does not end
465 ;; Ignore it if it's within parentheses. 465 ;; some preceding text.
466 (prog1 (let ((ppss (syntax-ppss))) 466 (prog1 (and (not (smie-rule-bolp))
467 (not (and (nth 1 ppss) 467 (let ((ppss (syntax-ppss)))
468 (eq ?\( (char-after (nth 1 ppss)))))) 468 (not (and (nth 1 ppss)
469 (eq ?\( (char-after (nth 1 ppss)))))))
469 (forward-comment (point-max)))) 470 (forward-comment (point-max))))
470 ;; Why bother distinguishing \n and ;? 471 ;; Why bother distinguishing \n and ;?
471 ";") ;;"\n" 472 ";") ;;"\n"
@@ -625,6 +626,7 @@ including a reproducible test case and send the message."
625 626
626 (add-hook 'completion-at-point-functions 627 (add-hook 'completion-at-point-functions
627 'octave-completion-at-point-function nil t) 628 'octave-completion-at-point-function nil t)
629 (add-hook 'before-save-hook 'octave-sync-function-file-names nil t)
628 (setq-local beginning-of-defun-function 'octave-beginning-of-defun) 630 (setq-local beginning-of-defun-function 'octave-beginning-of-defun)
629 631
630 (easy-menu-add octave-mode-menu)) 632 (easy-menu-add octave-mode-menu))
@@ -1007,6 +1009,27 @@ directory and makes this the current buffer's default directory."
1007 nil 1009 nil
1008 (delete-horizontal-space) 1010 (delete-horizontal-space)
1009 (insert (concat " " octave-continuation-string)))) 1011 (insert (concat " " octave-continuation-string))))
1012
1013(defun octave-sync-function-file-names ()
1014 "Ensure function name agree with function file name.
1015See Info node `(octave)Function Files'."
1016 (interactive)
1017 (save-excursion
1018 (when (and buffer-file-name
1019 (prog2
1020 (goto-char (point-min))
1021 (equal (funcall smie-forward-token-function) "function")
1022 (forward-word -1)))
1023 (let ((file (file-name-sans-extension
1024 (file-name-nondirectory buffer-file-name)))
1025 (func (and (re-search-forward octave-function-header-regexp nil t)
1026 (match-string 3))))
1027 (when (and func
1028 (not (equal file func))
1029 (yes-or-no-p
1030 "Function name different from file name. Fix? "))
1031 (replace-match file nil nil nil 3))))))
1032
1010 1033
1011;;; Indentation 1034;;; Indentation
1012 1035
diff --git a/lisp/textmodes/remember.el b/lisp/textmodes/remember.el
index 76ffeaf30be..c8bafd8176a 100644
--- a/lisp/textmodes/remember.el
+++ b/lisp/textmodes/remember.el
@@ -444,7 +444,8 @@ If you want to remember a region, supply a universal prefix to
444 444
445(defun remember-store-in-files () 445(defun remember-store-in-files ()
446 "Store remember data in a file in `remember-data-directory'. 446 "Store remember data in a file in `remember-data-directory'.
447The file is named after `remember-directory-file-name-format'." 447The file is named after `remember-directory-file-name-format' fed through
448`format-time-string'."
448 (let ((name (format-time-string 449 (let ((name (format-time-string
449 remember-directory-file-name-format (current-time))) 450 remember-directory-file-name-format (current-time)))
450 (text (buffer-string))) 451 (text (buffer-string)))
diff --git a/src/ChangeLog b/src/ChangeLog
index 5dd113775d9..d649c1bcdbc 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -3,6 +3,11 @@
3 * font.c (font_open_entity): Always open a font of manageable 3 * font.c (font_open_entity): Always open a font of manageable
4 size. 4 size.
5 5
62013-04-26 Paul Eggert <eggert@cs.ucla.edu>
7 Port better to AIX (Bug#14258).
8 * lisp.h (ENUM_BF) [__IBMC__]: Make it 'unsigned int' here, too,
9 to pacify AIX xlc.
10
62013-04-24 Kenichi Handa <handa@gnu.org> 112013-04-24 Kenichi Handa <handa@gnu.org>
7 12
8 * coding.c (decode_coding_iso_2022): When an invalid escape 13 * coding.c (decode_coding_iso_2022): When an invalid escape
diff --git a/src/lisp.h b/src/lisp.h
index bcb866b4cc4..e2c24eed352 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -231,9 +231,9 @@ enum enum_USE_LSB_TAG { USE_LSB_TAG = 0 };
231#define case_Lisp_Int case Lisp_Int0: case Lisp_Int1 231#define case_Lisp_Int case Lisp_Int0: case Lisp_Int1
232#define LISP_INT_TAG_P(x) (((x) & ~Lisp_Int1) == 0) 232#define LISP_INT_TAG_P(x) (((x) & ~Lisp_Int1) == 0)
233 233
234/* Stolen from GDB. The only known compiler that doesn't support 234/* Idea stolen from GDB. MSVC doesn't support enums in bitfields,
235 enums in bitfields is MSVC. */ 235 and xlc complains vociferously about them. */
236#ifdef _MSC_VER 236#if defined _MSC_VER || defined __IBMC__
237#define ENUM_BF(TYPE) unsigned int 237#define ENUM_BF(TYPE) unsigned int
238#else 238#else
239#define ENUM_BF(TYPE) enum TYPE 239#define ENUM_BF(TYPE) enum TYPE