bpt/emacs.git
13 years agoMake update_autogen handle loaddefs-like files as well.
Glenn Morris [Wed, 6 Apr 2011 02:13:16 +0000 (19:13 -0700)]
Make update_autogen handle loaddefs-like files as well.

* autogen/update_autogen: (usage): Add -l, -C.
(clean, ldefs_flag, ldefs_in, ldefs_out): New variables.
With -l, check status of lisp/ as well.
With -C, clean before building.
(autoreconf): Only pass -f in the `clean' case.
(commit): New function.

* lisp/Makefile.in (AUTOGEN_VCS): New variable.
(autoloads): Use $AUTOGEN_VCS.

* .bzrignore: Tighten up ignore patterns (for autogen/).

13 years agoCalendar fix for scroll-bar scrolling (b#8305).
Glenn Morris [Wed, 6 Apr 2011 02:05:45 +0000 (19:05 -0700)]
Calendar fix for scroll-bar scrolling (b#8305).

* lisp/calendar/cal-move.el (calendar-scroll-toolkit-scroll): New function.
* lisp/calendar/calendar.el (calendar-mode-map):
Check for toolkit scroll bars.

13 years ago* lisp/gnus/registry.el: Fix copyright, standardize license notice.
Glenn Morris [Wed, 6 Apr 2011 02:01:39 +0000 (19:01 -0700)]
* lisp/gnus/registry.el: Fix copyright, standardize license notice.

13 years agolisp/mh-e/mh-funcs.el (mh-undo-folder): Make compatible with `revert-buffer' (bug...
Juanma Barranquero [Wed, 6 Apr 2011 01:14:03 +0000 (03:14 +0200)]
lisp/mh-e/mh-funcs.el (mh-undo-folder): Make compatible with `revert-buffer' (bug#8431).

13 years agoAdd lisp/gnus/registry.el.
Ted Zlatanov [Tue, 5 Apr 2011 23:37:02 +0000 (23:37 +0000)]
Add lisp/gnus/registry.el.

13 years agoMerge changes made in Gnus trunk.
Teodor Zlatanov [Tue, 5 Apr 2011 22:35:05 +0000 (22:35 +0000)]
Merge changes made in Gnus trunk.

gnus-registry.el (gnus-registry-fixup-registry): New function to fixup the parameters that can be customized by the user between save/read cycles.
 (gnus-registry-read): Use it.
 (gnus-registry-make-db): Use it.
 (gnus-registry-spool-action, gnus-registry-handle-action): Fix messaging.
 (gnus-registry--split-fancy-with-parent-internal): Fix loop.  Map references to actual group names with sender and subject tracking.
 (gnus-registry-post-process-groups): Use `cond' for better messaging.
 (gnus-registry-usage-test): Add subject lookup test.
registry.el (registry-db, initialize-instance): Set up constructor instead of :initform arguments for the sake of older Emacsen.
 (registry-lookup-breaks-before-lexbind): New method to demonstrate pre-lexbind merge bug.
 (registry-usage-test): Use it.
 (initialize-instance, registry-db): Move the non-function initforms back to the class definition.
registry.el: New library to manage gnus-registry-style data.
gnus-registry.el: Use it (major rewrite).
nnregistry.el: Use it.
spam.el: Use it.

13 years agoRemove extraneous messages in 2011-03-30 completion change.
Chong Yidong [Tue, 5 Apr 2011 21:19:42 +0000 (17:19 -0400)]
Remove extraneous messages in 2011-03-30 completion change.
These blocked the minibuffer contents when completing in the minibuffer, in a
departure from previous Emacs behavior.

* lisp/minibuffer.el (completion-in-region--postch)
(completion-in-region-mode): Remove unnecessary messages.

13 years agolisp/font-lock.el: Remove obsolete code.
Juanma Barranquero [Tue, 5 Apr 2011 15:20:21 +0000 (17:20 +0200)]
lisp/font-lock.el: Remove obsolete code.

* font-lock.el (font-lock-refresh-defaults):
  Don't bind `hi-lock--inhibit-font-lock-hook', removed in
  2010-10-09T04:09:19Z!cyd@stupidchicken.com and 2010-10-11T23:57:49Z!lekktu@gmail.com

13 years agolisp/info.el: Fix typos; mark unused parameters.
Juanma Barranquero [Tue, 5 Apr 2011 15:08:28 +0000 (17:08 +0200)]
lisp/info.el: Fix typos; mark unused parameters.

