Glenn Morris
2cf429d01c
Add ChangeLog bug ref.
2011-02-27 17:35:59 -08:00
Stephen Berman
edb574802f
dired-aux fix for bug#8131.
...
* lisp/dired-aux.el (dired-update-file-line): Fix 2010-11-09 change.
2011-02-27 17:31:20 -08:00
Glenn Morris
3e478a7cef
Mark tiny change.
2011-02-27 17:10:58 -08:00
Glenn Morris
2b0c733045
Merge from emacs-23; up to 2010-06-03T05:41:49Z!rgm@gnu.org.
2011-02-27 17:07:29 -08:00
Chong Yidong
df7f0d0b10
* lisp/facemenu.el (list-colors-display): Use with-help-window (Bug#8048).
2011-02-27 18:53:41 -05:00
Chong Yidong
52eb77a6ad
Avoid recording dead buffers in buffer-list frame param (Bug#7898).
...
* src/frame.c (store_frame_param): Don't store value directly in
buffer_list and buried_buffer_list; copy the list and remove dead
buffers.
2011-02-27 17:57:22 -05:00
Chong Yidong
b923f7a98f
* minibuf.texi: Clarify history list discussion (Bug#8085).
2011-02-27 17:10:48 -05:00
Prestoo Ten
6c89f663ba
* term/screen.el: New file (Bug#2650).
2011-02-27 16:26:22 -05:00
Glenn Morris
f9fa9e4932
* INSTALL.BZR: Tweak previous change.
2011-02-27 11:55:44 -08:00
Eli Zaretskii
4824410fa8
Implement stub emulation of `readlink' for MS-DOS.
...
src/msdos.c (readlink) [DJGPP < 2.04]: New stub function.
src/msdos.h: (readlink) [DJGPP < 2.04]: Declare prototype.
2011-02-27 21:51:35 +02:00
Eli Zaretskii
0f7bb05d28
Implement stubs of readlink' and symlink' for MS-Windows.
...
src/w32.c (symlink, readlink): New stub functions.
nt/inc/unistd.h (readlink, symlink): Declare prototypes.
2011-02-27 21:48:31 +02:00
Eli Zaretskii
40be44e2a9
Emulate `readlink' for DJGPP versions before 2.04.
...
src/msdos.c (readlink) [DJGPP < 2.04]: New stub function.
src/msdos.h: (readlink) [DJGPP < 2.04]: Declare prototype.
2011-02-27 21:46:39 +02:00
Glenn Morris
d05e7e6721
* INSTALL.BZR: Mention autoreconf.
2011-02-27 11:36:45 -08:00
Lars Ingebrigtsen
85e75dedc0
gnus-group.el (gnus-import-other-newsrc-file): New function.
2011-02-27 08:20:21 +00:00
Paul Eggert
a4d4252bfb
Merge: Minor cleanups uncovered by gcc warnings
2011-02-26 23:57:49 -08:00
Paul Eggert
c783d15b93
* scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
...
This avoids a gcc warning in some configurations.
2011-02-26 23:50:33 -08:00
Paul Eggert
76c1cebcc9
* frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
2011-02-26 23:47:34 -08:00
Paul Eggert
0ff162fccf
* frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
...
(set_menu_bar_lines, x_get_resource_string): New decls.
* msdos.c (set_menu_bar_lines): Omit decl.
2011-02-26 23:30:02 -08:00
Stefan Monnier
1f0816b69d
* lisp/emacs-lisp/pcase.el (pcase--if): Try to invert test to reduce depth.
...
(pcase-mutually-exclusive-predicates): New var.
(pcase--split-consp, pcase--split-pred): Use it.
(pcase--split-equal, pcase--split-member): When splitting against
a pure predicate, run it to know the outcome.
(pcase--u1): Mark vars that are actually used.
(pcase--q1): Avoid introducing unused vars.
2011-02-26 21:50:38 -05:00
Paul Eggert
fdb0b28bf6
* dispextern.h (struct glyph): Make u.img_id int, not unsigned.
...
It's always given int values and used as an int. This suppresses
a gcc "comparison of unsigned expression >= 0" warning in some
configurations.
2011-02-26 18:41:48 -08:00
Jay Belanger
53f963cf73
Adjust previous change to behave as intended.
2011-02-26 19:55:29 -06:00
Jay Belanger
b49df7426b
* calc/calc-ext.el (calc-init-extensions): Autoload `calc-l-prefix-help'
...
instead of `calc-ul-prefix-help'.
* calc/calc-math.el (calcFunc-log10): Don't signal an error in symbolic
mode.
* calc/calc-vec.el (calcFunc-subscr): Don't do anything if the first
argument is a variable.
2011-02-26 19:33:37 -06:00
Paul Eggert
27786b2f70
* dispnew.c: Rename locals to avoid shadowing.
...
(update_text_area, scrolling_window, update_frame_1): Rename locals.
2011-02-26 16:48:14 -08:00
Paul Eggert
d2d37ddc91
* dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
...
(adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
contexts that actually need it.
2011-02-26 15:05:14 -08:00
Paul Eggert
09ad5a9148
* dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
...
(copy_glyph_row_contents): Remove; not used.
(frame_row_to_window, check_current_matrix_flags):
(window_change_signal): Now static, since they're not used elsewhere.
(check_current_matrix_flags): Surround with "#if 0", since its
only use is in a comment. Maybe both the comment and the "#if 0"
stuff should be removed?
2011-02-26 14:54:33 -08:00
Eli Zaretskii
d1f61aaf6f
Fix bug #8122 with decoding keyboard input.
...
lisp/international/mule-cmds.el (set-default-coding-systems): Use
the -unix variant of encoding in default-keyboard-coding-system.
2011-02-26 23:30:16 +02:00
Stefan Monnier
e573299d40
* lisp/emacs-lisp/assoc.el: Remove misleading `sort'.
...
(aput, adelete, amake): Replace `eval' -> `symbol-value'.
Suggested by Michael Heerdegen <michael_heerdegen@web.de>.
Fixes: debbugs:8126
2011-02-26 16:09:03 -05:00
Eli Zaretskii
e5c96d2184
Define nlink_t for w32.
...
nt/config.nt (nlink_t): Define.
2011-02-26 16:02:45 +02:00
Eli Zaretskii
464c5ebfe7
Adapt the MS-DOS build to gnulib import of md5 and filemode.
...
msdos/sedlibmk.inp (BITSIZEOF_PTRDIFF_T, BITSIZEOF_SIG_ATOMIC_T)
(BITSIZEOF_SIZE_T, BITSIZEOF_WCHAR_T)
(BITSIZEOF_WINT_TGNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_FUTIMENS)
(GNULIB_LCHMOD, GNULIB_LSTAT, GNULIB_MBTOWC, GNULIB_MKDIRAT)
(GNULIB_MKFIFO, GNULIB_MKFIFOAT, GNULIB_MKNOD, GNULIB_MKNODAT)
(GNULIB_STAT, GNULIB_UTIMENSAT, GNULIB_WCTOMB, HAVE_FCHMODAT)
(HAVE_FSTATAT, HAVE_FUTIMENS, HAVE_INTTYPES_H, HAVE_LCHMOD)
(HAVE_LONG_LONG_INT, HAVE_LSTAT, HAVE_MKDIRAT, HAVE_MKFIFO)
(HAVE_MKFIFOAT, HAVE_MKNOD, HAVE_MKNODAT)
(HAVE_SIGNED_SIG_ATOMIC_T, HAVE_SIGNED_WCHAR_T)
(HAVE_SIGNED_WINT_T, HAVE_STDINT_H, HAVE_SYS_BITYPES_H)
(HAVE_SYS_INTTYPES_H, HAVE_SYS_TYPES_H)
(HAVE_UNSIGNED_LONG_LONG_INT, HAVE_UTIMENSAT, HAVE_WCHAR_H)
(MKDIR_P, NEXT_AS_FIRST_DIRECTIVE_STDINT_H)
(NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H, NEXT_STDINT_H)
(NEXT_SYS_STAT_H, REPLACE_LSTAT, REPLACE_MBTOWC, REPLACE_MKDIR)
(REPLACE_MKFIFO, REPLACE_MKNOD, REPLACE_STAT, REPLACE_UTIMENSAT)
(REPLACE_WCTOMB, SIG_ATOMIC_T_SUFFIX, SIZE_T_SUFFIX, STDINT_H)
(WCHAR_T_SUFFIX, WINT_T_SUFFIX, APPLE_UNIVERSAL_BUILD): New edits.
($(MKDIR_P)): Replace with equivalent DOS command.
(gl_LIBOBJS): Add md5.o and filemode.o.
msdos/sed2v2.inp (BITSIZEOF_PTRDIFF_T, BITSIZEOF_SIG_ATOMIC_T)
(BITSIZEOF_SIZE_T, BITSIZEOF_WCHAR_T, BITSIZEOF_WINT_T)
(HAVE_LONG_LONG_INT, HAVE_SIGNED_SIG_ATOMIC_T, HAVE_SIGNED_WINT_T)
(HAVE_UNSIGNED_LONG_LONG_INT, HAVE_WCHAR_H, HAVE_INTTYPES_H): New
edits.
msdos/depfiles.bat: Create a dummy .Po file only if a file by the same
name does not already exist in the deps/ subdirectory.
.bzrignore: Ignore new lib/*.in-h files.
config.bat: Rename stdint.in.h and sys_stat.in.h. Call
depfiles.bat even if lib/deps already exist.
src/s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
(lstat): Define for DJGPP < 2.04.
2011-02-26 15:48:14 +02:00
Eli Zaretskii
ea2bc7b02f
Test and finish fixing the MS-DOS build.
...
msdos/sedlib.mk (APPLE_UNIVERSAL_BUILD): New edit.
(gl_LIBOBJS): Add md5.o and filemode.o.
2011-02-26 15:38:25 +02:00
Eli Zaretskii
003fa8b6f4
Fix Sed scripts and srs/s/msdos.h for gnulib additions. Not tested yet.
...
src/s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
(lstat): Define for DJGPP < 2.04.
msdos/sedlibmk.inp (BITSIZEOF_PTRDIFF_T, BITSIZEOF_SIG_ATOMIC_T)
(BITSIZEOF_SIZE_T, BITSIZEOF_WCHAR_T)
(BITSIZEOF_WINT_TGNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_FUTIMENS)
(GNULIB_LCHMOD, GNULIB_LSTAT, GNULIB_MBTOWC, GNULIB_MKDIRAT)
(GNULIB_MKFIFO, GNULIB_MKFIFOAT, GNULIB_MKNOD, GNULIB_MKNODAT)
(GNULIB_STAT, GNULIB_UTIMENSAT, GNULIB_WCTOMB, HAVE_FCHMODAT)
(HAVE_FSTATAT, HAVE_FUTIMENS, HAVE_INTTYPES_H, HAVE_LCHMOD)
(HAVE_LONG_LONG_INT, HAVE_LSTAT, HAVE_MKDIRAT, HAVE_MKFIFO)
(HAVE_MKFIFOAT, HAVE_MKNOD, HAVE_MKNODAT)
(HAVE_SIGNED_SIG_ATOMIC_T, HAVE_SIGNED_WCHAR_T)
(HAVE_SIGNED_WINT_T, HAVE_STDINT_H, HAVE_SYS_BITYPES_H)
(HAVE_SYS_INTTYPES_H, HAVE_SYS_TYPES_H)
(HAVE_UNSIGNED_LONG_LONG_INT, HAVE_UTIMENSAT, HAVE_WCHAR_H)
(MKDIR_P, NEXT_AS_FIRST_DIRECTIVE_STDINT_H)
(NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H, NEXT_STDINT_H)
(NEXT_SYS_STAT_H, REPLACE_LSTAT, REPLACE_MBTOWC, REPLACE_MKDIR)
(REPLACE_MKFIFO, REPLACE_MKNOD, REPLACE_STAT, REPLACE_UTIMENSAT)
(REPLACE_WCTOMB, SIG_ATOMIC_T_SUFFIX, SIZE_T_SUFFIX, STDINT_H)
(WCHAR_T_SUFFIX, WINT_T_SUFFIX): New edits.
($(MKDIR_P)): Replace with equivalent DOS command.
msdos/sed2v2.inp (BITSIZEOF_PTRDIFF_T, BITSIZEOF_SIG_ATOMIC_T)
(BITSIZEOF_SIZE_T, BITSIZEOF_WCHAR_T, BITSIZEOF_WINT_T)
(HAVE_LONG_LONG_INT, HAVE_SIGNED_SIG_ATOMIC_T, HAVE_SIGNED_WINT_T)
(HAVE_UNSIGNED_LONG_LONG_INT, HAVE_WCHAR_H, HAVE_INTTYPES_H): New
edits.
2011-02-26 14:55:10 +02:00
Andreas Schwab
1d27f231d6
Regenerate ja-dic.el
2011-02-26 10:48:22 +01:00
Andreas Schwab
b9eed2f259
Regenerate autoloads
2011-02-26 10:48:22 +01:00
Eli Zaretskii
03382788bd
.bzrignore: Ignore new lib/*.in-h files.
2011-02-26 11:35:07 +02:00
Eli Zaretskii
945d8b4444
Fix the MS-DOS configury due to new gnulib modules.
...
config.bat: Rename stdint.in.h and sys_stat.in.h. Call
depfiles.bat even if lib/deps already exist.
msdos/depfiles.bat: Create a dummy .Po file only if a file by the same
name does not already exist in the deps/ subdirectory.
2011-02-26 11:27:05 +02:00
Eli Zaretskii
00030ef0b6
Fix dependencies following 2011-02-26T05:54:36Z!eggert@cs.ucla.edu.
...
lib-src/Makefile.in (fakemail${EXEEXT}): Depend on lib/ignore-value.h.
2011-02-26 10:36:56 +02:00
Eli Zaretskii
a54af40e14
Fix the MS-Windows build after 2011-02-26T05:54:36Z!eggert@cs.ucla.edu.
...
emacsclient.c (xstrdup) [WINDOWSNT]: Function added back.
(w32_getenv): Use xstrdup to return all values in malloc'ed
storage.
2011-02-26 09:44:38 +02:00
Paul Eggert
ae3f8fbfc3
Merge: lib-src changes mostly to avoid GCC warnings
2011-02-25 21:54:36 -08:00
Paul Eggert
9e1b7fe6be
* ebrowse.c (BROWSE_STRUCT): Remove unused macro.
2011-02-25 21:43:51 -08:00
Paul Eggert
6c0668d97b
* ebrowse.c (parse_qualified_param_ident_or_type): Make it clear
...
to reader (and to the compiler) that the loop always executes at
least once. This prevents a warning with recent GCC.
2011-02-25 21:41:42 -08:00
Paul Eggert
a4fe4e890a
* fakemail.c: Include <ignore-value.h>.
...
(put_line): Explicitly ignore fwrite return value, for benefit of
recent glibc + gcc.
(close_the_streams): Diagnose output errors instead of merely
exiting with nonzero status.
(my_fclose, main): Diagnose input errors, and exit with nonzero status.
Formerly, input errors were silently ignored.
2011-02-25 21:36:51 -08:00
Paul Eggert
70279bd1cb
* ebrowse.c (insert_keyword): Rename parameter to avoid shadowing diagnostic.
2011-02-25 16:23:33 -08:00
Paul Eggert
34e6d7823a
* ebrowse.c (putstr): Rename from PUTSTR and turn into a function.
...
All callers changed. This is cleaner, and avoids GCC warnings about
passing NULL to fputs.
2011-02-25 16:22:13 -08:00
Juanma Barranquero
413e646877
lisp/ChangeLog: Fix typos.
2011-02-26 01:18:16 +01:00
Paul Eggert
4be3dfc5e3
* emacsclient.c (IF_LINT): New macro.
...
(set_local_socket, main): Use it to suppress warnings with
GCC -Wuninitialized.
2011-02-25 16:17:02 -08:00
Paul Eggert
b9170155fb
* emacsclient.c (xstrdup): Remove; no longer needed.
...
(get_current_dir_name, w32_getenv, get_server_config, find_tty):
(set_local_socket, main):
Use const char *, not char *, for pointers that are not assigned
through.
2011-02-25 15:55:06 -08:00
Teodor Zlatanov
61e9662ef5
Merge changes made in Gnus trunk.
...
auth-source.el (auth-source-search): Cache empty result sets.
password-cache.el (password-in-cache-p): Convenience function to check if a key is in the cache, even if the value is nil.
2011-02-25 23:52:19 +00:00
Paul Eggert
7e6bb4c94c
* emacsclient.c (main): Avoid dangling 'if'.
2011-02-25 15:39:18 -08:00
Paul Eggert
b0bbc07d9a
* emacsclient.c: Redo local variables to avoid shadowing problems.
...
(message, socket_status, start_daemon_and_retry_set_socket):
Rename locals.
(main): Move decl of "i".
2011-02-25 15:35:16 -08:00
Paul Eggert
3f5e6230d7
* etags.c (ISUPPER): Move to inside the only #ifdef where it's used.
...
This avoids an unused-macro warning with some GCC settings.
2011-02-25 15:26:55 -08:00