]> git.eshelyaron.com Git - emacs.git/log
emacs.git
14 years agoFix issues with buffer list handling and adjust-window-trailing-edge.
Martin Rudalics [Tue, 12 Apr 2011 15:38:04 +0000 (17:38 +0200)]
Fix issues with buffer list handling and adjust-window-trailing-edge.

* buffer.c (Fkill_buffer): Don't inhibit quit around calls to
replace_buffer_in_windows and frames_discard_buffer.

* window.el (adjust-window-trailing-edge): If WINDOW is a
window-splits nil window, try to adjust it the Emacs 23 way.
(switch-to-prev-buffer, switch-to-next-buffer): If we have to
show a buffer from the frame's buffer list try to postpone
showing visible buffers.  Reported by Juanma Barranquero.

14 years agoRevise window splitting/nesting. Fix errors reported by Juanma.
Martin Rudalics [Sun, 10 Apr 2011 12:38:11 +0000 (14:38 +0200)]
Revise window splitting/nesting.  Fix errors reported by Juanma.

* lisp.h: Extern other_buffer_safely.

* buffer.c: New symbol Qbuffer_list_update_hook.
(Fget_buffer_create, Fmake_indirect_buffer, Frename_buffer)
(Fkill_buffer, record_buffer): Run buffer-list-update-hook.
(other_buffer_safely): New function.
(Frecord_buffer): Mention return value in doc-string.
(Funrecord_buffer): Mention return value in doc-string.  Run
buffer-list-update-hook.
(syms_of_buffer): Define Vbuffer_list_update_hook.

* window.h (window): New slot nest.

* window.c: Remove Qsafe, Qabove, Qbelow.  Add Qauto_buffer_name.
(select_window): Restore version from Emacs 23 to avoid
clobbering the current buffer when the selected window is
selected.  Reported by Juanma Barranquero.
(Fwindow_nested, Fset_window_nested): Remove.
(Fwindow_splits, Fset_window_splits, Fwindow_nest)
(Fset_window_nest): New functions.
(recombine_windows): Use ->nest instead of ->nested.
(window_loop): Call other_buffer_safely
(Fdelete_other_windows_internal): Reset splits status of
remaining window.
(make_parent_window, make_window): Initialize splits and nest
status.
(Fsplit_window_internal): Handle splits and nest status.
(Fdelete_window_internal): Remove bflag.  Handle nest status.
(saved_window): Add slots for splits and nest status.
(Fset_window_configuration): Handle auto_buffer_name.  Handle
splits and nest status.  Reorder code.
(save_window_save): Handle splits and nest status.
(syms_of_window): Rewrite doc-string of window-splits.  New
variable window-nest.

* window.el (resize-window): With window-splits nil resize
either left or right sibling to behave more like Emacs 23.
Reported by Juanma Barranquero.
(delete-window, split-window): Simplify code and adapt to new
window-splits/window-nest semantics.
(window-state-get-1, window-state-put-1, window-state-put-2)
(display-buffer-split-window-1)
(display-buffer-split-atom-window): Adapt to new
window-splits/window-nest semantics.
(display-buffer-macro-specifiers, display-buffer-alist): Replace other-visible-frame
by other-frame.
(display-buffer-pop-up-window)
(display-buffer-pop-up-side-window): Reset new window's previous
buffers to nil to avoid that we switch back to the buffer from
the split window when quitting the window.

* menu-bar.el (kill-this-buffer, kill-this-buffer-enabled-p): Do
not offer to kill a buffer when we can't reliably kill it.

* help.el (help-window-display-message): Improve message shown.

* cus-start.el (all): Add entry for window-nest, rework that of
window-splits.

* buff-menu.el (Buffer-menu-select): Bind window-splits to t.

* windows.texi (Splitting Windows): Explain window-splits and
window-nest.
(Displaying Buffers): Replace other-visible-frame by other-frame.

14 years agoMerge from trunk.
Martin Rudalics [Fri, 25 Feb 2011 14:04:43 +0000 (15:04 +0100)]
Merge from trunk.

14 years agoMerge from trunk, BVAR and other variable adjustments.
Martin Rudalics [Fri, 25 Feb 2011 11:21:57 +0000 (12:21 +0100)]
Merge from trunk, BVAR and other variable adjustments.

14 years agoElaborate my most-recent ChangeLog entry.
Paul Eggert [Fri, 25 Feb 2011 10:03:28 +0000 (02:03 -0800)]
Elaborate my most-recent ChangeLog entry.

14 years agoRegenerate.
Paul Eggert [Fri, 25 Feb 2011 07:23:41 +0000 (23:23 -0800)]
Regenerate.

14 years ago* dired.c (Ffile_attributes): Increase size of modes from 10 to 12
Paul Eggert [Fri, 25 Feb 2011 06:30:50 +0000 (22:30 -0800)]
* dired.c (Ffile_attributes): Increase size of modes from 10 to 12

14 years agoDescribe recent changes in window code and provide some examples.
Martin Rudalics [Thu, 24 Feb 2011 09:17:10 +0000 (10:17 +0100)]
Describe recent changes in window code and provide some examples.

* windows.texi (Windows and Frames): Provide example of
combinations.
(Resizing Windows): Rewrite description of
adjust-window-trailing-edge.
(Splitting Windows): Provide examples how splitting affects
internal windows.  Rewrite description of window-splits.
(Deleting Windows): Rewrite description of delete-windows-on.
(Displaying Buffers): Describe fun-with-args specifier.
Describe display-buffer-alist-set.
(Window Configurations): Describe window-state-get and
window-state-put.

14 years agoYet more directory-local variables fixes.
Glenn Morris [Thu, 24 Feb 2011 08:45:25 +0000 (00:45 -0800)]
Yet more directory-local variables fixes.

* lisp/files-x.el (modify-dir-local-variable): Handle dir-locals from
the cache, and from non-file sources.

14 years agoFix for another bit of bug#8095, re dir-locals.
Glenn Morris [Thu, 24 Feb 2011 08:26:25 +0000 (00:26 -0800)]
Fix for another bit of bug#8095, re dir-locals.