* info.el (Info-directory-list, Info-read-node-name-2)
  (Info-split-parameter-string): Doc fixes.
  (Info-virtual-nodes): Reflow docstring.
  (Info-find-file, Info-directory-toc-nodes, Info-history-toc-nodes)
  (Info-apropos-toc-nodes, info-finder, Info-get-token)
  (Info-find-emacs-command-nodes, Info-speedbar-key-map):
  Fix typos in docstrings.
  (Info-revert-buffer-function, Info-search, Info-isearch-pop-state)
  (Info-speedbar-hierarchy-buttons, Info-speedbar-goto-node)
  (Info-speedbar-buttons, Info-desktop-buffer-misc-data)
  (Info-restore-desktop-buffer): Mark unused parameters.
  (Info-directory-find-file, Info-directory-find-node)
  (Info-history-find-file, Info-history-find-node, Info-toc-find-node)
  (Info-virtual-index-find-node, Info-apropos-find-file)
  (Info-apropos-find-node, Info-finder-find-file, Info-finder-find-node):
  Mark unused parameters; fix typos in arguments.
  (Info-virtual-index): Remove unused local variable `nodename'.

13 years ago* lisp/net/rcirc.el: Update my e-mail address.
Deniz Dogan [Tue, 5 Apr 2011 04:33:38 +0000 (06:33 +0200)]
* lisp/net/rcirc.el: Update my e-mail address.

13 years ago* lisp/net/rcirc.el (rcirc-mode-map): Remove M-o binding.
Deniz Dogan [Tue, 5 Apr 2011 04:31:24 +0000 (06:31 +0200)]
* lisp/net/rcirc.el (rcirc-mode-map): Remove M-o binding.

13 years agoFix theme and X-resource interactions for the cursor face.
Chong Yidong [Tue, 5 Apr 2011 01:21:52 +0000 (21:21 -0400)]
Fix theme and X-resource interactions for the cursor face.

* lisp/startup.el (command-line): Save the cursor's theme-face
directly, instead of using face-override-spec.

* lisp/custom.el (load-theme): Minor optimization in assigning faces.

13 years agolisp/help-fns.el: Fix mistake in previous change.
Juanma Barranquero [Mon, 4 Apr 2011 22:33:12 +0000 (00:33 +0200)]
lisp/help-fns.el: Fix mistake in previous change.

13 years agolisp/help-fns.el (describe-variable): Fix completion.
Juanma Barranquero [Mon, 4 Apr 2011 22:08:01 +0000 (00:08 +0200)]
lisp/help-fns.el (describe-variable): Fix completion.

http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00112.html

13 years agognus-sum.el (gnus-update-marks): Reinstate the code to not alter marks on non-selecte...
Lars Magne Ingebrigtsen [Mon, 4 Apr 2011 14:03:08 +0000 (14:03 +0000)]
gnus-sum.el (gnus-update-marks): Reinstate the code to not alter marks on non-selected articles.
gnus-start.el (gnus-get-unread-articles): Don't try to contact denied servers.

13 years agoConvert some .el files to lexical scoping.
Juanma Barranquero [Mon, 4 Apr 2011 09:35:16 +0000 (11:35 +0200)]
Convert some .el files to lexical scoping.

* bs.el (bs-refresh, bs-sort-buffer-interns-are-last)
  (bs--get-marked-string, bs--get-modified-string)
  (bs--get-readonly-string, bs--get-size-string, bs--get-name)
  (bs--get-mode-name, bs--get-file-name): Mark unused arguments.
  (bs--configuration-name-for-prefix-arg): Rename argument PREFIX-ARG.

* ehelp.el (electric-help-execute-extended)
  (electric-help-ctrl-x-prefix):
* hexl.el (hexl-revert-buffer-function):
* linum.el (linum-after-change, linum-after-scroll):
* emacs-lisp/re-builder.el (reb-auto-update): Mark unused arguments.

* help-fns.el (help-describe-category-set): Remove unused ERR variable.

13 years agolisp/dired.el: Update autoloads.
Juanma Barranquero [Mon, 4 Apr 2011 09:28:26 +0000 (11:28 +0200)]
lisp/dired.el: Update autoloads.

13 years agoUse lexical binding in ep[ga]*.el.
Daiki Ueno [Mon, 4 Apr 2011 06:16:23 +0000 (15:16 +0900)]
Use lexical binding in ep[ga]*.el.

* epa-dired.el:
* epa-mail.el:
* epa-hook.el:
* epa-file.el:
* epa.el:
* epg.el: Use lexical binding.

13 years ago* src/keyboard.c (safe_run_hook_funcall): Fix last change (don't stop at the
Stefan Monnier [Mon, 4 Apr 2011 01:10:13 +0000 (21:10 -0400)]
* src/keyboard.c (safe_run_hook_funcall): Fix last change (don't stop at the
first non-nil return value).

13 years ago* lisp/dired-aux.el (dired-create-files): Add docstring (Bug#7970).
Chong Yidong [Sun, 3 Apr 2011 21:23:23 +0000 (17:23 -0400)]
* lisp/dired-aux.el (dired-create-files): Add docstring (Bug#7970).

13 years agoAdd changes to lisp/url/ChangeLog omitted from 2011-04-02T23:41:03Z!cyd@stupidchicken...
Chong Yidong [Sun, 3 Apr 2011 21:06:47 +0000 (17:06 -0400)]
Add changes to lisp/url/ChangeLog omitted from 2011-04-02T23:41:03Z!cyd@stupidchicken.com.

13 years agoImprovements to flyspell-mark-duplications-exceptions.
Chong Yidong [Sun, 3 Apr 2011 20:59:45 +0000 (16:59 -0400)]
Improvements to flyspell-mark-duplications-exceptions.

* lisp/textmodes/flyspell.el (flyspell-word): Recognize default
dictionary case for flyspell-mark-duplications-exceptions.  Use
regexp matching for languages.
(flyspell-mark-duplications-exceptions): Add "that" and "had" for
default dictionary (Bug#7926).

13 years ago* nsterm.m (ns_update_auto_hide_menu_bar): Define MAC_OS_X_VERSION_10_6
Jan Djärv [Sun, 3 Apr 2011 08:30:57 +0000 (10:30 +0200)]
* nsterm.m (ns_update_auto_hide_menu_bar): Define MAC_OS_X_VERSION_10_6
if not defined.

Fixes: debbugs:8403

13 years agoFix missing NEWS subentry (Bug#8400).
Chong Yidong [Sun, 3 Apr 2011 00:40:35 +0000 (20:40 -0400)]
Fix missing NEWS subentry (Bug#8400).

13 years agosrc/xdisp.c: Remove some unused parameters.
Juanma Barranquero [Sat, 2 Apr 2011 23:53:55 +0000 (01:53 +0200)]
src/xdisp.c: Remove some unused parameters.

* xdisp.c (display_count_lines): Remove parameter `start',
  unused since 1998-01-01T02:27:27Z!rms@gnu.org.  All callers changed.
  (get_char_face_and_encoding): Remove parameter `multibyte_p',
  unused since 2008-05-14T01:40:23Z!handa@m17n.org.  All callers changed.
  (fill_stretch_glyph_string): Remove parameters `row' and `area',
  unused at least since Kim's GUI unification at 2003-03-16T20:45:46Z!storm@cua.dk
  and thereabouts.  All callers changed.
  (get_per_char_metric): Remove parameter `f', unused since
  2008-05-14T01:40:23Z!handa@m17n.org.  All callers changed.

13 years agoMerge open-protocol-stream into open-network-stream.
Chong Yidong [Sat, 2 Apr 2011 23:41:03 +0000 (19:41 -0400)]
Merge open-protocol-stream into open-network-stream.

* lisp/subr.el (open-network-stream): Move to net/network-stream.el.

* lisp/gnus/proto-stream.el: Move to net/network-stream.el.

* lisp/net/network-stream.el: Move from gnus/proto-stream.el.
Change prefix to network-stream throughout.
(open-protocol-stream): Merge into open-network-stream, leaving
open-protocol-stream as an alias.  Handle nil BUFFER args.

* lisp/gnus/nnimap.el (nnimap-open-connection-1): Pass explicit :end-of-command
parameter to open-protocol-stream.

* lisp/emacs-lisp/package.el (package--with-work-buffer): Recognize
https URLs.

* lisp/url/url-gw.el (url-open-stream): Use new open-network-stream
functionality to perform encryption.

13 years agofind-dired improvements for bug#4403.
Glenn Morris [Sat, 2 Apr 2011 20:36:47 +0000 (13:36 -0700)]
find-dired improvements for bug#4403.

* lisp/find-dired.el (find-exec-terminator): New option.
(find-ls-option): Test for -ls support.
(find-ls-subdir-switches): Test for -b in find-ls-option.
(find-dired, find-grep-dired): Doc fixes.
(find-dired): Use find-exec-terminator.

13 years agoRemove some unnecessary purecopy's from find-dired.
Glenn Morris [Sat, 2 Apr 2011 19:01:52 +0000 (12:01 -0700)]
Remove some unnecessary purecopy's from find-dired.

* lisp/find-dired.el (find-ls-option, find-ls-subdir-switches)
(find-grep-options, find-name-arg): Remove purecopy.

13 years agoRemove some autoload cookies on defcustoms in find-dired.
Glenn Morris [Sat, 2 Apr 2011 18:56:29 +0000 (11:56 -0700)]
Remove some autoload cookies on defcustoms in find-dired.

* lisp/find-dired.el (find-ls-option, find-ls-subdir-switches)
(find-grep-options): Do not autoload these defcustoms.

13 years agoChangeLog fix.
Glenn Morris [Sat, 2 Apr 2011 18:53:37 +0000 (11:53 -0700)]
ChangeLog fix.

13 years agoUse find -exec with '+' for grep-find if supported.
Glenn Morris [Sat, 2 Apr 2011 18:52:08 +0000 (11:52 -0700)]
Use find -exec with '+' for grep-find if supported.

* lisp/progmodes/grep.el (grep-find-use-xargs): Doc fix.
(grep-compute-defaults): Check for `-exec COMMAND +' support.
Set grep-find-use-xargs, grep-find-command, and grep-find-template
accordingly.  Don't add the null-device if not needed.

