bpt/emacs.git
12 years ago* process.h (struct Lisp_Process): Members tick and update_tick
Paul Eggert [Sun, 22 Apr 2012 04:48:13 +0000 (21:48 -0700)]
* process.h (struct Lisp_Process): Members tick and update_tick

are now of type EMACS_INT, not int.

* process.c (process_tick, update_tick): Use EMACS_INT, not int.

12 years ago* print.c: (print_depth, new_backquote_output, print_number_index):
Paul Eggert [Sun, 22 Apr 2012 04:35:17 +0000 (21:35 -0700)]
* print.c: (print_depth, new_backquote_output, print_number_index):

Use ptrdiff_t, not int, where int might not be wide enough.

12 years ago* sysdep.c (system_process_attributes): Use CONS_TO_INTEGER in new FreeBSD code,...
Paul Eggert [Sun, 22 Apr 2012 04:25:45 +0000 (21:25 -0700)]
* sysdep.c (system_process_attributes): Use CONS_TO_INTEGER in new FreeBSD code, too.

12 years agoMerge from trunk.
Paul Eggert [Sun, 22 Apr 2012 04:20:28 +0000 (21:20 -0700)]
Merge from trunk.

12 years ago* src/sysdep.c (list_system_processes): Support Darwin.
Leo Liu [Sun, 22 Apr 2012 02:58:23 +0000 (10:58 +0800)]
* src/sysdep.c (list_system_processes): Support Darwin.

Fixes: debbugs:5725

12 years ago* sysdep.c [__FreeBSD__]: Minor cleanups.
Paul Eggert [Sun, 22 Apr 2012 01:27:10 +0000 (18:27 -0700)]
* sysdep.c [__FreeBSD__]: Minor cleanups.

(list_system_processes, system_process_attributes) [__FreeBSD__]:
Use Emacs indenting style more consistently.  Avoid some casts.
Use 'double' consistently rather than mixing 'float' and 'double'.

12 years agoMerge from trunk.
Paul Eggert [Sun, 22 Apr 2012 00:53:32 +0000 (17:53 -0700)]
Merge from trunk.

12 years agoSync from gnulib version 4f11d6bebc3098c64ffde27079ab0d0cecfd0cdc
Paul Eggert [Sat, 21 Apr 2012 17:15:03 +0000 (10:15 -0700)]
Sync from gnulib version 4f11d6bebc3098c64ffde27079ab0d0cecfd0cdc

dated 2011-10-07.  Regenerating from current gnulib would be a
pervasive change, and currently the trunk isn't open to such changes.
* configure.in (WARN_CFLAGS): Remove; no longer needed now
that gnulib does it.
* lib/gnulib.mk, m4/gl-comp.m4: Regenerate.

12 years agoDon't add modes to which-func-modes if already set to t.
Juanma Barranquero [Sat, 21 Apr 2012 16:57:49 +0000 (18:57 +0200)]
Don't add modes to which-func-modes if already set to t.

* lisp/progmodes/verilog-mode.el (verilog-mode): Check whether
  which-func-modes is t before adding verilog-mode.
  Reported by Andy Moreton <andrewjmoreton@gmail.com>.

* lisp/mh-e/mh-folder.el (top): Check whether which-func-modes
  is t before adding mh-folder-mode.

12 years ago* lisp/net/rcirc.el (rcirc): Avoid error when process-contact returns
Leo Liu [Sat, 21 Apr 2012 14:12:27 +0000 (22:12 +0800)]
* lisp/net/rcirc.el (rcirc): Avoid error when process-contact returns
t.

12 years agoAdd system processes support for FreeBSD.
Eduard Wiebe [Sat, 21 Apr 2012 10:11:51 +0000 (18:11 +0800)]
Add system processes support for FreeBSD.

* src/sysdep.c (list_system_processes, system_process_attributes): Add
implementation for FreeBSD.

Fixes: debbugs:5243

12 years agoFix the build after leim-related changes.
Eli Zaretskii [Sat, 21 Apr 2012 09:48:42 +0000 (12:48 +0300)]
Fix the build after leim-related changes.

 msdos/sedleim.inp (RUN_EMACS): Replace BUILT_EMACS with EMACS.
 Remove stale editing of "else make quail".
 (.PHONY, compile-targets): Remove targets.
 (compile-main): Edit into something that can be done without
 requiring a Unixy shell.
 (bootstrap-clean): Likewise: edit to not require $(setwins).
 msdos/sed1v2.inp: Edit "cd $(leimdir) && $(MAKE) ..." into the
 equivalent "$(MAKE) $(MFLAGS) -C $(leimdir) ..." command.