* lisp/help-fns.el (describe-variable): Return consistent results when a
dir-local from a file came from the cache or did not.
If a dir-local has no associated file, say it came from a "directory".

14 years agoMore dir-locals fixes for files.el.
Glenn Morris [Thu, 24 Feb 2011 08:02:45 +0000 (00:02 -0800)]
More dir-locals fixes for files.el.

* lisp/files.el (hack-local-variables-confirm, hack-local-variables-filter):
Doc fix (say _which_ directory `dir-name' is).
(hack-dir-local-variables): Fix setting of `dir-name'.
Previous value seems clearly wrong.  Eg put a risky variable in a
dir-locals file, visit a file in a subdirectory, see which directory
it says the risky variables come from.  It should be the one with the
associated directory variables, not the one containing the visited file.

14 years agoPartial fix for bug#8095.
Glenn Morris [Thu, 24 Feb 2011 07:47:06 +0000 (23:47 -0800)]
Partial fix for bug#8095.

* lisp/files.el (dir-locals-find-file): Doc fix.
Fix the check for cache elements that have no associated file,
and the mtime check for those that do.

Still to do: some places that use dir-locals-find-file assume the
result is always a file, which is not true. (The function name is
misleading.)

14 years agoauth-source.el (auth-source-netrc-create): Use `read-char' with no argument that...
Katsumi Yamaoka [Thu, 24 Feb 2011 06:32:33 +0000 (06:32 +0000)]
auth-source.el (auth-source-netrc-create): Use `read-char' with no argument that XEmacs doesn't support.

14 years agoReplace some obsolete autoconf syntax.
Glenn Morris [Thu, 24 Feb 2011 04:28:17 +0000 (20:28 -0800)]
Replace some obsolete autoconf syntax.

* configure.in: Replace obsolete AC_OUTPUT() with AC_CONFIG_FILES(),
AC_CONFIG_COMMANDS(), and AC_OUTPUT sans arguments.

14 years agoDired-X fix for bug#5216.
Glenn Morris [Thu, 24 Feb 2011 03:59:04 +0000 (19:59 -0800)]
Dired-X fix for bug#5216.

* lisp/dired-x.el (dired-hack-local-variables):
Handle interrupts during hacking local variables.

14 years ago* admin/notes/bzr: Small updates.
Glenn Morris [Thu, 24 Feb 2011 03:56:36 +0000 (19:56 -0800)]
* admin/notes/bzr: Small updates.

14 years agoAvoid some possible prompts from autoloads.el.
Glenn Morris [Thu, 24 Feb 2011 03:53:27 +0000 (19:53 -0800)]
Avoid some possible prompts from autoloads.el.

* lisp/emacs-lisp/autoload.el (autoload-save-buffers)
(autoload-find-destination, update-directory-autoloads):
Avoid prompts when updating autoloads.

14 years agoMerge changes made in Gnus trunk.
Gnus developers [Wed, 23 Feb 2011 22:59:34 +0000 (22:59 +0000)]
Merge changes made in Gnus trunk.

gnus-art.el (article-make-date-line): Ignore errors if time is invalid and not convertible.
 (article-make-date-line): Only add lapsed time if time is not nil.
auth-source.el (auth-source-netrc-element-or-first): New function to DTRT for parameter extraction.
 (auth-source-netrc-create): Use it and fix multiple parameter print bug.  Use the default passed from above (given-default) or the built-in (user-login-name for :user).

14 years agoFix handling of bar cursors in NS terminal.
Ben Key [Wed, 23 Feb 2011 20:41:43 +0000 (15:41 -0500)]
Fix handling of bar cursors in NS terminal.

* nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
directly, for bar cursors.

* xdisp.c (set_frame_cursor_types): Don't write an undefined value
into the frame's cursor_width.

14 years ago* lisp/emacs-lisp/bytecomp.el (byte-compile-disable-print-circle): Obsolete.
Stefan Monnier [Wed, 23 Feb 2011 15:22:28 +0000 (10:22 -0500)]
* lisp/emacs-lisp/bytecomp.el (byte-compile-disable-print-circle): Obsolete.

14 years ago* src/print.c (print_object): Never print old-style backquotes.
Stefan Monnier [Wed, 23 Feb 2011 15:14:21 +0000 (10:14 -0500)]
* src/print.c (print_object): Never print old-style backquotes.
Obey escapeflag for hash tables as well.

14 years agoauth-source.el (auth-source-netrc-create): Use `read-char' instead of `read-char...
Teodor Zlatanov [Wed, 23 Feb 2011 14:34:44 +0000 (14:34 +0000)]
auth-source.el (auth-source-netrc-create): Use `read-char' instead of `read-char-choice' for backwards compatibility.

14 years agoMerge changes made in Gnus trunk.
Gnus developers [Wed, 23 Feb 2011 13:35:35 +0000 (13:35 +0000)]
Merge changes made in Gnus trunk.

auth.texi (Help for users): Mention ~/.netrc is also searched by default now.
gnus-start.el (gnus-dribble-read-file): Set buffer-save-without-query, since we always want to save the dribble file, probably.
nnmail.el (nnmail-article-group): Allow a final "" split to work on nnimap.
gnus-sum.el (gnus-user-date-format-alist): Renamed back again from -summary- since it's a user-visible variable.
nnimap.el (nnimap-retrieve-group-data-early): Don't do QRESYNC the first time you use the new Gnus.
auth-source.el: Don't load netrc.el.
 (auth-sources): Search ~/.netrc as well by default.
 (auth-source-debug): Add 'trivia option for extra output.
 (auth-source-do-trivia): Use it.
 (auth-source-search): Simplify logic to use `auth-source-search-backends'.  Use `auth-source-do-trivia' where appropriate.  Don't keep a running count at this level.  Layer :create and :delete options appropriately on the first and second passes.  Don't track the backend with the search results.
 (auth-source-search-backends): New function to search a list of backends for a processed spec.
 (auth-source-netrc-parse): Cache all netrc files, making auth-source-netrc-cache an alist keyed by the file name and using the file mtime as the caching criterion.  Keep the obfuscated data secret with a lexical bind.
 (auth-source-netrc-search): Don't calculate the length of the results unnecessarily.
 (auth-source-search-backends): Fix bug.
 (auth-source-netrc-create): Rework prompts.
nnir.el (nnir-imap-search-arguments,nnir-imap-default-search-key): Lower case names of search constraints.
 (nnir-run-query): Cache and reuse search constraints for all imap servers.
gnus-msg.el (gnus-setup-message): Define missing variable from last checkin.

14 years agoFix some mis-spellings of "precede" that are not in emacs-23 branch.
Glenn Morris [Wed, 23 Feb 2011 07:27:09 +0000 (23:27 -0800)]
Fix some mis-spellings of "precede" that are not in emacs-23 branch.

14 years ago* etc/NEWS: Typo fixes.
Glenn Morris [Wed, 23 Feb 2011 04:47:11 +0000 (20:47 -0800)]
* etc/NEWS: Typo fixes.

14 years ago* etc/NEWS: Remove some sql-stuff that is not NEWS-worthy.
Glenn Morris [Wed, 23 Feb 2011 04:37:53 +0000 (20:37 -0800)]
* etc/NEWS: Remove some sql-stuff that is not NEWS-worthy.

14 years agoComment spelling fix.
Glenn Morris [Wed, 23 Feb 2011 04:27:42 +0000 (20:27 -0800)]
Comment spelling fix.

14 years ago* admin/notes/bzr: More details about merging ChangeLogs.
Glenn Morris [Wed, 23 Feb 2011 04:24:13 +0000 (20:24 -0800)]
* admin/notes/bzr: More details about merging ChangeLogs.

14 years agoMerge from emacs-23; up to 2010-06-02T00:10:42Z!yamaoka@jpl.org.
Glenn Morris [Wed, 23 Feb 2011 04:19:28 +0000 (20:19 -0800)]
Merge from emacs-23; up to 2010-06-02T00:10:42Z!yamaoka@jpl.org.

14 years agoRemove pointless setting of byte-compile-dynamic in tiny, tiny file.
Glenn Morris [Wed, 23 Feb 2011 04:00:52 +0000 (20:00 -0800)]
Remove pointless setting of byte-compile-dynamic in tiny, tiny file.

14 years agoAdd comments about fixing dates in merged ChangeLogs.
Glenn Morris [Wed, 23 Feb 2011 03:50:04 +0000 (19:50 -0800)]
Add comments about fixing dates in merged ChangeLogs.

14 years agoObsolete dired-x's directory local variables in favor of standard ones.
Glenn Morris [Wed, 23 Feb 2011 03:44:13 +0000 (19:44 -0800)]
Obsolete dired-x's directory local variables in favor of standard ones.

* lisp/dired.el (dired-mode): Call hack-dir-local-variables-non-file-buffer.

* lisp/dired-x.el (dired-omit-mode): Safe if boolean.
(dired-enable-local-variables): Fix doc and custom type.  Mark risky.
(dired-enable-local-variables, dired-local-variables-file)
(dired-hack-local-variables): Make obsolete.
(dired-omit-here-always): Use dir-locals.el instead.

* doc/misc/dired-x.texi (Features): Don't advertise obsolete local variables.
Simplify layout.
(Omitting Variables): Update local variables example.
(Local Variables): Say this is obsolete.  Fix description of
dired-enable-local-variables possible values.

* etc/NEWS: Relocate the existing entry about directory local
variables in file-les buffers, and make it clearer.
Mention above dired changes.

14 years ago* doc/misc/dired-x.texi (Features, Local Variables): Fix typos.
Glenn Morris [Wed, 23 Feb 2011 03:32:42 +0000 (19:32 -0800)]
* doc/misc/dired-x.texi (Features, Local Variables): Fix typos.
(Features): Minor rephrasing.

14 years ago* lisp/files.el (safe-local-eval-forms): Add the write-file-hooks version.
Glenn Morris [Wed, 23 Feb 2011 03:24:23 +0000 (19:24 -0800)]
* lisp/files.el (safe-local-eval-forms): Add the write-file-hooks version.

This obsolete form is still supported, and present in some of the
files synced from gnulib, for example.

14 years agomail/rmailmm.el (rmail-mime-process-multipart): Do not signal an error when a multipa...
Kenichi Handa [Wed, 23 Feb 2011 02:32:35 +0000 (11:32 +0900)]
mail/rmailmm.el (rmail-mime-process-multipart): Do not signal an error when a multipart boundary in the nested multipart is found.

14 years agomerge emacs-23
Kenichi Handa [Wed, 23 Feb 2011 01:56:49 +0000 (10:56 +0900)]
merge emacs-23

14 years ago* lisp/gnus/gnus-msg.el (gnus-setup-message): Also bind `winconf-name'.
Sam Steingold [Tue, 22 Feb 2011 20:08:00 +0000 (15:08 -0500)]
* lisp/gnus/gnus-msg.el (gnus-setup-message): Also bind `winconf-name'.

14 years ago* dired.c (Ffile_attributes): Simplify and avoid #ifdef.
Paul Eggert [Tue, 22 Feb 2011 18:32:51 +0000 (10:32 -0800)]
* dired.c (Ffile_attributes): Simplify and avoid #ifdef.

14 years ago* lisp/help-fns.el (describe-function-1): Don't signal an error just because
Stefan Monnier [Tue, 22 Feb 2011 18:22:04 +0000 (13:22 -0500)]
* lisp/help-fns.el (describe-function-1): Don't signal an error just because
the DOC file disappeared.

14 years agoFix 2011-02-22T17:37:06Z!eggert@cs.ucla.edu.
Eli Zaretskii [Tue, 22 Feb 2011 18:08:53 +0000 (20:08 +0200)]
Fix 2011-02-22T17:37:06Z!eggert@cs.ucla.edu.

 etags.c (canonicalize_filename, ISUPPER): Fix last change.

14 years ago* src/lread.c (openp): Correct Boolean typo in last commit.
Wolfgang Jenkner [Tue, 22 Feb 2011 18:02:11 +0000 (13:02 -0500)]
* src/lread.c (openp): Correct Boolean typo in last commit.

14 years agoMS-Windows part of 2011-02-21T23:22:34Z!eggert@cs.ucla.edu, addition of min-max.h.
Eli Zaretskii [Tue, 22 Feb 2011 17:51:38 +0000 (19:51 +0200)]
MS-Windows part of 2011-02-21T23:22:34Z!eggert@cs.ucla.edu, addition of min-max.h.

 lib-src/makefile.w32-in ($(BLD)/ebrowse.$(O), $(BLD)/pop.$(O)): Depend
 on ../lib/min-max.h.

14 years agoetags: Downcase drive letters, for consistency with Emacs proper.
Paul Eggert [Tue, 22 Feb 2011 17:37:06 +0000 (09:37 -0800)]
etags: Downcase drive letters, for consistency with Emacs proper.

* etags.c (upcase): Remove; no longer used.
(canonicalize_filename): Downcase drive letters.

14 years ago* nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified key to emacs, treat...
Adrian Robert [Tue, 22 Feb 2011 14:13:54 +0000 (16:13 +0200)]
* nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified key to emacs, treat as unmodified (go to input manager processing).

14 years agoProvide functions for saving window states and for converting Emacs 23
Martin Rudalics [Tue, 22 Feb 2011 13:55:12 +0000 (14:55 +0100)]
Provide functions for saving window states and for converting Emacs 23
options to display-buffer-alist settings.  Fix some minor errors.

* window.h (w): New slot clone_number.  Rename
"inhibit_recombine" slot to "nested".

* window.c (Fwindow_clone_number, Fwindow_nested)
(Fset_window_nested, Fset_window_clone_number): New functions.
(recombine_windows): Write "nested" isntead of
"inhibit_recombine".
(make_parent_window): Set clone_number.
(make_window): Set clone_number.  Write "nested" instead of
"inhibit_recombine".
(Fsplit_window_internal): Write "nested" instead of
"inhibit_recombine".
(Fresize_window_apply, Fdelete_window_internal): Add parens in
EQ test.
(saved_window): Add clone_number and write "nested" instead of
"inhibit_recombine".
(Fset_window_configuration, save_window_save): Set clone_number
and write "nested" instead of "inhibit_recombine".
(syms_of_window): Add Swindow_clone_number, Swindow_nested,
Sset_window_nested and Sset_window_clone_number.

* buffer.c (sort_overlays, overlay_strings): When an overlay has
the same clone-number property as the associated window don't
skip it even if the window properties are different.
(syms_of_buffer): Intern new Lisp_object Qclone_number.

* window.c (run_window_configuration_change_hook): Call
select_frame_norecord instead of Fselect_frame.

* progmodes/compile.el (compilation-goto-locus): Call
display-buffer-same-frame-other-window.

* window.el (window-atom-check-1): Fix handling of case where
only one atomic window was left.
(window-sizable-p): Fix doc-string.
(window-size-fixed-p): Move after window-size-firxed-1.
(split-window): Make sure that the new window gets any odd line
since this was the Emacs 23 behavior.
(window-list-no-nils, window-state-get-1, window-state-get)
(window-state-put-1, window-state-put-2, window-state-put): New
functions.
(window-state-ignored-parameters, window-state-put-list): New
variables.
(display-buffer-alist): Fix doc-string.
(display-buffer-even-sizes): Rename to
display-buffer-even-window-sizes.
(display-buffer-reuse-window): Call
display-buffer-even-window-sizes.
(display-buffer-pop-up-window): Don't pass specifiers to side
window function.
(display-buffer-same-window, display-buffer-same-frame)
(display-buffer-other-window)
(display-buffer-same-frame-other-window)
(pop-to-buffer-same-frame)
(pop-to-buffer-same-frame-other-window): Make these interactive.
(display-buffer-alist-add, display-buffer-alist-set): New
functions.

* window.el (display-buffer-pop-up-frame): Fix typo.  Pass
pop-up-frame-alist to pop-up-frame-function only if the latter
is a symbol.

* frame.el (pop-up-frame-alist, pop-up-frame-function)
(special-display-frame-alist, special-display-popup-frame): Move
to window.el.

* window.el (display-buffer-alist): Remove some specifiers from
default value.  Fix some typos.
(pop-up-frame-alist, pop-up-frame-function)
(special-display-frame-alist, special-display-popup-frame): Move
here from frame.el.  Disable byte compiler obsolete warnings.
(special-display-p, same-window-p): Restore Emacs 23 definitions
with obsolete warnings for byte compiler disabled.

* window.el (delete-other-windows): Mention return value in
doc-string.
(display-buffer-method-specifiers): Remove variable.
(display-buffer-alist): Add fun-with-args specifier.
(display-buffer-even-sizes): Simplify code.
(display-buffer): Handle fun-with-args specifier.
(mouse-autoselect-window-select): Replace condition-case by
ignore-errors.

* window.el (display-buffer-even-sizes): Fix typo.

14 years agoMerge changes made in Gnus trunk.
Gnus developers [Tue, 22 Feb 2011 13:31:15 +0000 (13:31 +0000)]
Merge changes made in Gnus trunk.

gnus.texi (Article Date): Clarify gnus-article-update-date-headers.
gnus-msg.el (gnus-inews-add-send-actions): Restore the winconf name after exit.
gnus-sum.el (gnus-summary-show-article): When called with t as the value, show the raw article.
nnimap.el (nnimap-open-connection-1): Revert last change, since auth-source now accepts numbers.
auth-source.el (auth-source-netrc-parse): Accept a number as the port spec, too.
 (auth-source-ensure-strings): New function.
gnus-art.el (gnus-article-update-date-headers): Doc fix.
 (gnus-article-setup-buffer): Always restart the date timer so that user changes to the frequency is respected.
nnimap.el (nnimap-open-connection-1): auth-source expects strings as port numbers, so make sure it gets that if nnimap-server-port is explicit.
nnimap.el (nnimap-inbox): Doc fix.

14 years agosrc/ChangeLog: Fix typos.
Juanma Barranquero [Tue, 22 Feb 2011 13:27:23 +0000 (14:27 +0100)]
src/ChangeLog: Fix typos.

14 years ago* eshell/esh-ext.el (eshell-external-command): Do not restrict
Michael Albinus [Tue, 22 Feb 2011 05:50:25 +0000 (06:50 +0100)]
* eshell/esh-ext.el (eshell-external-command): Do not restrict
remote check to "ftp".  (Bug#8089)

14 years agoMerge: Assume S_ISLNK etc. work, since gnulib supports this.
Paul Eggert [Tue, 22 Feb 2011 01:58:44 +0000 (17:58 -0800)]
Merge: Assume S_ISLNK etc. work, since gnulib supports this.

14 years agoFix font size handling.
Kenichi Handa [Tue, 22 Feb 2011 01:58:03 +0000 (10:58 +0900)]
Fix font size handling.

14 years ago[ChangeLog]
Paul Eggert [Tue, 22 Feb 2011 01:55:20 +0000 (17:55 -0800)]
[ChangeLog]

Assume S_ISLNK etc. work, since gnulib supports this.
* Makefile.in (GNULIB_MODULES): Add sys_stat.
* configure.in: Check for lstat and set HAVE_LSTAT=0 if not.
Pretend to be using the gnulib lstat module for benefit of sys/stat.h.
* configure, lib/Makefile.in, lib/gnulib.mk: Regenerate.
[lib-src/ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* etags.c (S_ISREG): Remove.
[src/ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* config.in: Regenerate.
* dired.c (lstat): Remove.
(file_name_completion): Assume S_ISDIR works.
(file_name_completion_stat): Assume S_ISLNK works.
Do not bother calling stat unless lstat says it's a symlink.
* fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
(Fcopy_file): Assume S_ISREG and S_ISLNK work.
(check_writable, Ffile_writable_p, Fset_file_times):
Assume S_ISDIR works.
(Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
fifos exist.
(Ffile_regular_p, Finsert_file_contents): Assumes S_ISREG works.
* filelock.c (S_ISLNK): Remove.
* lread.c (openp): Assume S_ISDIR works.
* xrdb.c (S_ISDIR): Remove.

14 years agomerge emacs-23
Kenichi Handa [Tue, 22 Feb 2011 01:51:16 +0000 (10:51 +0900)]
merge emacs-23

14 years agoIn rmail, decode "encoded-words" of header components on replying.
Kenichi Handa [Tue, 22 Feb 2011 01:49:06 +0000 (10:49 +0900)]
In rmail, decode "encoded-words" of header components on replying.

14 years agoadmin/notes/bugtracker (bugtracker_debbugs_url): Fix typo.
Juanma Barranquero [Tue, 22 Feb 2011 01:04:16 +0000 (02:04 +0100)]
admin/notes/bugtracker (bugtracker_debbugs_url): Fix typo.

14 years agolib-src/makefile.w32-in (obj): Remove filemode.o.
Juanma Barranquero [Tue, 22 Feb 2011 00:49:54 +0000 (01:49 +0100)]
lib-src/makefile.w32-in (obj): Remove filemode.o.

14 years agomerge emacs-23
Kenichi Handa [Tue, 22 Feb 2011 00:22:09 +0000 (09:22 +0900)]
merge emacs-23

14 years agoDecode "encoded-words" of header components on replying.
Kenichi Handa [Tue, 22 Feb 2011 00:19:08 +0000 (09:19 +0900)]
Decode "encoded-words" of header components on replying.

14 years ago* movemail.c: Define macros only in needed contexts.
Paul Eggert [Tue, 22 Feb 2011 00:11:56 +0000 (16:11 -0800)]
* movemail.c: Define macros only in needed contexts.

14 years ago* Makefile.in (ebrowse${EXEEXT}, pop.o): Depend on min-max.h.
Paul Eggert [Tue, 22 Feb 2011 00:08:53 +0000 (16:08 -0800)]
* Makefile.in (ebrowse${EXEEXT}, pop.o): Depend on min-max.h.

14 years agoMerge from mainline.
Paul Eggert [Mon, 21 Feb 2011 23:46:32 +0000 (15:46 -0800)]
Merge from mainline.

14 years ago[ChangeLog]
Paul Eggert [Mon, 21 Feb 2011 23:22:34 +0000 (15:22 -0800)]
[ChangeLog]

* lib/min-max.h: New file, for "min" and "max".
[lib-src/ChangeLog]
New file "lib/min-max.h".
* ebrowse.c (min, max): Define them by including <min-max.h>
instead of defining it ourselves.
* pop.c (min): Likewise.

14 years ago* test-distrib.c (buf): Make this local, to avoid shadowing.
Paul Eggert [Mon, 21 Feb 2011 23:15:17 +0000 (15:15 -0800)]
* test-distrib.c (buf): Make this local, to avoid shadowing.

14 years ago* movemail.c (popmail): Report fchown failure instead of ignoring it.
Paul Eggert [Mon, 21 Feb 2011 22:31:55 +0000 (14:31 -0800)]
* movemail.c (popmail): Report fchown failure instead of ignoring it.

But if the file already has the right ownership, don't worry about it.

14 years ago(c-state-literal-at): Prevent positions in macros finding their way into
Alan Mackenzie [Mon, 21 Feb 2011 21:25:35 +0000 (21:25 +0000)]
(c-state-literal-at): Prevent positions in macros finding their way into
c-state-nonlit-pos-cache.  Strengthen the comments.

(c-state-dump): New commented out diagnostic routine.

14 years agoAdd stdint.h for MS-Windows.
Christoph Scholtes [Mon, 21 Feb 2011 20:16:43 +0000 (22:16 +0200)]
Add stdint.h for MS-Windows.

 nt/inc/stdint.h: New file, to support compilation with tool chains
 that do not have stdint.h (e.g. MSVC).
 lib/makefile.w32-in: ($(BLD)/md5.$(O)): Added dependency on
 $(EMACS_ROOT)/nt/inc/stdint.h.

14 years agoAdapt MS-Windows build to import of filemode.c from gnulib.
Eli Zaretskii [Mon, 21 Feb 2011 20:00:19 +0000 (22:00 +0200)]
Adapt MS-Windows build to import of filemode.c from gnulib.

 nt/inc/sys/stat.h (S_ISUID, S_ISGID, S_ISVTX, S_IRGRP, S_IROTH)
 (S_IWGRP, S_IWOTH, S_IXGRP, S_IXOTH, S_ISSOCK, S_ISLNK, S_ISCTG)
 (S_ISDOOR, S_ISMPB, S_ISMPC, S_ISNWK, S_ISPORT, S_ISWHT)
 (S_TYPEISMQ, S_TYPEISSEM, S_TYPEISSHM, S_TYPEISTMO): Define.
 (lstat): Define to stat.
 lib/makefile.w32-in ($(BLD)/filemode.$(O)): Move from
 src/makefile.w32-in and adapt.  Depend on stamp_BLD.
 (GNULIBOBJS): Add $(BLD)/filemode.$(O).
 src/makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
 lib/makefilw.w32-in.
 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
 (GLOBAL_SOURCES): Remove filemode.c.
 (OBJ1): Remove $(BLD)/filemode.$(O).
 lib-src/makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/emacsclient.$(O))
 ($(BLD)/etags.$(O), $(BLD)/movemail.$(O), $(BLD)/ntlib.$(O)):
 Depend on $(EMACS_ROOT)/nt/inc/sys/stat.h.

14 years ago* make-docfile.c (input_buffer): Rename variables to avoid shadowing.
Paul Eggert [Mon, 21 Feb 2011 19:37:54 +0000 (11:37 -0800)]
* make-docfile.c (input_buffer): Rename variables to avoid shadowing.

14 years ago* net/tramp.el (tramp-rfn-eshadow-setup-minibuffer): Do not use
Michael Albinus [Mon, 21 Feb 2011 19:14:56 +0000 (20:14 +0100)]
* net/tramp.el (tramp-rfn-eshadow-setup-minibuffer): Do not use
`field' property of `rfn-eshadow-overlay'.

14 years agoMerge from mainline.
Paul Eggert [Mon, 21 Feb 2011 18:51:02 +0000 (10:51 -0800)]
Merge from mainline.

14 years ago* movemail.c: (DIRECTORY_SEP, IS_DIRECTORY_SEP, DONE, IS_FROM_LINE):
Paul Eggert [Mon, 21 Feb 2011 18:37:35 +0000 (10:37 -0800)]
* movemail.c: (DIRECTORY_SEP, IS_DIRECTORY_SEP, DONE, IS_FROM_LINE):

Remove unused macros.
* pop.c (index): Remove unused macro.
(KPOP_PORT): Define only if KERBEROS is defined.

14 years ago* movemail.c: Remove unused vars
Paul Eggert [Mon, 21 Feb 2011 18:26:52 +0000 (10:26 -0800)]
* movemail.c: Remove unused vars

14 years ago* movemail.c (main, pop_retr): Rename locals to avoid shadowing.
Paul Eggert [Mon, 21 Feb 2011 18:22:20 +0000 (10:22 -0800)]
* movemail.c (main, pop_retr): Rename locals to avoid shadowing.

14 years agoDeclare file-scope functions and variables static if not exported.
Paul Eggert [Mon, 21 Feb 2011 18:06:25 +0000 (10:06 -0800)]
Declare file-scope functions and variables static if not exported.

This is more consistent, and is nicer with gcc -Wstrict-prototypes.
* ebrowse.c, emacsclient.c, fakemail.c, make-docfile.c, movemail.c:
* profile.c, test-distrib.c, update-game-score.c:
Declare non-'main' functions and variables to be static.
* ebrowse.c: Omit redundant function prototypes.

14 years ago* make-docfile.c (scan_c_file): Adapt to the new BVAR macro.
Ben Key [Mon, 21 Feb 2011 18:02:49 +0000 (13:02 -0500)]
* make-docfile.c (scan_c_file): Adapt to the new BVAR macro.

14 years agoImport filemode module from gnulib.
Paul Eggert [Mon, 21 Feb 2011 17:56:37 +0000 (09:56 -0800)]
Import filemode module from gnulib.

14 years agoMerge changes made in Gnus trunk.
Lars Ingebrigtsen [Mon, 21 Feb 2011 13:29:15 +0000 (13:29 +0000)]
Merge changes made in Gnus trunk.

gnus.texi (Window Layout): Document layout names.
nntp.el (nntp-finish-retrieve-group-infos): Add a kludge to use the given method as in the group name if we're using an extended method.
 (nntp-finish-retrieve-group-infos): Wait for the end of the LIST ACTIVE command, if we're using that, instead of waiting for the beginning.
gnus-start.el (gnus-get-unread-articles): Extend the methods so that we're sure to get unique server names, and we don't output two async commands in the same buffer.  This fixes an NNTP hang for some users.
netrc.el (netrc-parse): Comment fix.
gnus-sum.el (gnus-summary-next-article): Add a kludge to reselect the summary buffer before reading going to the next buffer.  This avoids putting the point in the group buffer if you `C-g' the command.
auth-source.el (auth-source-netrc-parse): Add an in-memory netrc cache (for now) to make ~/.authinfo.gpg files usable.
nnfolder.el (copyright-update): Define for the compiler.
auth-source.el (auth-source-search): Fix unbound variable.

14 years agoMerge some code from hexrgb.el into color.el.
Chong Yidong [Mon, 21 Feb 2011 06:03:36 +0000 (01:03 -0500)]
Merge some code from hexrgb.el into color.el.

* lisp/color.el (color-name-to-rgb): Rename from color-rgb->normalize.
Autoload.  Add optional arg FRAME, and pass it to color-values.
(color-complement): Caller changed.  Doc fix.
(color-gradient): Rewrite for better clarity and efficiency.
(color-rgb-to-hex): Rename from color-rgb->hex.
(color-rgb-to-hsv): Rename from color-rgb->hsv.  Force hue and
saturation to zero if the value is too small.
(color-rgb-to-hsl): Rename from color-rgb->hsl.
(color-srgb-to-xyz): Rename from color-srgb->xyz.  Doc fix.
(color-xyz-to-srgb): Rename from color-xyz->srgb.  Doc fix.
(color-xyz-to-lab): Rename from color-xyz->lab.  Doc fix.
(color-lab-to-xyz): Rename from color-lab->xyz.  Doc fix.
(color-lab-to-srgb): Rename from color-lab->srgb.  Doc fix.
(color-cie-de2000): Doc fix.

* lisp/facemenu.el (color-rgb-to-hsv): Deleted; use the version in
lisp/color.el instead.
(list-colors-sort-key, list-colors-print): Use
color-normalized-values.

* lisp/faces.el (color-values): Use cond for clarity.  Doc fix.

* lisp/gnus/shr-color.el (shr-color->hexadecimal): Use renamed
function names color-rgb-to-hex, color-name-to-rgb,
color-srgb-to-lab, and color-lab-to-srgb.

14 years ago* themes/tango-dark-theme.el: Tweak background on low-color terminals.
Chong Yidong [Mon, 21 Feb 2011 05:59:20 +0000 (00:59 -0500)]
* themes/tango-dark-theme.el: Tweak background on low-color terminals.

14 years agolib-src/makefile.w32-in (obj): Remove md5.o.
Juanma Barranquero [Sun, 20 Feb 2011 22:17:39 +0000 (23:17 +0100)]
lib-src/makefile.w32-in (obj): Remove md5.o.

14 years agoFollowup for 2011-02-20T18:50:26Z!eliz@gnu.org.
Eli Zaretskii [Sun, 20 Feb 2011 21:09:45 +0000 (23:09 +0200)]
Followup for 2011-02-20T18:50:26Z!eliz@gnu.org.

 lib/makefile.w32-in ($(BLD)/md5.$(O)): Don't depend on
 $(EMACS_ROOT)/nt/inc/sys/stat.h.

14 years ago* configure.in (C_WARNINGS_SWITCH): Do not prepend -Wno-pointer-sign.
Paul Eggert [Sun, 20 Feb 2011 19:46:08 +0000 (11:46 -0800)]
* configure.in (C_WARNINGS_SWITCH): Do not prepend -Wno-pointer-sign.

14 years agoMerge from mainline.
Paul Eggert [Sun, 20 Feb 2011 19:31:01 +0000 (11:31 -0800)]
Merge from mainline.

14 years agoFix the MS-Windows build due to import of md5 from gnulib.
Christoph Scholtes [Sun, 20 Feb 2011 18:50:26 +0000 (20:50 +0200)]
Fix the MS-Windows build due to import of md5 from gnulib.

 src/makefile.w32-in: Remove md5.$(O).
 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
 lib/makefile.w32-in.
 ($(BLD)/fns.$(O)): Depend on $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
 lib/makefile.w32-in ($(BLD)/md5.$(O)): New recipe, moved from
 src/makefile.w32-in.

14 years ago(c-end-of-statement): Set macro-end correctly at the end of a loop.
Alan Mackenzie [Sun, 20 Feb 2011 18:36:29 +0000 (18:36 +0000)]
(c-end-of-statement): Set macro-end correctly at the end of a loop.

14 years ago.
Alan Mackenzie [Sun, 20 Feb 2011 18:35:30 +0000 (18:35 +0000)]
.

14 years ago* dired.c: Include <filemode.h> at top level.
Paul Eggert [Sun, 20 Feb 2011 17:14:24 +0000 (09:14 -0800)]
* dired.c: Include <filemode.h> at top level.

14 years agoConvert test/icalendar-testsuite.el to ERT format.
Ulf Jasper [Sun, 20 Feb 2011 14:35:58 +0000 (15:35 +0100)]
Convert test/icalendar-testsuite.el to ERT format.

* automated/icalendar-tests.el: Move from icalendar-testsuite.el;
  convert to ERT format.

14 years agoUpdate autoloads
Andreas Schwab [Sun, 20 Feb 2011 11:59:44 +0000 (12:59 +0100)]
Update autoloads

14 years agoImport filemode module from gnulib.
Paul Eggert [Sun, 20 Feb 2011 10:53:22 +0000 (02:53 -0800)]
Import filemode module from gnulib.

* Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
* deps.mk (dired.o): Depend on ../lib/filemode.h, too.
(filemode.o): Remove; this is now in ../lib.
* dired.c: Include <filemode.h>.
(filemodestring): Remove now-redundant decl.
* config.in: Regenerate.

2011-02-20  Paul Eggert  <eggert@cs.ucla.edu>

14 years agoImport filemode module from gnulib.
Paul Eggert [Sun, 20 Feb 2011 10:51:50 +0000 (02:51 -0800)]
Import filemode module from gnulib.

* .bzrignore: Add lib/sys/.
* Makefile.in (GNULIB_MODULES): Add filemode.
* lib/Makefile.am (MOSTLYCLEANDIRS): New macro.
* lib/filemode.c: Renamed from src/filemode.c and regenerated
from gnulib.  This adds support for some more file types, e.g.,
Cray DMF migrated files.
* lisp/emacs-lisp/find-gc.el (find-gc-source-files): Remove filemode.c.
* lib/filemode.h, lib/sys_stat.in.h, m4/filemode.m4, m4/st_dm_mode.m4:
* m4/sys_stat_h.m4: New files, generated from gnulib.
* aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
Regenerate.

2011-02-20  Paul Eggert  <eggert@cs.ucla.edu>

14 years agoMerge: Import crypto/md5 and stdint modules from gnulib.
Paul Eggert [Sun, 20 Feb 2011 08:48:52 +0000 (00:48 -0800)]
Merge: Import crypto/md5 and stdint modules from gnulib.

14 years agonnimap.el (nnimap-wait-for-response): Ensure that we get the entire line we're waitin...
Gnus developers [Sun, 20 Feb 2011 04:08:04 +0000 (04:08 +0000)]
nnimap.el (nnimap-wait-for-response): Ensure that we get the entire line we're waiting for.
gnus-art.el (gnus-article-next-page-1): Because customized mode-line face with line-width greater than zero will cause RET in gnus summary buffer to scroll down article page-wise because auto vscroll happens, it should be temporalily disabled when doing a scroll-up.

14 years agoedmacro.el trivia.
Glenn Morris [Sun, 20 Feb 2011 00:16:54 +0000 (16:16 -0800)]
edmacro.el trivia.

* lisp/edmacro.el: Remove old header comment.
(edmacro-eight-bits): Make it a defcustom.  Don't autoload it.

14 years agoautorevert.el trivia.
Glenn Morris [Sun, 20 Feb 2011 00:09:28 +0000 (16:09 -0800)]
autorevert.el trivia.

* lisp/autorevert.el (auto-revert-mode, auto-revert-tail-mode)
(global-auto-revert-ignore-buffer): Remove leading "*" from docs.
It makes zero sense to use it with these variables.

14 years agoPrevent hideshow from parsing braces inside comments (Bug#8036).
Dmitry Bolshakov [Sat, 19 Feb 2011 22:20:35 +0000 (17:20 -0500)]
Prevent hideshow from parsing braces inside comments (Bug#8036).

* progmodes/hideshow.el (hs-find-block-beginning)
(hs-hide-level-recursive): Ignore comments when parsing braces.

14 years agoImprovements to vc-bzr conffile handling and pull/merge support.
Chong Yidong [Sat, 19 Feb 2011 21:23:51 +0000 (16:23 -0500)]
Improvements to vc-bzr conffile handling and pull/merge support.

* vc/vc-bzr.el (vc-bzr--branch-conf): Function deleted.
(vc-bzr-branch-conf): New function, similar to vc-bzr--branch-conf
but returning an alist.  Ignore comments in bzr conffile.
(vc-bzr-pull, vc-bzr-merge-branch): Use vc-bzr-branch-conf.
(vc-bzr-error-regex-alist): New var.
(vc-bzr-merge-branch): Use it to highlight the pull/merge buffer.

* progmodes/compile.el (compilation--flush-directory-cache):
Handle the case where cdr of compilation--flush-directory-cache
points to no buffer, which can occur if we previously switched to
compilation-mode in a pregenerated buffer.

* vc/vc-dispatcher.el (vc-do-async-command): Bind
inhibit-read-only to t.

14 years agodoc/misc minor stylistic changes.
Glenn Morris [Sat, 19 Feb 2011 21:20:34 +0000 (13:20 -0800)]
doc/misc minor stylistic changes.

* doc/misc/edt.texi, erc.texi, gnus.texi, idlwave.texi, mh-e.texi:
Standardize some Emacs/XEmacs terminology.

14 years agodired-x no longer requires dired-aux.
Glenn Morris [Sat, 19 Feb 2011 20:44:34 +0000 (12:44 -0800)]
dired-x no longer requires dired-aux.

* lisp/dired-x.el: Don't require dired-aux.
(dired-do-create-files, dired-mark-read-regexp)
(dired-do-create-files-regexp): Autoload from dired-aux.

14 years agoMerge dired-x's dired-find-buffer-nocreate into dired.el.
Glenn Morris [Sat, 19 Feb 2011 20:36:54 +0000 (12:36 -0800)]
Merge dired-x's dired-find-buffer-nocreate into dired.el.

* lisp/dired-x.el (dired-find-buffer-nocreate): Merge into dired.el.

* lisp/dired.el (dired-find-buffer-nocreate): Merge dired-x version.

* doc/misc/dired-x.texi (Technical Details):
No longer redefines dired-find-buffer-nocreate.

14 years agoAdapt and fix the MS-DOS port due to gnulib imports.
Eli Zaretskii [Sat, 19 Feb 2011 19:56:29 +0000 (21:56 +0200)]
Adapt and fix the MS-DOS port due to gnulib imports.

 msdos/depfiles.bat: New file.
 msdos/sedlibmk.inp: New file.
 msdos/sedlibcf.inp: New file.
 msdos/sedleim.inp (RUN_EMACS): Rename from RUN-EMACS.
 (BUILT_EMACS): Rename from BUILT-EMACS.
 msdos/sed6.inp (MAKEINFO): Edit to "makeinfo".
 (ENVADD): Adjust to MAKEINFO_OPTS.
 (texinputdir): Don't edit.
 msdos/sed3v2.inp (-DVERSION): Edit out.
 (LOADLIBES): Don't edit to empty.
 msdos/sed2v2.inp: Remove workaround for the "#if ! HAVE_MKTIME ||
 BROKEN_MKTIME" stuff -- it's no longer in src/config.in.
 (HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV)
 (HAVE__BOOL): Edit to 1.
 (VERSION, inline, restrict): Edit for DJGPP.
 (my_strftime): Edit to nstrftime.
 msdos/sed1v2.inp (NS_OBJC_OBJ): Edit to empty.
 (@true): Edit to "@rem".
 (move-if-change): Edit to "update".
 (echo): Edit to "djecho".
 (cd $(lib) && ...): Edit to "$(MAKE) -C ...".
 (LIBOBJS): Edit to empty.
 ($(libsrc)/make-docfile): Two new edits, one each for every
 invocation of make-docfile.
 (move-if-change): Fix edit.
 Remove some unused switches from $(ALL_CFLAGS), to make the GCC
 command line shorter.
 msdos/mainmake.v2 (version): Remove, no longer needed (config.in
 defines VERSION).
 (all): Add lib.
 (lib): New target and recipe.
 (lib-src): Depend on lib.
 (src): Depend on lib and lib-src.
 (clean, mostlyclean, distclean, maintainer-clean, extraclean)
 (bootstrap-clean): Recurse into lib.
 (lib, lib-src, src): Specify "all" as an explicit target.
 .bzrignore: Ignore cxxdefs.h and lib/*.in-h files.
 Add lib/deps/.
 config.bat: Configure in `lib'.
 Generate *.Po files in lib/deps.
 src/termcap.c (tputs): Don't declare baud_rate.
 src/s/msdos.h (strtold): Define to _strtold.