13 years ago* lisp/files.el (save-some-buffers): Doc fix.
Glenn Morris [Sat, 2 Apr 2011 18:12:21 +0000 (11:12 -0700)]
* lisp/files.el (save-some-buffers): Doc fix.

13 years agodo not dereference NULL upon failed strdup
Jim Meyering [Sat, 2 Apr 2011 13:52:34 +0000 (15:52 +0200)]
do not dereference NULL upon failed strdup

* nsfont.m (ns_descriptor_to_entity): Use xstrdup, not strdup.
(ns_get_family): Likewise.

13 years agosrc/eval.c (unwind_to_catch) [DEBUG_GCPRO]: Remove redundant assignment.
Juanma Barranquero [Sat, 2 Apr 2011 13:11:16 +0000 (15:11 +0200)]
src/eval.c (unwind_to_catch) [DEBUG_GCPRO]: Remove redundant assignment.

13 years agoA better default for $(EMACS) in lisp/makefile.w32-in.
Eli Zaretskii [Sat, 2 Apr 2011 08:55:47 +0000 (11:55 +0300)]
A better default for $(EMACS) in lisp/makefile.w32-in.

 lisp/makefile.w32-in (EMACS): Default to ../src/$(BLD)/emacs.exe.

13 years ago* nsterm.m (ns_update_auto_hide_menu_bar): Only for OSX 10.6 or later.
Jan Djärv [Sat, 2 Apr 2011 07:11:00 +0000 (09:11 +0200)]
* nsterm.m (ns_update_auto_hide_menu_bar): Only for OSX 10.6 or later.

Fixes: debbugs:8403

13 years agolisp/url/url-cookie.el: Use `dolist' rather than `mapcar'.
Juanma Barranquero [Fri, 1 Apr 2011 23:24:21 +0000 (01:24 +0200)]
lisp/url/url-cookie.el: Use `dolist' rather than `mapcar'.

13 years agolisp/progmodes/idlwave.el: Use `dolist' rather than `mapcar'.
Juanma Barranquero [Fri, 1 Apr 2011 22:33:37 +0000 (00:33 +0200)]
lisp/progmodes/idlwave.el: Use `dolist' rather than `mapcar'.

13 years agoMerge from lexical-binding branch.
Stefan Monnier [Fri, 1 Apr 2011 17:19:52 +0000 (13:19 -0400)]
Merge from lexical-binding branch.
* doc/lispref/eval.texi (Eval): Discourage the use of `eval'.
Document its new `lexical' argument.

* doc/lispref/variables.texi (Defining Variables): Mention the new meaning of `defvar'.
(Lexical Binding): New sub-section.

* lisp/Makefile.in (BIG_STACK_DEPTH, BIG_STACK_OPTS, BYTE_COMPILE_FLAGS):
New variables.
(compile-onefile, .el.elc, compile-calc, recompile): Use them.
(COMPILE_FIRST): Add macroexp and cconv.
* lisp/makefile.w32-in: Mirror changes in Makefile.in.

* lisp/vc/cvs-status.el:
* lisp/vc/diff-mode.el:
* lisp/vc/log-edit.el:
* lisp/vc/log-view.el:
* lisp/vc/smerge-mode.el:
* lisp/textmodes/bibtex-style.el:
* textmodes/css.el:
* lisp/startup.el:
* lisp/uniquify.el:
* lisp/minibuffer.el:
* lisp/newcomment.el:
* lisp/reveal.el:
* lisp/server.el:
* lisp/mpc.el:
* lisp/emacs-lisp/smie.el:
* lisp/doc-view.el:
* lisp/dired.el:
* lisp/abbrev.el: Use lexical binding.

* lisp/custom.el (custom-initialize-default, custom-declare-variable):
Use `defvar'.

* lisp/files.el (lexical-binding): Declare safe.

* lisp/help-fns.el (help-split-fundoc): Return nil if there's nothing else
than the arglist.
(help-add-fundoc-usage): Don't add `Not documented'.
(help-function-arglist): Handle closures, subroutines, and new
byte-code-functions.
(help-make-usage): Remove leading underscores.
(describe-function-1): Handle closures.
(describe-variable): Use special-variable-p for completion.

* lisp/simple.el (with-wrapper-hook, apply-partially): Move to subr.el.

* lisp/subr.el (apply-partially): Use new closures rather than CL.
(--dolist-tail--, --dotimes-limit--): Don't declare dynamic.
(dolist, dotimes): Use slightly different expansion for lexical code.
(functionp): Move to C.
(letrec): New macro.
(with-wrapper-hook): Use it and apply-partially instead of CL.
(eval-after-load): Preserve lexical-binding.
(save-window-excursion, with-output-to-temp-buffer): Turn them
into macros.

* lisp/emacs-lisp/advice.el (ad-arglist): Use help-function-arglist.

* lisp/emacs-lisp/autoload.el (make-autoload): Don't burp on trivial macros.

* lisp/emacs-lisp/byte-opt.el: Use lexical binding.
(byte-inline-lapcode): Remove (to bytecomp).
(byte-compile-inline-expand): Pay attention to inlining to/from
lexically bound code.
(byte-compile-unfold-lambda): Don't handle byte-code-functions
any more.
(byte-optimize-form-code-walker): Don't handle save-window-excursion
any more and don't call compiler-macros.
(byte-compile-splice-in-already-compiled-code): Remove.
(byte-code): Don't inline any more.
(disassemble-offset): Receive `bytes' as argument rather than via
dynamic scoping.
(byte-compile-tag-number): Declare before first use.
(byte-decompile-bytecode-1): Handle new byte-codes, don't change
`return' even if make-spliceable.
(byte-compile-side-effect-and-error-free-ops): Add stack-ref, remove
obsolete interactive-p.
(byte-optimize-lapcode): Optimize new lap-codes.
Don't trip up on new form of `byte-constant' lap code.