12 years ago* lisp.mk (lisp): Update.
Andreas Schwab [Sat, 21 Apr 2012 08:03:52 +0000 (10:03 +0200)]
* lisp.mk (lisp): Update.

12 years agoFixes: debbugs:11285
Andreas Schwab [Sat, 21 Apr 2012 08:03:41 +0000 (10:03 +0200)]
Fixes: debbugs:11285

* m4/gl-comp.m4: Update.

12 years agoImprove tbl support in woman.el.
Michael Vehrs [Sat, 21 Apr 2012 05:54:39 +0000 (13:54 +0800)]
Improve tbl support in woman.el.

* lisp/woman.el (woman-find-next-control-line): New arg, specifying an
additional regexp component for the control line.
(woman2-roff-buffer): Use it.
(woman-break-table): New function.
(woman2-TS): Use it.

And some cleanups:

* lisp/woman.el (woman-set-buffer-display-table, woman-decode-region)
(woman-horizontal-escapes, woman-negative-vertical-space)
(woman-tab-to-tab-stop, woman2-fc, woman2-TS)
(WoMan-warn-ignored): Use ?\s instead of ?\ .

Fixes: debbugs:5635

12 years ago* keyboard.c (process_pending_signals): Define only if SYNC_INPUT.
Paul Eggert [Fri, 20 Apr 2012 21:26:18 +0000 (14:26 -0700)]
* keyboard.c (process_pending_signals): Define only if SYNC_INPUT.

It is never used otherwise.

12 years ago* lisp/minibuffer.el (completion-file-name-table): Complete user names.
Stefan Monnier [Fri, 20 Apr 2012 19:56:59 +0000 (15:56 -0400)]
* lisp/minibuffer.el (completion-file-name-table): Complete user names.

12 years agoFix up merged ChangeLog entries
Glenn Morris [Fri, 20 Apr 2012 16:27:52 +0000 (09:27 -0700)]
Fix up merged ChangeLog entries

12 years ago* src/print.c (print_preprocess): Only check print_depth if print-circle
Stefan Monnier [Fri, 20 Apr 2012 13:02:20 +0000 (09:02 -0400)]
* src/print.c (print_preprocess): Only check print_depth if print-circle
is nil.
(print_object): Check for cycles even when print-circle is nil and
print-gensym is t, but only check print_depth if print-circle is nil.

12 years ago* lisp/font-lock.el (lisp-font-lock-keywords-2): Add pcase, pcase-let
Leo Liu [Fri, 20 Apr 2012 11:36:21 +0000 (19:36 +0800)]
* lisp/font-lock.el (lisp-font-lock-keywords-2): Add pcase, pcase-let
and pcase-let*.

12 years agoFix emacsclient/server behavior under --without-x.
Chong Yidong [Fri, 20 Apr 2012 10:37:57 +0000 (18:37 +0800)]
Fix emacsclient/server behavior under --without-x.