* lisp/emacs-lisp/byte-run.el (make-obsolete): Don't set the `byte-compile'
handler any more.

* lisp/emacs-lisp/bytecomp.el: Use lexical binding instead of
a "bytecomp-" prefix.  Macroexpand everything as a separate phase.
(byte-compile-initial-macro-environment):
Handle declare-function here.
(byte-compile--lexical-environment): New var.
(byte-stack-ref, byte-stack-set, byte-discardN)
(byte-discardN-preserve-tos): New lap codes.
(byte-interactive-p): Don't use any more.
(byte-compile-push-bytecodes, byte-compile-push-bytecode-const2):
New macros.
(byte-compile-lapcode): Use them and handle new lap codes.
(byte-compile-obsolete): Remove.
(byte-compile-arglist-signature): Handle new byte-code arg"lists".
(byte-compile-arglist-warn): Check late def of inlinable funs.
(byte-compile-cl-warn): Don't silence warnings for compiler-macros
since they should have been expanded by now.
(byte-compile--outbuffer): Rename from bytecomp-outbuffer.
(byte-compile-from-buffer): Remove unused second arg.
(byte-compile-preprocess): New function.
(byte-compile-toplevel-file-form): New function to distinguish
file-form calls from outside from file-form calls from hunk-handlers.
(byte-compile-file-form): Simplify.
(byte-compile-file-form-defsubst): Remove.
(byte-compile-file-form-defmumble): Simplify now that
byte-compile-lambda always returns a byte-code-function.
(byte-compile): Preprocess.
(byte-compile-byte-code-maker, byte-compile-byte-code-unmake):
Remove, not used any more.
(byte-compile-arglist-vars, byte-compile-make-lambda-lexenv)
(byte-compile-make-args-desc): New funs.
(byte-compile-lambda): Handle lexical functions.  Always return
a byte-code-function.
(byte-compile-reserved-constants): New var, to make up room for
closed-over variables.
(byte-compile-constants-vector): Obey it.
(byte-compile-top-level): New args `lexenv' and `reserved-csts'.
(byte-compile-macroexpand-declare-function): New function.
(byte-compile-form): Call byte-compile-unfold-bcf to inline immediate
byte-code-functions.
(byte-compile-form): Check obsolescence here.
(byte-compile-inline-lapcode, byte-compile-unfold-bcf): New functions.
(byte-compile-variable-ref): Remove.
(byte-compile-dynamic-variable-op): New fun.
(byte-compile-dynamic-variable-bind, byte-compile-variable-ref)
(byte-compile-variable-set): New funs.
(byte-compile-discard): Add 2 args.
(byte-compile-stack-ref, byte-compile-stack-set)
(byte-compile-make-closure, byte-compile-get-closed-var): New funs.
(byte-compile-funarg, byte-compile-funarg-2): Remove, handled in
macroexpand-all instead.
(byte-compile-quote-form): Remove.
(byte-compile-push-binding-init, byte-compile-not-lexical-var-p)
(byte-compile-bind, byte-compile-unbind): New funs.
(byte-compile-let): Handle let* and lexical binding.
(byte-compile-let*): Remove.
(byte-compile-catch, byte-compile-unwind-protect)
(byte-compile-track-mouse, byte-compile-condition-case):
Handle a new :fun-body form, used for lexical scoping.
(byte-compile-save-window-excursion)
(byte-compile-with-output-to-temp-buffer): Remove.
(byte-compile-defun): Simplify.
(byte-compile-stack-adjustment): New fun.
(byte-compile-out): Use it.
(byte-compile-refresh-preloaded): Don't reload byte-compiler files.

* lisp/emacs-lisp/cconv.el: New file.

* lisp/emacs-lisp/cl-extra.el (cl-macroexpand-all): Properly quote CL
closures.

* lisp/emacs-lisp/cl-macs.el (cl-byte-compile-block)
(cl-byte-compile-throw): Remove.
(cl-block-wrapper, cl-block-throw): Use compiler-macros instead.

* lisp/emacs-lisp/cl.el (pushnew): Silence warning.

* lisp/emacs-lisp/disass.el (disassemble-internal): Handle new
`closure' objects.
(disassemble-1): Handle new byte codes.

* lisp/emacs-lisp/edebug.el (edebug-eval-defun)
(edebug-eval-top-level-form): Use eval-sexp-add-defvars.
(edebug-toggle): Avoid `eval'.

* lisp/emacs-lisp/eieio-comp.el: Remove.

* lisp/emacs-lisp/eieio.el (byte-compile-file-form-defmethod):
Don't autoload.
(eieio-defgeneric-form-primary-only-one): Use `byte-compile' rather
than the internal `byte-compile-lambda'.
(defmethod): Don't hide code under quotes.
(eieio-defmethod): New `code' argument.

* lisp/emacs-lisp/float-sup.el (pi): Don't declare as dynamically bound.

* lisp/emacs-lisp/lisp-mode.el (eval-last-sexp-1):
Use eval-sexp-add-defvars.
(eval-sexp-add-defvars): New fun.

* lisp/emacs-lisp/macroexp.el: Use lexical binding.
(macroexpand-all-1): Check obsolete macros.  Expand compiler-macros.
Don't convert ' to #' without checking that it's indeed quoting
a lambda.

* lisp/emacs-lisp/pcase.el: Don't use destructuring-bind.
(pcase--memoize): Rename from pcase-memoize.  Change weakness.
(pcase): Add `let' pattern.
Change memoization so it actually works.
(pcase-mutually-exclusive-predicates): Add byte-code-function-p.
(pcase--u1) <guard, pred>: Fix possible shadowing problem.
<let>: New case.

* src/alloc.c (Fmake_symbol): Init new `declared_special' field.

* src/buffer.c (defvar_per_buffer): Set new `declared_special' field.

* src/bytecode.c (Bstack_ref, Bstack_set, Bstack_set2, BdiscardN):
New byte-codes.
(exec_byte_code): New function extracted from Fbyte_code to handle new
calling convention for byte-code-functions.  Add new byte-codes.

* src/callint.c (Fcall_interactively): Preserve lexical-binding mode for
interactive spec.

* src/doc.c (Fdocumentation, store_function_docstring):
* src/data.c (Finteractive_form): Handle closures.

* src/eval.c (Fsetq): Handle lexical vars.
(Fdefun, Fdefmacro, Ffunction): Make closures when needed.
(Fdefconst, Fdefvaralias, Fdefvar): Mark as dynamic.
(FletX, Flet): Obey lexical binding.
(Fcommandp): Handle closures.
(Feval): New `lexical' arg.
(eval_sub): New function extracted from Feval.  Use it almost
everywhere where Feval was used.  Look up vars in lexical env.
Handle closures.
(Ffunctionp): Move from subr.el.
(Ffuncall): Handle closures.
(apply_lambda): Remove `eval_flags'.
(funcall_lambda): Handle closures and new byte-code-functions.
(Fspecial_variable_p): New function.
(syms_of_eval): Initialize the Vinternal_interpreter_environment var,
but without exporting it to Lisp.

* src/fns.c (concat, mapcar1): Accept byte-code-functions.

* src/image.c (parse_image_spec): Use Ffunctionp.

* src/keyboard.c (eval_dyn): New fun.
(menu_item_eval_property): Use it.

* src/lisp.h (struct Lisp_Symbol): New field `declared_special'.

* src/lread.c (lisp_file_lexically_bound_p): New function.
(Fload): Bind Qlexical_binding.
(readevalloop): Remove `evalfun' arg.
Bind Qinternal_interpreter_environment.
(Feval_buffer): Bind Qlexical_binding.
(defvar_int, defvar_bool, defvar_lisp_nopro, defvar_kboard):
Mark as dynamic.
(syms_of_lread): Declare `lexical-binding'.

* src/window.c (Ftemp_output_buffer_show): New fun.
(Fsave_window_excursion):
* src/print.c (Fwith_output_to_temp_buffer): Move to subr.el.

13 years agoMiscellanous cleanups in preparation for the merge.
Stefan Monnier [Fri, 1 Apr 2011 15:16:50 +0000 (11:16 -0400)]
Miscellanous cleanups in preparation for the merge.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker):
Remove debug statement.
* lisp/emacs-lisp/bytecomp.el (byte-compile-single-version)
(byte-compile-version-cond, byte-compile-delay-out)
(byte-compile-delayed-out): Remove, unused.
* src/bytecode.c (Fbyte_code): Revert to old calling convention.
* src/lisp.h (COMPILED_PUSH_ARGS): Remove, unused.

13 years agomm-view.el (mm-display-inline-fontify): Do not fontify with fundamental-mode.
Julien Danjou [Fri, 1 Apr 2011 14:24:22 +0000 (14:24 +0000)]
mm-view.el (mm-display-inline-fontify): Do not fontify with fundamental-mode.

13 years agoAdd a new command `info-display-manual'.
Eli Zaretskii [Fri, 1 Apr 2011 10:10:47 +0000 (13:10 +0300)]
Add a new command `info-display-manual'.

 lisp/info.el (info-display-manual): New function.

13 years agolib/stdio.in.h, m4/gnulib-common.m4: Regenerate from latest gnulib.
Paul Eggert [Fri, 1 Apr 2011 06:07:33 +0000 (23:07 -0700)]
lib/stdio.in.h, m4/gnulib-common.m4: Regenerate from latest gnulib.

13 years agosrc/xdisp.c (redisplay_internal): Fix prototype.
Juanma Barranquero [Thu, 31 Mar 2011 19:42:38 +0000 (21:42 +0200)]
src/xdisp.c (redisplay_internal): Fix prototype.

13 years agoetc/NEWS: Reflect new behavior due to 2011-03-31T19:12:30Z!eliz@gnu.org.
Eli Zaretskii [Thu, 31 Mar 2011 19:28:26 +0000 (21:28 +0200)]
etc/NEWS: Reflect new behavior due to 2011-03-31T19:12:30Z!eliz@gnu.org.

13 years agoFix bug #6671 with recentering and other scrolling problems.
Eli Zaretskii [Thu, 31 Mar 2011 19:12:30 +0000 (21:12 +0200)]
Fix bug #6671 with recentering and other scrolling problems.

 src/xdisp.c (SCROLL_LIMIT): New macro.
 (try_scrolling): Use it when setting scroll_limit.  Limit
 scrolling to 100 screen lines.
 (redisplay_window): Even when falling back on "recentering",
 position point in the window according to scroll-conservatively,
 scroll-margin, and scroll-*-aggressively variables.
 (try_scrolling): When point is above the window, allow searching
 as far as scroll_max, or one screenful, to compute vertical
 distance from PT to the scroll margin position.  This prevents
 try_scrolling from unnecessarily failing when
 scroll-conservatively is set to a value slightly larger than the
 window height.  Clean up the case of PT below the margin at bottom
 of window: scroll_max can no longer be INT_MAX.  When aggressive
 scrolling is in use, don't let point enter the opposite scroll
 margin as result of the scroll.
 (syms_of_xdisp) <scroll-conservatively>: Document the
 threshold of 100 lines for never-recentering scrolling.

 doc/emacs/display.texi (Auto Scrolling): Document the limit of 100 lines
 for never-recentering scrolling with `scroll-conservatively'.

13 years ago* lisp/loadup.el: Load minibuffer after loaddefs, to use define-minor-mode.
Stefan Monnier [Thu, 31 Mar 2011 15:17:06 +0000 (11:17 -0400)]
* lisp/loadup.el: Load minibuffer after loaddefs, to use define-minor-mode.

13 years agognus-sum.el (gnus-update-marks): Revert intersection change, which made marks not...
Lars Magne Ingebrigtsen [Thu, 31 Mar 2011 13:31:56 +0000 (13:31 +0000)]
gnus-sum.el (gnus-update-marks): Revert intersection change, which made marks not propagate, again.