* lib-src/emacsclient.c (main): Send -tty to Emacs under more circumstanced (Bug#8314).

* lisp/server.el (server-process-filter): Only try to open a window
system frame if compiled with graphical support (Bug#8314).

Fixes: debbugs:11102

12 years ago* lisp/server.el (server-execute): Respect initial-buffer-choice
Chong Yidong [Fri, 20 Apr 2012 10:04:19 +0000 (18:04 +0800)]
* lisp/server.el (server-execute): Respect initial-buffer-choice
if it is a string and there are no files to open.
(server-create-window-system-frame, server-create-tty-frame):
Don't switch buffers here.

Fixes: debbugs:2825

12 years agoMerge from emacs-24 branch
Chong Yidong [Fri, 20 Apr 2012 08:48:50 +0000 (16:48 +0800)]
Merge from emacs-24 branch

12 years ago* etc/CONTRIBUTE: Expand a bit on copyright assignments.
Glenn Morris [Fri, 20 Apr 2012 07:49:19 +0000 (00:49 -0700)]
* etc/CONTRIBUTE: Expand a bit on copyright assignments.

12 years ago* MORE.STUFF: General update.
Glenn Morris [Fri, 20 Apr 2012 07:37:20 +0000 (00:37 -0700)]
* MORE.STUFF: General update.
Mention list-packages.
Remove many old/outdated URLs.

12 years agoFix sysfs battery display.
Dan Nicolaescu [Fri, 20 Apr 2012 07:32:35 +0000 (15:32 +0800)]
Fix sysfs battery display.

* battery.el (battery-echo-area-format): Display remaining time
for sysfs backend too (Bug#11269).
(battery-linux-sysfs): Fix conditional for the charge.

12 years agoFix last change.
Chong Yidong [Fri, 20 Apr 2012 07:13:25 +0000 (15:13 +0800)]
Fix last change.

* lisp/progmodes/gdb-mi.el (gdb-inferior-io-sentinel): Don't do
anything if gdb process is killed.

12 years agoFixes for pty handling in gdb-mi.el and process.c.
Chong Yidong [Fri, 20 Apr 2012 06:39:29 +0000 (14:39 +0800)]
Fixes for pty handling in gdb-mi.el and process.c.

* lisp/progmodes/gdb-mi.el (gdb): Revert 2012-04-19 change.
(gdb-inferior-io--init-proc): New function.
(gdb-init-1): Use it.
(gdb-inferior-io-sentinel): New sentinel for the gdb-inferior pty,
responsible for allocating a new pty and hooking it to gdb when
the old pty gets an EIO due to process exit.
(gdb-delchar-or-quit): New command.  Bind it in gdb-mi buffers.
(gdb-tooltip-print): Don't use obsolete tooltip-use-echo-area.
(gdb-inferior-io--maybe-delete-pty): Move into gdb-reset.

* src/process.c (wait_reading_process_output): If EIO occurs on a pty,
set the status to "failed" and ensure that sentinel is run.

* doc/lispref/processes.texi (Asynchronous Processes): Mention nil
argument to start-process.

12 years agoChangeLog updates for last commit.
Eli Zaretskii [Fri, 20 Apr 2012 06:28:32 +0000 (09:28 +0300)]
ChangeLog updates for last commit.

12 years agoDoc fixes in window.el functions.
Eli Zaretskii [Fri, 20 Apr 2012 06:27:11 +0000 (09:27 +0300)]
Doc fixes in window.el functions.

 lisp/window.el (window-min-size, window-sizable, window-min-delta)
 (window-max-delta, window--resizable, window-resizable)
 (window-total-size, window-full-height-p, window-full-width-p)
 (window-in-direction, window--resize-mini-window, window-resize)
 (window--resize-child-windows-normal)
 (window--resize-child-windows, window--resize-siblings)
 (window--resize-this-window, adjust-window-trailing-edge)
 (enlarge-window, shrink-window): Doc fixes.

12 years agoPut the '$Id:' tag into MS-Windows executable of Emacs.
Eli Zaretskii [Fri, 20 Apr 2012 05:57:38 +0000 (08:57 +0300)]
Put the '$Id:' tag into MS-Windows executable of Emacs.

 lisp/version.el (top level): Put into the executable the ident-style
 '$Id:' tag on windows-nt as well.

12 years agoDoc fixes for emacs-bzr-* facilities.
Eli Zaretskii [Fri, 20 Apr 2012 05:47:55 +0000 (08:47 +0300)]
Doc fixes for emacs-bzr-* facilities.

 lisp/version.el (emacs-bzr-version, emacs-bzr-get-version): Doc fixes.

12 years agoFOR-RELEASE small edits
Glenn Morris [Fri, 20 Apr 2012 04:03:55 +0000 (21:03 -0700)]
FOR-RELEASE small edits

12 years agoSome rough FAQ additions for Emacs 24
Glenn Morris [Fri, 20 Apr 2012 02:19:43 +0000 (22:19 -0400)]
Some rough FAQ additions for Emacs 24

* doc/misc/faq.texi (New in Emacs 24): New section.
(Packages that do not come with Emacs): Mention M-x list-packages.

12 years agoMore small edits for doc/lispref/minibuf.texi
Glenn Morris [Fri, 20 Apr 2012 01:37:14 +0000 (21:37 -0400)]
More small edits for doc/lispref/minibuf.texi

* doc/lispref/elisp.texi, doc/lispref/vol1.texi, doc/lispref/vol2.texi:
* doc/lispref/minibuf.texi (Completion):
Update "High-Level Completion" description.

* doc/lispref/minibuf.texi (Basic Completion):
No need to describe obarrays here.
Don't mention obsolete `nospace' argument of all-completions.
(Minibuffer Completion, Completion Commands, Reading File Names)
(Completion Variables): Copyedits.
(Completion Commands): Mention parent keymaps.
Remove obsolete minibuffer-local-filename-must-match-map.
(High-Level Completion): Remove read-variable's almost
word-for-word duplication of read-command.

12 years ago* lisp/electric.el (electric-indent-post-self-insert-function): Check that
Stefan Monnier [Thu, 19 Apr 2012 22:02:25 +0000 (18:02 -0400)]
* lisp/electric.el (electric-indent-post-self-insert-function): Check that
electric-indent-mode is enabled in current buffer.

12 years agolisp/imenu.el (imenu-progress-message): Restore.
Juanma Barranquero [Thu, 19 Apr 2012 21:34:49 +0000 (23:34 +0200)]
lisp/imenu.el (imenu-progress-message): Restore.

12 years agolisp/*: Add declarations, remove unused bindings, mark unused args.
Juanma Barranquero [Thu, 19 Apr 2012 17:20:26 +0000 (19:20 +0200)]
lisp/*: Add declarations, remove unused bindings, mark unused args.

* lisp/avoid.el (mouse-avoidance-mode): Mark unused arg.
  (mouse-avoidance-nudge-mouse): Remove unused binding.

* lisp/imenu.el (imenu-default-goto-function): Mark unused args.
  (imenu-progress-message): Remove obsolete macro; all callers changed.

* lisp/mouse.el (mouse-menu-major-mode-map):
* lisp/emacs-lisp/authors.el (authors-scan-change-log)
  (authors-add-to-author-list):
* lisp/emacs-lisp/avl-tree.el (avl-tree--enter-balance):
* lisp/emacs-lisp/smie.el (smie-auto-fill):
* lisp/mail/sendmail.el (mail-bury):
* lisp/mail/unrmail.el (unrmail):
* lisp/net/tls.el (open-tls-stream):
* lisp/textmodes/picture.el (picture-mouse-set-point):
  Remove unused bindings.

* lisp/subr.el (keymap-canonicalize): Remove unused binding.
  (read-passwd): Mark unused arg.

* lisp/tutorial.el (tutorial--display-changes): Remove unused binding.
  (tutorial--save-tutorial-to): Remove unused variable.

* lisp/emacs-lisp/package.el (define-package, package-menu-mark-delete)
  (package-menu-mark-install, package-menu-mark-unmark): Mark unused args.
  (package-generate-autoloads, package-menu--generate)
  (package-menu--find-upgrades): Remove unused bindings.

* lisp/emulation/cua-rect.el (cua-restrict-regexp-rectangle)
  (cua-restrict-prefix-rectangle): Doc fixes.  Remove unused bindings.
  (cua--mouse-ignore, cua--delete-rectangle, cua--extract-rectangle)
  (cua--indent-rectangle, cua-open-rectangle, cua-close-rectangle)
  (cua-blank-rectangle, cua-string-rectangle, cua-replace-in-rectangle)
  (cua-incr-rectangle, cua-sequence-rectangle, cua--convert-rectangle-as)
  (cua--rectangle-aux-replace, cua--left-fill-rectangle)
  (cua-scroll-rectangle-up, cua-scroll-rectangle-down)
  (cua-delete-char-rectangle): Mark unused args.
  (cua-align-rectangle): Remove unused binding.

* lisp/mail/rmail.el (compilation--message->loc)
  (epa--find-coding-system-for-mime-charset): Declare.

* lisp/net/dbus.el (dbus-register-service): Declare.
  (dbus-name-owner-changed-handler): Remove unused binding.

* lisp/nxml/nxml-mode.el (nxml-electric-slash, nxml-in-mixed-content-p)
  (nxml-compute-indent-from-matching-start-tag): Remove unused variables.
  (nxml-scan-backward-within): Mark unused arg.
  (nxml-dynamic-markup-word): Remove unused binding.

12 years agoRemove some `toggle-read-only' warnings.
Juanma Barranquero [Thu, 19 Apr 2012 16:50:07 +0000 (18:50 +0200)]
Remove some `toggle-read-only' warnings.

* lisp/bs.el (bs-toggle-readonly): Call `toggle-read-only' interactively.

* lisp/descr-text.el (describe-char):
  lisp/progmodes/python.el (python-describe-symbol):
  Don't call `toggle-read-only', set `buffer-read-only'.

12 years agoAuto-commit of generated files.
Glenn Morris [Thu, 19 Apr 2012 10:17:36 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years ago* net/tramp.el (tramp-action-password): Let-bind enable-recursive-minibuffers to t.
Michael Albinus [Thu, 19 Apr 2012 08:37:10 +0000 (10:37 +0200)]
* net/tramp.el (tramp-action-password): Let-bind enable-recursive-minibuffers to t.

12 years agoDelete the gdb-inferior pty when the gdb process exits.
Chong Yidong [Thu, 19 Apr 2012 08:09:30 +0000 (16:09 +0800)]
Delete the gdb-inferior pty when the gdb process exits.

* lisp/progmodes/gdb-mi.el (gdb-inferior-io--maybe-delete-pty): New
function to call delete-process on the gdb-inferior buffer's pty.
(gdb-reset): Use it, instead of relying on kill-buffer to kill the
pty process.
(gdb-update): New arg to suppress talking to the gdb process.
(gdb-done-or-error): Use it.
(gdb-stopped-functions): Rename from gdb-stopped-hooks.
(gdb): Call gdb-inferior-io--maybe-delete-pty as a workaround for
sentinel not being called.

* lisp/comint.el (make-comint-in-buffer, comint-exec): Doc fix.

Fixes: debbugs:11273

12 years agoChangeLog fix
Glenn Morris [Thu, 19 Apr 2012 06:05:58 +0000 (23:05 -0700)]
ChangeLog fix

12 years agoMore small edits for doc/lispref/minibuf.texi
Glenn Morris [Thu, 19 Apr 2012 06:04:05 +0000 (23:04 -0700)]
More small edits for doc/lispref/minibuf.texi

* doc/lispref/minibuf.texi (Object from Minibuffer):
Remove overly pedantic paragraph.
(Minibuffer History): Copyedits.  Add face-name-history.
(Initial Input, Yes-or-No Queries, Multiple Queries)
(Minibuffer Windows, Minibuffer Misc): Copyedits.
(Yes-or-No Queries): Tweak example.
(Minibuffer Commands): Add next-complete-history-element.
(Minibuffer Misc): Mention minibuffer-message-timeout, and
minibuffer-inactive-mode.

* doc/lispref/minibuf.texi (Minibuffers):
* doc/lispref/elisp.texi, doc/lispref/vol1.texi, doc/lispref/vol2.texi:
Fix minibuffer subsection order.

* lisp/subr.el: Comment.

12 years agoShameful typo
Glenn Morris [Thu, 19 Apr 2012 02:44:48 +0000 (19:44 -0700)]
Shameful typo

12 years agoSmall edits for doc/lispref/minibuf.texi
Glenn Morris [Thu, 19 Apr 2012 02:00:23 +0000 (22:00 -0400)]
Small edits for doc/lispref/minibuf.texi

* doc/lispref/minibuf.texi: Standardize metasyntactic variables
("history", etc).
Use Texinfo-recommended form of quote+punctuation.
(Intro to Minibuffers): First minibuffer is #1, not #0.
Mention minibuffer-inactive-mode.
(Text from Minibuffer): Copyedits.
(Minibuffer History, Programmed Completion): Fix @var usage.

12 years ago* lisp/progmodes/gud.el (gud-key-prefix): Use :type 'key-sequence
Sam Steingold [Wed, 18 Apr 2012 20:26:57 +0000 (16:26 -0400)]
* lisp/progmodes/gud.el (gud-key-prefix): Use :type 'key-sequence
instead of 'string to accommodate values like [f11].
Always use `vconcat' instead of `concat' on it, like in `gud-def'.
* lisp/progmodes/gdb-mi.el: Likewise.

12 years agoMerge from trunk.
Paul Eggert [Wed, 18 Apr 2012 17:07:06 +0000 (10:07 -0700)]
Merge from trunk.

12 years agoMerge from trunk.
Paul Eggert [Wed, 18 Apr 2012 16:45:13 +0000 (09:45 -0700)]
Merge from trunk.

12 years ago* lisp/abbrev.el (edit-abbrevs): Move point to the abbrev table of
Leo Liu [Wed, 18 Apr 2012 16:43:23 +0000 (00:43 +0800)]
* lisp/abbrev.el (edit-abbrevs): Move point to the abbrev table of
current buffer.
(prepare-abbrev-list-buffer): Enter edit-abbrevs-mode only if
LOCAL is nil.

12 years ago* configure.in: Do not assume GCC 4.7.0 and/or no stack protection.
Paul Eggert [Wed, 18 Apr 2012 16:40:06 +0000 (09:40 -0700)]
* configure.in: Do not assume GCC 4.7.0 and/or no stack protection.

12 years agoAuto-commit of generated files.
Glenn Morris [Wed, 18 Apr 2012 11:17:59 +0000 (07:17 -0400)]
Auto-commit of generated files.

12 years agoMore small doc and lispref edits related to processes
Glenn Morris [Wed, 18 Apr 2012 07:21:18 +0000 (00:21 -0700)]
More small doc and lispref edits related to processes

* doc/lispref/processes.texi (Serial Ports, Byte Packing, Bindat Spec)
(Bindat Functions): Copyedits.

* src/process.c (Fset_process_inherit_coding_system_flag)
(Fset_process_query_on_exit_flag): Doc fix (mention return value).
(Fmake_network_process, Fmake_serial_process): Doc fix.

* admin/FOR-RELEASE: Related markup.

12 years ago* simple.el (line-move): Use forward-line if in batch mode.
Chong Yidong [Wed, 18 Apr 2012 07:00:52 +0000 (15:00 +0800)]
* simple.el (line-move): Use forward-line if in batch mode.

Fixes: debbugs:11053

12 years agoFix require-final-newline interaction with read-only buffers.
Christopher Schmidt [Wed, 18 Apr 2012 06:24:13 +0000 (14:24 +0800)]
Fix require-final-newline interaction with read-only buffers.

* lisp/files.el (after-find-file): Do not try to add a final newline
if the buffer is read-only.

Fixes: debbugs:11156

12 years agoDocfix for require-final-newline in Lisp manual.
Christopher Schmidt [Wed, 18 Apr 2012 06:20:47 +0000 (14:20 +0800)]
Docfix for require-final-newline in Lisp manual.

* doc/lispref/files.texi (Saving Buffers): Document `visit and `visit-save'
values of require-final-newline.

12 years ago* lisp/progmodes/grep.el (grep, rgrep): Doc fix.
Chong Yidong [Wed, 18 Apr 2012 06:04:51 +0000 (14:04 +0800)]
* lisp/progmodes/grep.el (grep, rgrep): Doc fix.

Fixes: debbugs:11268

12 years agoMore process-related doc and manual small edits
Glenn Morris [Wed, 18 Apr 2012 03:48:43 +0000 (20:48 -0700)]
More process-related doc and manual small edits

* doc/lispref/processes.texi (Output from Processes, Filter Functions):
Mention waiting-for-user-input-p.
(Sentinels, Query Before Exit, System Processes, Transaction Queues):
(Network Servers, Datagrams, Network Processes, Network Options)
(Network Feature Testing, Serial Ports): Copyedits.
(Network): Add encrypted network overview paragraph.
Cross-reference the Emacs-GnuTLS manual.  Use @acronym.

* lisp/net/network-stream.el (open-network-stream): Doc fix.

* src/process.c (Fset_process_inherit_coding_system_flag)
(Fset_process_query_on_exit_flag): Doc fix (mention return value).
(Fmake_network_process): Doc fix.

12 years ago* configure.in: Don't use the -R option (Bug#11251).
Ludovic Courtès [Wed, 18 Apr 2012 02:14:53 +0000 (10:14 +0800)]
* configure.in: Don't use the -R option (Bug#11251).

12 years agoFix logic for returning to and yanking from Rmail buffer.
Richard M. Stallman [Tue, 17 Apr 2012 23:23:20 +0000 (19:23 -0400)]
Fix logic for returning to and yanking from Rmail buffer.

12 years agoFix ChangeLog typo.
Paul Eggert [Tue, 17 Apr 2012 23:06:33 +0000 (16:06 -0700)]
Fix ChangeLog typo.

12 years agoMerge from trunk.
Paul Eggert [Tue, 17 Apr 2012 22:57:44 +0000 (15:57 -0700)]
Merge from trunk.

12 years ago* dired.c (Fsystem_groups): Remove unused local.
Paul Eggert [Tue, 17 Apr 2012 22:56:06 +0000 (15:56 -0700)]
* dired.c (Fsystem_groups): Remove unused local.

12 years agoINSTALL: Mention --enable-gcc-warnings.
Paul Eggert [Tue, 17 Apr 2012 21:40:07 +0000 (14:40 -0700)]
INSTALL: Mention --enable-gcc-warnings.

12 years agoMerge from trunk.
Paul Eggert [Tue, 17 Apr 2012 21:38:34 +0000 (14:38 -0700)]
Merge from trunk.

12 years agolisp/server.el (server-ensure-safe-dir): Simplify.
Juanma Barranquero [Tue, 17 Apr 2012 17:05:22 +0000 (19:05 +0200)]
lisp/server.el (server-ensure-safe-dir): Simplify.

12 years agolisp/subr.el: Update comment.
Juanma Barranquero [Tue, 17 Apr 2012 16:24:44 +0000 (18:24 +0200)]
lisp/subr.el: Update comment.

12 years agoFix bug #11261 with cursor movement in a continued line when header line is present.
Eli Zaretskii [Tue, 17 Apr 2012 15:25:17 +0000 (18:25 +0300)]
Fix bug #11261 with cursor movement in a continued line when header line is present.

 src/xdisp.c (string_buffer_position_lim): Limit starting position to BEGV.
 (set_cursor_from_row): If called for a mode-line or header-line
 row, return zero immediately.
 (try_cursor_movement): If inside continuation line, don't back up
 farther than the first row after the header line, if any.  Don't
 consider the header-line row as "partially visible", even if
 MATRIX_ROW_PARTIALLY_VISIBLE_P returns non-zero.

12 years ago* emacs-lisp/tabulated-list.el (tabulated-list-print): Fix typos.
Chong Yidong [Tue, 17 Apr 2012 15:07:21 +0000 (23:07 +0800)]
* emacs-lisp/tabulated-list.el (tabulated-list-print): Fix typos.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 17 Apr 2012 10:21:15 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.

12 years agoAuto-commit of generated files.
Glenn Morris [Tue, 17 Apr 2012 10:17:40 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years agoImprove description of :advertised-binding in Lisp manual.
Chong Yidong [Tue, 17 Apr 2012 05:58:34 +0000 (13:58 +0800)]
Improve description of :advertised-binding in Lisp manual.

* doc/lispref/keymaps.texi (Menu Bar): Move most of the :advertised-binding
description to help.texi.

* doc/lispref/help.texi (Keys in Documentation): Mention :advertised-binding.

12 years agoNEWS placeholder
Glenn Morris [Tue, 17 Apr 2012 03:08:05 +0000 (20:08 -0700)]
NEWS placeholder

12 years agoMerge from pending; try to fix-up suboptimal ses ChangeLog.
Glenn Morris [Tue, 17 Apr 2012 03:06:56 +0000 (20:06 -0700)]
Merge from pending; try to fix-up suboptimal ses ChangeLog.

12 years agoAdd perl-indent-parens-as-block option (tiny change)
Peter Oliver [Tue, 17 Apr 2012 02:46:22 +0000 (19:46 -0700)]
Add perl-indent-parens-as-block option (tiny change)

* lisp/progmodes/perl-mode.el (perl-indent-parens-as-block): New option.
(perl-calculate-indent): Respect it.

Fixes: debbugs:11118

12 years ago* lisp/dired-aux.el (dired-mark-read-string): Doc fix.
Glenn Morris [Tue, 17 Apr 2012 01:52:00 +0000 (21:52 -0400)]
* lisp/dired-aux.el (dired-mark-read-string): Doc fix.

12 years agoAdd user, group name completion to dired
Dmitry Antipov [Tue, 17 Apr 2012 01:49:40 +0000 (21:49 -0400)]
Add user, group name completion to dired

Note from committer:

I modified the original patch, by adding the new collection argument
at the end of the argument list rather than in the middle.

* dired-aux.el (dired-mark-read-string): Offer optional completion.
(dired-do-chxxx): Complete chown, chgrp over users, groups.

Fixes: debbugs:7900

12 years ago* src/dired.c (Fsystem_users): Doc fix.
Glenn Morris [Tue, 17 Apr 2012 01:35:15 +0000 (21:35 -0400)]
* src/dired.c (Fsystem_users): Doc fix.

* etc/NEWS: Mention system-users, system-groups.

12 years agoAdd functions to get system user names, group names
Dmitry Antipov [Tue, 17 Apr 2012 01:29:58 +0000 (21:29 -0400)]
Add functions to get system user names, group names

Note from committer:
I removed the part that adds grp.h to AC_CHECK_HEADERS and

+#ifdef HAVE_GRP_H
 #include <grp.h>
+#endif

to src/dired.c, because the latter has unconditionally included grp.h
since 2003, and uses it eg in stat_gname.

* configure.in (AC_CHECK_FUNCS): Add getpwent, endpwent, getgrent, endgrent.

* src/dired.c (Fsystem_users, Fsystem_groups): New functions.
(syms_of_dired): Add them.

Fixes: debbugs:7900

12 years agoUse auto-hscroll-mode rather than the alias automatic-hscrolling
Glenn Morris [Tue, 17 Apr 2012 00:04:53 +0000 (20:04 -0400)]
Use auto-hscroll-mode rather than the alias automatic-hscrolling

* lisp/mouse.el (mouse-drag-track):
* lisp/speedbar.el (speedbar-frame-mode):
Use auto-hscroll-mode rather than the alias automatic-hscrolling.

12 years agoReplace independent implementations of string-prefix-p
Glenn Morris [Mon, 16 Apr 2012 23:57:09 +0000 (19:57 -0400)]
Replace independent implementations of string-prefix-p

* vc/vc.el (vc-string-prefix-p):
* vc/pcvs-util.el (cvs-string-prefix-p):
* textmodes/tex-mode.el (latex-string-prefix-p, tex-string-prefix-p):
* mpc.el (mpc-string-prefix-p):
Make all of these into obsolete aliases for string-prefix-p.
Update callers.
* vc/pcvs.el, vc/vc-dispatcher.el, vc/vc-dir.el: Update callers.

12 years agoFix thinko in previous yow.el change
Glenn Morris [Mon, 16 Apr 2012 23:07:19 +0000 (19:07 -0400)]
Fix thinko in previous yow.el change

12 years agotwo-column.el small cleanup
Glenn Morris [Mon, 16 Apr 2012 20:13:38 +0000 (16:13 -0400)]
two-column.el small cleanup

* lisp/textmodes/two-column.el: Move custom options to the start.
(frame-width): Remove compat definition.
(2C-associate-buffer, 2C-dissociate):
Use with-current-buffer rather than save-excursion.
(2C-dissociate): Force a mode-line update.
(2C-autoscroll): Use ignore-errors.

12 years agoCC Mode: Ensure searching for keywords is case sensitive.
Alan Mackenzie [Mon, 16 Apr 2012 20:01:44 +0000 (20:01 +0000)]
CC Mode: Ensure searching for keywords is case sensitive.

12 years ago* lisp/progmodes/python.el: Trivial cleanup.
Leo Liu [Mon, 16 Apr 2012 19:28:57 +0000 (03:28 +0800)]
* lisp/progmodes/python.el: Trivial cleanup.

12 years ago* eieio-opt.el (describe-class, describe-generic): Autoload trivia.
Glenn Morris [Mon, 16 Apr 2012 19:25:59 +0000 (15:25 -0400)]
* eieio-opt.el (describe-class, describe-generic): Autoload trivia.

12 years agoChangeLog fix
Glenn Morris [Mon, 16 Apr 2012 19:22:32 +0000 (15:22 -0400)]
ChangeLog fix

12 years agoHeader comment trivial fix
Glenn Morris [Mon, 16 Apr 2012 19:21:32 +0000 (15:21 -0400)]
Header comment trivial fix

12 years ago* lisp/emacs-lisp/cl-extra.el (*random-state*): Remove unnecessary declaration.
Glenn Morris [Mon, 16 Apr 2012 19:20:42 +0000 (15:20 -0400)]
* lisp/emacs-lisp/cl-extra.el (*random-state*): Remove unnecessary declaration.

12 years ago* lisp/calendar/cal-tex.el (cal-tex-end-document): Trivial clarification.
Glenn Morris [Mon, 16 Apr 2012 19:18:36 +0000 (15:18 -0400)]
* lisp/calendar/cal-tex.el (cal-tex-end-document): Trivial clarification.

12 years ago* configure.in (NS_HAVE_NSINTEGER): Remove unnecessary variable.
Glenn Morris [Mon, 16 Apr 2012 19:13:44 +0000 (15:13 -0400)]
* configure.in (NS_HAVE_NSINTEGER): Remove unnecessary variable.

12 years ago* lisp/gnus/nndraft.el (nndraft-request-list): Fix declaration.
Glenn Morris [Mon, 16 Apr 2012 19:09:19 +0000 (15:09 -0400)]
* lisp/gnus/nndraft.el (nndraft-request-list): Fix declaration.

12 years agoFix comment typo
Glenn Morris [Mon, 16 Apr 2012 19:06:02 +0000 (15:06 -0400)]
Fix comment typo

12 years ago* cookie1.el (cookie-snarf): Explicit error if input file cannot be read.
Glenn Morris [Mon, 16 Apr 2012 19:04:27 +0000 (15:04 -0400)]
* cookie1.el (cookie-snarf): Explicit error if input file cannot be read.

12 years ago* lisp/play/yow.el (yow-file): Use expand-file-name rather than concat.
Glenn Morris [Mon, 16 Apr 2012 19:02:59 +0000 (15:02 -0400)]
* lisp/play/yow.el (yow-file): Use expand-file-name rather than concat.
Remove old comment.

12 years ago* lisp/progmodes/perl-mode.el (c-macro-expand): Remove unnecessary autoload
Glenn Morris [Mon, 16 Apr 2012 19:01:30 +0000 (15:01 -0400)]
* lisp/progmodes/perl-mode.el (c-macro-expand): Remove unnecessary autoload
(it is in loaddefs.el).

12 years agopicture.el small cleanup
Glenn Morris [Mon, 16 Apr 2012 18:53:06 +0000 (14:53 -0400)]
picture.el small cleanup

* lisp/textmodes/picture.el (picture-desired-column)
(picture-update-desired-column): Convert comments to doc-strings.
(picture-substitute): Remove function.
(picture-mode-map): Initialize in the defvar.

12 years agoSet lisp/vc/vc-hg.el maintainer to FSF.
Glenn Morris [Mon, 16 Apr 2012 18:48:46 +0000 (14:48 -0400)]
Set lisp/vc/vc-hg.el maintainer to FSF.
Ref: http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-03/msg00325.html

12 years agoReplace a use of eval-after-load
Glenn Morris [Mon, 16 Apr 2012 18:46:46 +0000 (14:46 -0400)]
Replace a use of eval-after-load

* lisp/woman.el: Remove eval-after-load for tar-mode.

* lisp/tar-mode.el (tar-mode-map): Add woman binding and menu entry.
(woman-tar-extract-file): Autoload it.

12 years ago* lisp/frame.el (automatic-hscrolling): Make this alias obsolete.
Glenn Morris [Mon, 16 Apr 2012 18:41:38 +0000 (14:41 -0400)]
* lisp/frame.el (automatic-hscrolling): Make this alias obsolete.