13 years ago* net/rcirc.el (rcirc-handler-001): Only authenticate, if there's
Tassilo Horn [Thu, 31 Mar 2011 12:19:17 +0000 (14:19 +0200)]
* net/rcirc.el (rcirc-handler-001): Only authenticate, if there's
an entry for that server in rcirc-authinfo. (Bug#8385)

13 years ago* lisp/progmodes/f90.el (f90-find-tag-default): Handle multiple `%'.
Glenn Morris [Thu, 31 Mar 2011 07:20:38 +0000 (00:20 -0700)]
* lisp/progmodes/f90.el (f90-find-tag-default): Handle multiple `%'.

13 years agoMerge from trunk
Stefan Monnier [Thu, 31 Mar 2011 04:24:03 +0000 (00:24 -0400)]
Merge from trunk

13 years ago* lisp/generic-x.el (etc-fstab-generic-mode): Add ext4, sysfs keywords.
Glenn Morris [Thu, 31 Mar 2011 02:11:34 +0000 (19:11 -0700)]
* lisp/generic-x.el (etc-fstab-generic-mode): Add ext4, sysfs keywords.

13 years agosrc/xdisp.c: Remove unused parameters.
Juanma Barranquero [Thu, 31 Mar 2011 01:37:51 +0000 (03:37 +0200)]
src/xdisp.c: Remove unused parameters.

* dispextern.h (move_it_by_lines):
* xdisp.c (move_it_by_lines): Remove parameter `need_y_p', unused
  since 2000-12-29T14:24:09Z!gerd@gnu.org.  All callers changed.
  (message_log_check_duplicate): Remove parameters `prev_bol' and
  `this_bol', unused since 1998-01-01T02:27:27Z!rms@gnu.org.  All callers changed.
  (redisplay_internal): Remove parameter `preserve_echo_area',
  unused since 1999-07-21T21:43:52Z!gerd@gnu.org.  All callers changed.
* indent.c (Fvertical_motion):
* window.c (window_scroll_pixel_based, Frecenter):
  Don't pass `need_y_p' to `move_it_by_lines'.

13 years ago* progmodes/python.el (python-default-interpreter)
Christoph Scholtes [Wed, 30 Mar 2011 22:44:07 +0000 (16:44 -0600)]
* progmodes/python.el (python-default-interpreter)
(python-python-command-args, python-jython-command-args)
(python-which-shell, python-which-args, python-which-bufname)
(python-file-queue, python-comint-output-filter-function)
(python-toggle-shells, python-shell): Remove obsolete defcustoms,
variables and functions.

13 years ago(completion-in-region): Pop down *Completions* automatically.
Stefan Monnier [Wed, 30 Mar 2011 22:25:57 +0000 (18:25 -0400)]
(completion-in-region): Pop down *Completions* automatically.
* lisp/minibuffer.el (completion-table-dynamic): Optimize `boundaries'.
(completion-in-region-mode): New minor mode.
(completion-in-region): Use it.
(completion-in-region--data, completion-in-region-mode-map): New vars.
(completion-in-region--postch): New function.
(completion--capf-misbehave-funs, completion--capf-safe-funs): New vars.
(completion--capf-wrapper): New function.
(completion-at-point): Use it to track well-behavedness of hook functions.
(completion-help-at-point): New command.

13 years ago* lisp/vc/add-log.el (add-change-log-entry): Don't use whitespace
Jason Merrill [Wed, 30 Mar 2011 21:56:04 +0000 (17:56 -0400)]
* lisp/vc/add-log.el (add-change-log-entry): Don't use whitespace
syntax class to search for whitespace on a single line
(Message-ID: <4D938140.4030905@redhat.com>).

13 years agoDocumentation parts of the scroll fix.
Eli Zaretskii [Wed, 30 Mar 2011 20:59:42 +0000 (22:59 +0200)]
Documentation parts of the scroll fix.

 src/xdisp.c (syms_of_xdisp) <scroll-conservatively>: Document the
 threshold of 100 lines for never-recentering scrolling.
 doc/emacs/display.texi (Auto Scrolling): Document the limit of 100
 lines for never-recentering scrolling with `scroll-conservatively'.

13 years ago* src/eval.c (struct backtrace): Don't cheat with negative numbers, but do
Stefan Monnier [Wed, 30 Mar 2011 19:18:12 +0000 (15:18 -0400)]
* src/eval.c (struct backtrace): Don't cheat with negative numbers, but do
steal a few bits to be more compact.
(interactive_p, Fbacktrace, Fbacktrace_frame, mark_backtrace):
Remove unneeded casts.

13 years ago* lisp/subr.el (apply-partially): Use a non-nil static environment.
Stefan Monnier [Wed, 30 Mar 2011 18:40:00 +0000 (14:40 -0400)]
* lisp/subr.el (apply-partially): Use a non-nil static environment.
(--dolist-tail--, --dotimes-limit--): Don't declare dynamically bound.
(dolist): Use a more efficient form for lexical-binding.
(dotimes): Use a cleaner semantics for lexical-binding.
* lisp/emacs-lisp/edebug.el (edebug-eval-top-level-form):
Use eval-sexp-add-defvars.

13 years ago* src/bytecode.c (Fbyte_code): CAR and CDR can GC.
Stefan Monnier [Wed, 30 Mar 2011 18:04:11 +0000 (14:04 -0400)]
* src/bytecode.c (Fbyte_code): CAR and CDR can GC.

13 years agoMerge Gnus' changes.
Gnus developers [Wed, 30 Mar 2011 14:59:42 +0000 (14:59 +0000)]
Merge Gnus' changes.

gnus.texi (Listing Groups): Document gnus-group-list-ticked.
gssapi.el (open-gssapi-stream): Remove the last mentions of the IMAP stuff.
gnus-score.el (gnus-score-string): Fix calling convention of `gnus-simplify-buffer-fuzzy' after last patches.
gnus-sum.el (gnus-update-marks): Don't send any marks updates to the server for articles we didn't get any headers for.  This is a sanity check.
nnimap.el (nnimap-open-connection-1): Is the login responds with a new CAPABILITY, use it.
gnus-agent.el (gnus-agent-fetch-headers): Don't message if we're not downloading anything.
gnus.el (gnus-splash-svg-color-symbols): Removed superfluous `and'.
gnus.el (gnus-group-startup-message): Prefer svg file and replace colors.
 (gnus-splash-svg-color-symbols): New function.
gnus-sum.el (gnus-simplify-buffer-fuzzy): Take the regexp explicitly instead of using the global gnus-simplify-subject-fuzzy-regexp.
 (gnus-simplify-subject-fuzzy): Use the local gnus-simplify-subject-fuzzy-regex instead of the global one.  This makes using this variable in group parameters work.
gnus-registry.el (gnus-registry-unfollowed-groups): Add "archive:sent" to the unfollowed group regex (for the recent Gnus archive:sent-YYYY-MM-DD groups).
 (gnus-registry-split-fancy-with-parent): Bail out early in sender tracking if there are more than `gnus-registry-max-track-groups' matches.
message.el (message--yank-original-internal): New function to do the insertion cleanly inside eval in `message-yank-original'.
 (message-yank-original): Use it.

13 years agolisp/makefile.w32-in (COMPILE_FIRST): Remove pcase.
Juanma Barranquero [Wed, 30 Mar 2011 14:01:28 +0000 (16:01 +0200)]
lisp/makefile.w32-in (COMPILE_FIRST): Remove pcase.

13 years ago* src/keyboard.c (Fexecute_extended_command): Do log the "suggest key
Zachary Kanfer [Wed, 30 Mar 2011 13:35:37 +0000 (09:35 -0400)]
* src/keyboard.c (Fexecute_extended_command): Do log the "suggest key
binding" message.

Fixes: debbugs:7967

13 years ago* lisp/subr.el (with-output-to-temp-buffer): Don't change current-buffer to
Stefan Monnier [Wed, 30 Mar 2011 03:27:56 +0000 (23:27 -0400)]
* lisp/subr.el (with-output-to-temp-buffer): Don't change current-buffer to
standard-output while running the body.
* lisp/Makefile.in (COMPILE_FIRST): Remove pcase; it's not so important.
* lisp/startup.el: Fix up warnings, move lambda expressions
outside of quote.

13 years agoChange default type of open-protocol-stream.
Chong Yidong [Wed, 30 Mar 2011 02:21:28 +0000 (22:21 -0400)]
Change default type of open-protocol-stream.

* nnimap.el (nnimap-stream, nnimap-open-connection-1): Accept `network'
value.

* nntp.el (nntp-open-connection-function): Document the fact that some
values are not functions but are instead handled specially.  Recognize
nntp-open-plain-stream value.
(nntp-open-connection): Recognize that value.

* proto-stream.el (open-protocol-stream): Bring back `network' type.
Make this the default type.
(proto-stream-open-plain): Rename from proto-stream-open-default.
(open-protocol-stream, proto-stream-open-starttls)
(proto-stream-open-tls, proto-stream-open-shell): Replace `default'
with `plain'.

13 years agoImprove key bindings in edit-abbrevs-mode
Leo Liu [Wed, 30 Mar 2011 01:06:00 +0000 (09:06 +0800)]
Improve key bindings in edit-abbrevs-mode

C-x C-s and C-x C-w in edit-abbrevs-mode now do something similar to
their corresponding global bindings.

13 years agoFix more problems found by GCC 4.6.0's static checks.
Paul Eggert [Wed, 30 Mar 2011 00:39:12 +0000 (17:39 -0700)]
Fix more problems found by GCC 4.6.0's static checks.

13 years ago* unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:
Paul Eggert [Wed, 30 Mar 2011 00:19:27 +0000 (17:19 -0700)]
* unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:

Remove unused local var.

13 years ago* editfns.c (Fmessage_box): Remove unused local var.
Paul Eggert [Wed, 30 Mar 2011 00:17:26 +0000 (17:17 -0700)]
* editfns.c (Fmessage_box): Remove unused local var.

13 years agoMerge from mainline.
Paul Eggert [Tue, 29 Mar 2011 23:35:49 +0000 (16:35 -0700)]
Merge from mainline.

13 years agoFix off-by-one in scroll down aggressively.
Eli Zaretskii [Tue, 29 Mar 2011 19:58:13 +0000 (21:58 +0200)]
Fix off-by-one in scroll down aggressively.

 src/xdisp.c (try_scrolling): When scrolling down aggressively,
 scroll one screen line less, to make sure we end up at the margin
 for fractions close to 1.

13 years ago* allout.el (allout-hide-by-annotation, allout-flag-region): Reduce
Ken Manheimer [Tue, 29 Mar 2011 18:26:01 +0000 (14:26 -0400)]
* allout.el (allout-hide-by-annotation, allout-flag-region): Reduce
possibility of overlay leakage by making them volatile.

* allout-widgets.el (allout-widgets-tally): Define as nil so the hash is
not shared between buffers.  Mode initialization is responsible for giving
it a useful starting value.
(allout-item-span): Reduce possibility of overlay leakage by making them
volatile.
(allout-widgets-count-buttons-in-region): Add diagnostic function for
tracking down overlay leaks.

13 years agosrc/scroll.c, src/w32.c: Trivial whitespace changes.
Juanma Barranquero [Tue, 29 Mar 2011 14:00:16 +0000 (16:00 +0200)]
src/scroll.c, src/w32.c: Trivial whitespace changes.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Tue, 29 Mar 2011 13:23:38 +0000 (13:23 +0000)]
Merge changes made in Gnus trunk.

mm-view.el (mm-display-inline-fontify): Use `set-normal-mode' with local variables disabled rather than `normal-mode'.
imap.el (imap-shell-open, imap-process-connection-type): Use imap-process-connection-type for 'shell' streams as well as Kerberos, SSL, other subprocesses.

13 years agoAdd to minibuffer-history if HISOTRY is nil in ido.el
Leo Liu [Tue, 29 Mar 2011 08:25:31 +0000 (16:25 +0800)]
Add to minibuffer-history if HISOTRY is nil in ido.el

It is broken by the change on 2011-03-21.

13 years ago* xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs):
Paul Eggert [Tue, 29 Mar 2011 07:01:11 +0000 (00:01 -0700)]
* xdisp.c (try_window_reusing_current_matrix, x_produce_glyphs):

(note_mode_line_or_margin_highlight, note_mouse_highlight):
Omit unused local vars.

13 years ago* window.c (shrink_windows): Omit unused local var.
Paul Eggert [Tue, 29 Mar 2011 06:59:27 +0000 (23:59 -0700)]
* window.c (shrink_windows): Omit unused local var.

13 years ago* menu.c (digest_single_submenu): Omit unused local var.
Paul Eggert [Tue, 29 Mar 2011 06:58:36 +0000 (23:58 -0700)]
* menu.c (digest_single_submenu): Omit unused local var.

13 years ago* dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:
Paul Eggert [Tue, 29 Mar 2011 06:57:40 +0000 (23:57 -0700)]
* dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:

Omit unused local var.

13 years ago* etags.c (just_read_file): Remove dummy variable and simplify.
Paul Eggert [Tue, 29 Mar 2011 06:54:38 +0000 (23:54 -0700)]
* etags.c (just_read_file): Remove dummy variable and simplify.

13 years ago* INSTALL.BZR: Tiny re-wording.
Glenn Morris [Tue, 29 Mar 2011 03:33:22 +0000 (20:33 -0700)]
* INSTALL.BZR: Tiny re-wording.

13 years agosrc/*.c: Remove some additional unused parameters.
Juanma Barranquero [Mon, 28 Mar 2011 22:41:01 +0000 (00:41 +0200)]
src/*.c: Remove some additional unused parameters.

* lisp.h (multibyte_char_to_unibyte):
* character.c (multibyte_char_to_unibyte): Remove parameter `rev_tbl',
  unused since 2002-03-01T01:16:34Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
* character.h (CHAR_TO_BYTE8):
* cmds.c (internal_self_insert):
* editfns.c (general_insert_function):
* keymap.c (push_key_description):
* search.c (Freplace_match):
* xdisp.c (message_dolog, set_message_1): All callers changed.

* coding.c (encode_designation_at_bol): Remove parameter `charbuf_end',
  unused since 2002-03-01T01:17:24Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
  All callers changed.

13 years agoDon't reset post-command-hook to nil upon error.
Stefan Monnier [Mon, 28 Mar 2011 20:26:35 +0000 (16:26 -0400)]
Don't reset post-command-hook to nil upon error.
* src/eval.c (enum run_hooks_condition): Remove.
(funcall_nil, funcall_not): New functions.
(run_hook_with_args): Call each function through a `funcall' argument.
Remove `cond' argument, now redundant.
(Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success)
(Frun_hook_with_args_until_failure): Adjust accordingly.
(run_hook_wrapped_funcall, Frun_hook_wrapped): New functions.
* src/keyboard.c (safe_run_hook_funcall): New function.
(safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error,
don't set the hook to nil, but remove the offending function instead.
(Qcommand_hook_internal): Remove, unused.
(syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define
Vcommand_hook_internal.
* doc/lispref/commands.texi (Command Overview): post-command-hook is not reset
to nil any more.

13 years agoFix failures in try_scrolling when scrolling back.
Eli Zaretskii [Mon, 28 Mar 2011 19:30:35 +0000 (21:30 +0200)]
Fix failures in try_scrolling when scrolling back.

 src/xdisp.c (try_scrolling): When point is above the window, allow
 searching as far as scroll_max, or one screenful, to compute
 vertical distance from PT to the scroll margin position.  This
 prevents try_scrolling from unnecessarily failing when
 scroll-conservatively is set to a value slightly larger than the
 window height.

13 years agoPlace empty abbrev tables after nonempty ones when editing
Leo Liu [Mon, 28 Mar 2011 14:34:32 +0000 (22:34 +0800)]
Place empty abbrev tables after nonempty ones when editing

13 years agosrc/*.c: Remove unused parameters and other warnings.
Juanma Barranquero [Mon, 28 Mar 2011 03:29:18 +0000 (05:29 +0200)]
src/*.c: Remove unused parameters and other warnings.

* dispextern.h (string_buffer_position): Remove declaration.

* print.c (strout): Remove parameter `multibyte', unused since
  1999-08-21T19:30:21Z!gerd@gnu.org.  All callers changed.

* search.c (boyer_moore): Remove parameters `len', `pos' and `lim',
  never used since function introduction in 1998-02-08T21:33:56Z!rms@gnu.org.
  All callers changed.

* w32.c (_wsa_errlist): Use braces for struct initializers.

* xdisp.c (string_buffer_position_lim): Remove parameter `w',
  never used since function introduction in 2001-03-09T18:41:50Z!gerd@gnu.org.
  All callers changed.
  (string_buffer_position): Likewise.  Also, make static (it's never
  used outside xdisp.c).
  (cursor_row_p): Remove parameter `w', unused since
  2000-10-17T16:08:57Z!gerd@gnu.org.  All callers changed.
  (decode_mode_spec): Remove parameter `precision', introduced during
  Gerd Moellmann's rewrite at 1999-07-21T21:43:52Z!gerd@gnu.org, but never used.
  All callers changed.

13 years ago* autogen/update_autogen: Pass -f to autoreconf.
Glenn Morris [Mon, 28 Mar 2011 01:03:57 +0000 (18:03 -0700)]
* autogen/update_autogen: Pass -f to autoreconf.

13 years agoMake autogen.sh respect AUTOCONF etc.
Glenn Morris [Mon, 28 Mar 2011 00:48:39 +0000 (17:48 -0700)]
Make autogen.sh respect AUTOCONF etc.

* autogen.sh (get_version): Discard "not found" lines.
(check_version): Respect $AUTOCONF etc environment variables.

13 years agoFix scrolling back with scroll-down-aggressively.
Eli Zaretskii [Sun, 27 Mar 2011 20:01:46 +0000 (22:01 +0200)]
Fix scrolling back with scroll-down-aggressively.

 src/xdisp.c (try_scrolling): Clean up the case of PT below the
 margin at bottom of window: scroll_max can no longer be INT_MAX.
 (redisplay_window): Find character position of margin and use
 that, rather than adding margin to PT.

13 years ago* keyboard.c (read_key_sequence): Don't check last_real_key_start redundantly.
Paul Eggert [Sun, 27 Mar 2011 18:33:45 +0000 (11:33 -0700)]
* keyboard.c (read_key_sequence): Don't check last_real_key_start redundantly.

13 years ago* keyboard.c (keyremap_step, read_key_sequence): Use size_t for sizes.
Paul Eggert [Sun, 27 Mar 2011 18:18:31 +0000 (11:18 -0700)]
* keyboard.c (keyremap_step, read_key_sequence): Use size_t for sizes.

13 years ago* keyboard.c (parse_modifiers_uncached, parse_modifiers):
Paul Eggert [Sun, 27 Mar 2011 17:14:11 +0000 (10:14 -0700)]
* keyboard.c (parse_modifiers_uncached, parse_modifiers):

Don't assume string length fits in int.

13 years agoFormat doc and add customize for ns-auto-hide-menu-bar.
Jan Djärv [Sun, 27 Mar 2011 10:55:07 +0000 (12:55 +0200)]
Format doc and add customize for ns-auto-hide-menu-bar.

* lisp/cus-start.el (all): Add boolean ns-auto-hide-menu-bar.

* src/nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar.

13 years agoIntroduce ns-auto-hide-menu-bar to hide menubar for Emacs frames.
Jan Djärv [Sun, 27 Mar 2011 10:36:44 +0000 (12:36 +0200)]
Introduce ns-auto-hide-menu-bar to hide menubar for Emacs frames.
Code by Anders Lindgren.

* nsterm.m (ns_menu_bar_is_hidden): New variable.
(ns_constrain_all_frames, ns_menu_bar_should_be_hidden)
(ns_update_auto_hide_menu_bar): New functions.
(ns_update_begin): Call ns_update_auto_hide_menu_bar.
(applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and
ns_constrain_all_frames.
(constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
(syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.

13 years ago* nsmenu.m (runDialogAt): Remove argument to timer_check.
Jan Djärv [Sun, 27 Mar 2011 09:23:52 +0000 (11:23 +0200)]
* nsmenu.m (runDialogAt): Remove argument to timer_check.

13 years ago* callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA
Paul Eggert [Sun, 27 Mar 2011 09:07:38 +0000 (02:07 -0700)]
* callproc.c (Fcall_process, Fcall_process_region): Use SAFE_ALLOCA

instead of alloca (Bug#8344).

13 years ago* eval.c (Fbacktrace_frame): Don't assume nframes fits in int.
Paul Eggert [Sun, 27 Mar 2011 08:31:16 +0000 (01:31 -0700)]
* eval.c (Fbacktrace_frame): Don't assume nframes fits in int.

13 years ago* eval.c (Fbacktrace): Don't assume nargs fits in int.
Paul Eggert [Sun, 27 Mar 2011 08:29:39 +0000 (01:29 -0700)]
* eval.c (Fbacktrace): Don't assume nargs fits in int.

13 years ago* syntax.c (scan_sexps_forward): Avoid pointer wraparound.
Paul Eggert [Sun, 27 Mar 2011 08:21:49 +0000 (01:21 -0700)]
* syntax.c (scan_sexps_forward): Avoid pointer wraparound.

13 years agoMerge from atest branch.
Paul Eggert [Sun, 27 Mar 2011 08:15:26 +0000 (01:15 -0700)]
Merge from atest branch.