bpt/emacs.git
10 years agolisp/dired.el (dired-insert-directory): Revert change in 2013-06-21T12:24:37Z!lekktu...
Juanma Barranquero [Tue, 6 Aug 2013 01:03:08 +0000 (03:03 +0200)]
lisp/dired.el (dired-insert-directory): Revert change in 2013-06-21T12:24:37Z!lekktu@gmail.com.

Fixes: debbugs:15028

10 years agoRevert introduction of isearch-filter-predicates.
Stefan Monnier [Mon, 5 Aug 2013 18:05:46 +0000 (14:05 -0400)]
Revert introduction of isearch-filter-predicates.
Rely on add-function instead.
* lisp/loadup.el: Preload nadvice.
* lisp/isearch.el (isearch-filter-predicates): Rename it back to
isearch-filter-predicate.
(isearch-message-prefix): Use advice-function-mapc and advice
properties to get the isearch-message-prefix.
(isearch-search, isearch-lazy-highlight-search): Revert to funcall
instead of run-hook-with-args-until-failure.
(isearch-filter-visible): Not obsolete any more.
* lisp/replace.el (perform-replace): Revert to funcall
instead of run-hook-with-args-until-failure.
* lisp/wdired.el (wdired-change-to-wdired-mode): Use add-function.
* lisp/dired-aux.el (dired-isearch-filenames-mode): Rename from
dired-isearch-filenames-toggle; make it into a proper minor mode.
Use add/remove-function.
(dired-isearch-filenames-setup, dired-isearch-filenames-end):
Call the minor-mode rather than add/remove-hook.
(dired-isearch-filter-filenames):
Remove isearch-message-prefix property.
* lisp/info.el (Info--search-loop): New function, extracted from Info-search.
Funcall isearch-filter-predicate instead of
run-hook-with-args-until-failure isearch-filter-predicates.
(Info-search): Use it.
(Info-mode): Use isearch-filter-predicate instead of
isearch-filter-predicates.
* src/lisp.mk (lisp): Add nadvice.elc.
* lib-src/makefile.w32-in (lisp2): Add nadvice.elc.

Fixes: debbugs:14714

10 years agoFix bugs in update-game-score, on MS-Windows and elsewhere.
Eli Zaretskii [Mon, 5 Aug 2013 17:09:28 +0000 (20:09 +0300)]
Fix bugs in update-game-score, on MS-Windows and elsewhere.

 lib-src/update-game-score.c (read_score): Try reading a character before
 probing the stream for EOF.  Initialize score->score to zero,
 before reading and accumulating the score.
 (read_scores): Fix logic that determines which value to return.
 Close the input stream when finished reading the scores (avoids
 failures in overwriting the file with a new one on MS-Windows,
 since a file that is open cannot be deleted).
 lib-src/ntlib.h (rename): Don't undefine.
 lib-src/ntlib.c (sys_rename): New function, needed for
 update-game-score.

10 years agoetc/tutorials/TUTORIAL.es: Fix typo (bug#15027).
Juanma Barranquero [Mon, 5 Aug 2013 16:29:09 +0000 (18:29 +0200)]
etc/tutorials/TUTORIAL.es: Fix typo (bug#15027).

10 years agoadmin/make-tarball.txt: mention platform-testers mailing list
Glenn Morris [Mon, 5 Aug 2013 16:18:57 +0000 (09:18 -0700)]
admin/make-tarball.txt: mention platform-testers mailing list

10 years agoDo not call to `selected-window' where it is assumed by default.
Dmitry Antipov [Mon, 5 Aug 2013 14:26:57 +0000 (18:26 +0400)]
Do not call to `selected-window' where it is assumed by default.
Affected functions are `window-minibuffer-p', `window-dedicated-p',
`window-hscroll', `window-width', `window-height', `window-buffer',
`window-frame', `window-start', `window-point', `next-window'
and `window-display-table'.
* abbrev.el (abbrev--default-expand):
* bs.el (bs--show-with-configuration):
* buff-menu.el (Buffer-menu-mouse-select):
* calc/calc.el (calc):
* calendar/calendar.el (calendar-generate-window):
* calendar/diary-lib.el (diary-simple-display, diary-show-all-entries)
(diary-make-entry):
* comint.el (send-invisible, comint-dynamic-complete-filename)
(comint-dynamic-simple-complete, comint-dynamic-list-completions):
* completion.el (complete):
* dabbrev.el (dabbrev-expand, dabbrev--make-friend-buffer-list):
* disp-table.el (describe-current-display-table):
* doc-view.el (doc-view-insert-image):
* ebuff-menu.el (Electric-buffer-menu-mouse-select):
* ehelp.el (with-electric-help):
* emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
* emacs-lisp/edebug.el (edebug-two-window-p, edebug-pop-to-buffer):
* emacs-lisp/helper.el (Helper-help-scroller):
* emulation/cua-base.el (cua--post-command-handler-1):
* eshell/esh-mode.el (eshell-output-filter):
* ffap.el (ffap-gnus-wrapper):
* help-macro.el (make-help-screen):
* hilit-chg.el (highlight-compare-buffers):
* hippie-exp.el (hippie-expand, try-expand-dabbrev-visible):
* hl-line.el (global-hl-line-highlight):
* icomplete.el (icomplete-simple-completing-p):
* isearch.el (isearch-done):
* jit-lock.el (jit-lock-stealth-fontify):
* mail/rmailsum.el (rmail-summary-scroll-msg-up):
* lisp/mouse-drag.el (mouse-drag-should-do-col-scrolling):
* mpc.el (mpc-tagbrowser, mpc):
* net/rcirc.el (rcirc-any-buffer):
* play/gomoku.el (gomoku-max-width, gomoku-max-height):
* play/landmark.el (landmark-max-width, landmark-max-height):
* play/zone.el (zone):
* progmodes/compile.el (compilation-goto-locus):
* progmodes/ebrowse.el (ebrowse-view/find-file-and-search-pattern):
* progmodes/etags.el (find-tag-other-window):
* progmodes/fortran.el (fortran-column-ruler):
* progmodes/gdb-mi.el (gdb-mouse-toggle-breakpoint-fringe):
* progmodes/verilog-mode.el (verilog-point-text):
* reposition.el (reposition-window):
* rot13.el (toggle-rot13-mode):
* server.el (server-switch-buffer):
* shell.el (shell-dynamic-complete-command)
(shell-dynamic-complete-environment-variable):
* simple.el (insert-buffer, set-selective-display)
(delete-completion-window):
* speedbar.el (speedbar-timer-fn, speedbar-center-buffer-smartly)
(speedbar-recenter):
* startup.el (fancy-splash-head):
* textmodes/ispell.el (ispell-command-loop):
* textmodes/makeinfo.el (makeinfo-compilation-sentinel-region):
* tutorial.el (help-with-tutorial):
* vc/add-log.el (add-change-log-entry):
* vc/compare-w.el (compare-windows):
* vc/ediff-help.el (ediff-indent-help-message):
* vc/ediff-util.el (ediff-setup-control-buffer, ediff-position-region):
* vc/ediff-wind.el (ediff-skip-unsuitable-frames)
(ediff-setup-control-frame):
* vc/emerge.el (emerge-position-region):
* vc/pcvs-util.el (cvs-bury-buffer):
* window.el (walk-windows, mouse-autoselect-window-select):
* winner.el (winner-set-conf, winner-undo): Related users changed.

10 years agognus-int.el (gnus-warp-to-article): Allow warping in all groups so that we can create...
Dave Abrahams [Mon, 5 Aug 2013 14:15:37 +0000 (14:15 +0000)]
gnus-int.el (gnus-warp-to-article): Allow warping in all groups so that we can create nndoc groups that excerpt other groups

10 years ago* doc/misc/cl.texi (Blocks and Exits): Add an index.
Xue Fuqiao [Mon, 5 Aug 2013 13:28:29 +0000 (21:28 +0800)]
* doc/misc/cl.texi (Blocks and Exits): Add an index.

10 years agolisp/frameset.el: New frame-id functions.
Juanma Barranquero [Mon, 5 Aug 2013 13:06:29 +0000 (15:06 +0200)]
lisp/frameset.el: New frame-id functions.
(frameset--set-id): Doc fix.
(frameset-frame-id, frameset-frame-id-equal-p)
(frameset-locate-frame-id): New functions.
(frameset--process-minibuffer-frames, frameset--reuse-frame)
(frameset-restore): Use them.

10 years ago* doc/lispref/windows.texi (Window Start and End): Add an index.
Xue Fuqiao [Mon, 5 Aug 2013 11:37:47 +0000 (19:37 +0800)]
* doc/lispref/windows.texi (Window Start and End): Add an index.

10 years agoDo not call to `selected-frame' where it is assumed by default.
Dmitry Antipov [Mon, 5 Aug 2013 10:35:55 +0000 (14:35 +0400)]
Do not call to `selected-frame' where it is assumed by default.
Affected functions are `raise-frame', `redraw-frame',
`frame-first-window', `frame-terminal' and `delete-frame'.
* lisp/calendar/appt.el (appt-disp-window):
* lisp/epg.el (epg-wait-for-completion):
* lisp/follow.el (follow-delete-other-windows-and-split)
(follow-avoid-tail-recenter):
* lisp/international/mule.el (set-terminal-coding-system):
* lisp/mail/rmail.el (rmail-mail-return):
* lisp/net/newst-plainview.el (newsticker--buffer-set-uptodate):
* lisp/progmodes/f90.el (f90-add-imenu-menu):
* lisp/progmodes/idlw-toolbar.el (idlwave-toolbar-toggle):
* lisp/server.el (server-switch-buffer):
* lisp/simple.el (delete-completion-window):
* lisp/talk.el (talk):
* lisp/term/xterm.el (terminal-init-xterm-modify-other-keys)
(xterm-turn-on-modify-other-keys, xterm-remove-modify-other-keys):
* lisp/vc/ediff-util.el (ediff-status-info, ediff-show-diff-output):
* lisp/vc/ediff.el (ediff-documentation): Related users changed.
* lisp/frame.el (selected-terminal): Remove the leftover.

10 years agoAuto-commit of generated files.
Glenn Morris [Mon, 5 Aug 2013 10:17:40 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years ago* calendar/calendar.el (calendar-generate-month, calendar-font-lock-keywords):
Glenn Morris [Mon, 5 Aug 2013 06:54:30 +0000 (23:54 -0700)]
* calendar/calendar.el (calendar-generate-month, calendar-font-lock-keywords):
Fix for calendar-day-header-width > length of any day name.

10 years ago* lisp/calendar/calendar.el (calendar-generate-month):
Glenn Morris [Mon, 5 Aug 2013 06:49:37 +0000 (23:49 -0700)]
* lisp/calendar/calendar.el (calendar-generate-month):
Fix for calendar-column-width != 1 + calendar-day-digit-width.

10 years ago* lisp/frameset.el: Miscellaneous cleanups.
Juanma Barranquero [Mon, 5 Aug 2013 04:45:17 +0000 (06:45 +0200)]
* lisp/frameset.el: Miscellaneous cleanups.
  (frameset): Add docstring.  Move :version property to its
  own `version' slot.
  (frameset-copy): Rename from copy-frameset.
  (frameset-p): Check more thoroughly.
  (frameset-prop): Do not check for :version, which is no longer a prop.
  (frameset-live-filter-alist, frameset-persistent-filter-alist):
  Use new :never value instead of t.
  (frameset-filter-alist): Expand and clarify docstring.
  (frameset-filter-tty-to-GUI, frameset-filter-sanitize-color)
  (frameset-filter-minibuffer, frameset-filter-save-param)
  (frameset-filter-restore-param, frameset-filter-iconified):
  Add pointer to docstring of frameset-filter-alist.
  (frameset-filter-params): Rename filter values to be more meaningful:
  :never instead of t, and reverse the meanings of :save and :restore.
  (frameset--process-minibuffer-frames): Clarify error message.
  (frameset-save): Avoid unnecessary and confusing call to framep.
  Use new BOA constructor for framesets.
  (frameset--reuse-list): Doc fix.
  (frameset--restore-frame): Rename from frameset--get-frame.  Doc fix.
  (frameset--minibufferless-last-p): Rename from frameset--sort-states.
  (frameset-minibufferless-first-p): Doc fix.
  Rename from frameset-sort-frames-for-deletion.
  (frameset-restore): Doc fixes.  Use new function names.
  Most changes suggested by Drew Adams <drew.adams@oracle.com>.

* lisp/desktop.el (desktop-clear): Use new name of sort predicate.

10 years agoNew macro to iterate over live buffers similar to frames.
Dmitry Antipov [Mon, 5 Aug 2013 04:14:43 +0000 (08:14 +0400)]
New macro to iterate over live buffers similar to frames.
* buffer.h (FOR_EACH_LIVE_BUFFER): New macro.
(Vbuffer_alist, Qpriority, Qbefore_string, Qafter_string):
Declare buffer-related variables here to offload lisp.h.
* buffer.c (Vbuffer_alist): Adjust comment.
(Fget_file_buffer, get_truename_buffer, Fother_buffer)
(other_buffer_safely):
* data.c (store_symval_forwarding):
* dispnew.c (Fframe_or_buffer_changed_p):
* fileio.c (Fdo_auto_save):
* filelock.c (unlock_all_files):
* minibuf.c (read_minibuf): Use FOR_EACH_LIVE_BUFFER.

10 years agoExtract truncate-string-to-width tests to a separate file
Glenn Morris [Mon, 5 Aug 2013 01:32:00 +0000 (18:32 -0700)]
Extract truncate-string-to-width tests to a separate file

* test/automated/mule-util.el: New file, with tests extracted from
lisp/international/mule-util.el.
Copyright years based on when the original test-suite comment was
added to lisp/international/mule-util.el (in 2002).

* lisp/international/mule-util.el: Extract comment test-suite out to
separate file.

10 years ago* lisp/frameset.el: Add new predicate values for frameset-restore args.
Juanma Barranquero [Sun, 4 Aug 2013 22:12:18 +0000 (00:12 +0200)]
* lisp/frameset.el: Add new predicate values for frameset-restore args.
  (frameset-live-filter-alist, frameset-persistent-filter-alist):
  New variables.
  (frameset-filter-alist): Use them.  Add autoload cookie.
  (frameset-filter-tty-to-GUI): Move from desktop.el and rename.
  (frameset--set-id, frameset--reuse-frame): Rename `frame-id' to
  `frameset--id' (it's supposed to be internal to frameset.el).
  (frameset--process-minibuffer-frames): Ditto.  Doc fix.
  (frameset--initial-params): New function.
  (frameset--get-frame): Use it.  Doc fix.
  (frameset--move-onscreen): Accept new PRED value for FORCE-ONSCREEN.
  Accept :all, not 'all.
  (frameset-restore): Add new predicate values for FORCE-ONSCREEN and
  FORCE-DISPLAY.  Use :keywords for constant arguments to avoid collision
  with fbound symbols.  Fix frame id matching, and remove matching ids if
  the frame being restored is deleted.  Obey :delete.

* lisp/desktop.el (desktop-restore-forces-onscreen)
  (desktop-restore-reuses-frames): Document :keyword constant values.
  (desktop-filter-parameters-alist): Remove, now identical to
  frameset-filter-alist.
  (desktop--filter-tty*): Remove, moved to frameset.el.
  (desktop-save-frameset, desktop-restore-frameset):
  Do not pass :filters argument.

10 years agoAdd Todo mode user manual.
Stephen Berman [Sun, 4 Aug 2013 21:27:49 +0000 (23:27 +0200)]
Add Todo mode user manual.

* doc/misc/Makefile.in (INFO_TARGETS, DVI_TARGETS, PDF_TARGETS): Add todo-mode.
(todo-mode, $(buildinfodir)/todo-mode$(INFO_EXT)):
(todo-mode.dvi, todo-mode.pdf): New rules.

* doc/misc/todo-mode.texi: New file.

* info/dir: Add todo-mode.

10 years ago* lisp/subr.el (macrop): New function.
Stefan Monnier [Sun, 4 Aug 2013 20:18:11 +0000 (16:18 -0400)]
* lisp/subr.el (macrop): New function.
(text-clone--maintaining): New var.
(text-clone--maintain): Rename from text-clone-maintain.  Use it
instead of inhibit-modification-hooks.

* lisp/emacs-lisp/nadvice.el (advice--normalize): For aliases to macros, use
a proxy, so as handle autoloads and redefinitions of the target.
(advice--defalias-fset, advice-remove): Use advice--symbol-function.

* lisp/emacs-lisp/pcase.el (pcase-mutually-exclusive-predicates):
Remove bogus (arrayp . stringp) pair.  Add entries for `vectorp'.
(pcase--mutually-exclusive-p): New function.
(pcase--split-consp): Use it.
(pcase--split-pred): Use it.  Optimize the case where `pat' is a qpat
mutually exclusive with the current predicate.

* test/automated/advice-tests.el (advice-tests-nadvice): Test removal
before definition.
(advice-tests-macroaliases): New test.

* lisp/emacs-lisp/edebug.el (edebug-lookup-function): Remove function.
(edebug-macrop): Remove.  Use `macrop' instead.
* lisp/emacs-lisp/advice.el (ad-subr-p): Remove.  Use `subrp' instead.
(ad-macro-p):
* lisp/eshell/esh-cmd.el (eshell-macrop):
* lisp/apropos.el (apropos-macrop): Remove.  Use `macrop' instead.

10 years agoMS-Windows followup to last commit.
Eli Zaretskii [Sun, 4 Aug 2013 17:52:25 +0000 (20:52 +0300)]
MS-Windows followup to last commit.

 lib-src/ntlib.h: Include fcntl.h.
 (mkostemp): Declare prototype.
 (mktemp): Don't redefine.
 lib-src/ntlib.c (mkostemp): New function.

Fixes: debbugs:15015

10 years agoFix some minor races in hosts lacking mkostemp.
Paul Eggert [Sun, 4 Aug 2013 16:56:56 +0000 (09:56 -0700)]
Fix some minor races in hosts lacking mkostemp.

Gnulib's emulation of mkostemp doesn't have races that Emacs's does.
* configure.ac (mkostemp): Remove check for this function;
gnulib does the check now.
(mkstemp): Remove check for this no-longer-used function.
* lib/mkostemp.c, lib/secure_getenv.c, lib/tempname.c, lib/tempname.h:
* m4/mkostemp.m4, m4/secure_getenv.m4, m4/tempname.m4:
New files, copied from Gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* admin/merge-gnulib (GNULIB_MODULES): Add mkostemp.
* lib-src/movemail.c (main):
* lib-src/update-game-score.c (write_scores):
Use mkostemp (which now works on all platforms, due to changes
in the portability layer) rather than mktemp (which has a race)
or mkstemp (which we no longer bother with).
* src/callproc.c (create_temp_file):
* src/filelock.c (create_lock_file):
Assume mkostemp, since it's now provided by Gnulib.

Fixes: debbugs:15015

10 years agoMinor fix of the last commit.
Eli Zaretskii [Sun, 4 Aug 2013 15:43:10 +0000 (18:43 +0300)]
Minor fix of the last commit.

10 years agoImplement mkostemp for MS-Windows.
Eli Zaretskii [Sun, 4 Aug 2013 15:32:12 +0000 (18:32 +0300)]
Implement mkostemp for MS-Windows.

 nt/mingw-cfg.site (ac_cv_func_mkostemp): New var with value of "yes".
 nt/inc/ms-w32.h (mkostemp): Declare prototype.
 nt/config.nt (HAVE_MKOSTEMP): Define to 1.

 src/w32.c (mkostemp): New function.
 (mktemp): Remove, no longer used.  Most of the code reused in mkostemp.

Fixes: debbugs:15015

10 years ago* lisp/emacs-lisp/nadvice.el (advice-function-mapc): Rename from advice-mapc.
Stefan Monnier [Sun, 4 Aug 2013 06:48:00 +0000 (02:48 -0400)]
* lisp/emacs-lisp/nadvice.el (advice-function-mapc): Rename from advice-mapc.
(advice-mapc): New function, using it.
(advice-function-member-p): New function.
(advice--normalize): Store the cdr in advice--saved-rewrite since
that's the part that will be changed.
(advice--symbol-function): New function.
(advice-remove): Handle removal before the function is defined.
Adjust to new advice--saved-rewrite.
(advice-member-p): Use advice-function-member-p and
advice--symbol-function.

10 years ago* ert-tests.el: Disable failing test that no-one seems to know how to fix.
Glenn Morris [Sun, 4 Aug 2013 04:37:10 +0000 (21:37 -0700)]
* ert-tests.el: Disable failing test that no-one seems to know how to fix.

10 years ago* test/automated/icalendar-tests.el (icalendar-tests--test-export)
Glenn Morris [Sun, 4 Aug 2013 04:34:01 +0000 (21:34 -0700)]
* test/automated/icalendar-tests.el (icalendar-tests--test-export)
(icalendar-tests--test-import): Remove debug messages.

10 years ago* dispnew.c (glyph_matrix_count, glyph_pool_count):
Dmitry Antipov [Sun, 4 Aug 2013 04:07:18 +0000 (08:07 +0400)]
* dispnew.c (glyph_matrix_count, glyph_pool_count):
Move under GLYPH_DEBUG and ENABLE_CHECKING.
(new_glyph_matrix, free_glyph_matrix, new_glyph_pool)
(free_glyph_pool, check_glyph_memory): Likewise for
all users.  Adjust comments where appropriate.

10 years agoMerge: cleanup for vc-ignore.
Xue Fuqiao [Sun, 4 Aug 2013 03:01:42 +0000 (11:01 +0800)]
Merge: cleanup for vc-ignore.

10 years agoMerge from mainline.
Xue Fuqiao [Sun, 4 Aug 2013 02:59:08 +0000 (10:59 +0800)]
Merge from mainline.

10 years agolisp/frameset.el (frameset--reuse-frame): Use correct frame-id to find frame.
Juanma Barranquero [Sun, 4 Aug 2013 02:57:45 +0000 (04:57 +0200)]
lisp/frameset.el (frameset--reuse-frame): Use correct frame-id to find frame.
(frameset--set-id, frameset--process-minibuffer-frames)
(frameset-restore): Rename parameter `frameset-id' to `frame-id'.

10 years agoCleanup for vc-ignore.
Xue Fuqiao [Sun, 4 Aug 2013 02:55:45 +0000 (10:55 +0800)]
Cleanup for vc-ignore.

* vc/vc.el (vc-ignore): Rewrite.
(vc-default-ignore-completion-table):
(vc--read-lines):
(vc--add-line, vc--remove-regexp): New functions.

* vc/vc-svn.el (vc-svn-ignore): Doc fix.
(vc-svn-ignore-completion-table): New function.

* vc/vc-hg.el (vc-hg-ignore): Rewrite.
(vc-hg-ignore-completion-table):
(vc-hg-find-ignore-file): New functions.

* vc/vc-git.el (vc-git-ignore): Rewrite.
(vc-git-ignore-completion-table):
(vc-git-find-ignore-file): New functions.

* vc/vc-dir.el (vc-dir-menu-map): Add menu for vc-dir-ignore.

* vc/vc-bzr.el (vc-bzr-ignore): Rewrite.
(vc-bzr-ignore-completion-table):
(vc-bzr-find-ignore-file): New functions.

10 years ago* test/automated/icalendar-tests.el (icalendar-tests--test-export)
Glenn Morris [Sun, 4 Aug 2013 02:30:11 +0000 (19:30 -0700)]
* test/automated/icalendar-tests.el (icalendar-tests--test-export)
(icalendar-tests--test-import): Try more precise TZ specification.

10 years agoetc/NEWS: Fix description of frame-restoring options.
Juanma Barranquero [Sun, 4 Aug 2013 01:43:26 +0000 (03:43 +0200)]
etc/NEWS: Fix description of frame-restoring options.

10 years agolisp/frameset.el: Fix typos and autoload cookies.
Juanma Barranquero [Sun, 4 Aug 2013 00:58:32 +0000 (02:58 +0200)]
lisp/frameset.el: Fix typos and autoload cookies.
(frameset-p, frameset-save): Fix autoload cookies.
(frameset-filter-minibuffer): Doc fix.
(frameset-restore): Fix autoload cookie.  Fix typo in docstring.

10 years agolisp/desktop.el (desktop-clear): Be more careful about deleting frames.
Juanma Barranquero [Sun, 4 Aug 2013 00:31:33 +0000 (02:31 +0200)]
lisp/desktop.el (desktop-clear): Be more careful about deleting frames.
Do it only when called interactively and desktop-restore-frames is non-nil.
Doc fix.
(desktop-read): Set desktop-saved-frameset to nil.

10 years ago* composite.h: Minor fixups.
Paul Eggert [Sat, 3 Aug 2013 21:09:57 +0000 (14:09 -0700)]
* composite.h: Minor fixups.

(composition_registered_p): Rename from COMPOSITION_REGISTERD_P
to fix a misspelling, and change it to an inline function while
we're at it (it need not be a macro).  All uses changed.
(composition_method, composition_valid_p):
Rewrite to avoid assignments in if-conditions.

10 years ago* composite.h (compose_region): Remove the leftover.
Dmitry Antipov [Sat, 3 Aug 2013 18:23:23 +0000 (22:23 +0400)]
* composite.h (compose_region): Remove the leftover.

10 years agoDo not use global Lisp_Object in composition macros.
Dmitry Antipov [Sat, 3 Aug 2013 18:16:43 +0000 (22:16 +0400)]
Do not use global Lisp_Object in composition macros.
* composite.h (composition_temp): Remove declaration.
(COMPOSITION_METHOD, COMPOSITION_VALID_P): Replace with...
(composition_method, composition_valid_p): ...inline functions.
* composite.c (composition_temp): Remove.
(run_composition_function, update_compositions)
(composition_compute_stop_pos, composition_adjust_point)
(Ffind_composition_internal):
* coding.c (handle_composition_annotation):
* xdisp.c (handle_composition_prop, check_point_in_composition):
Related users changed.

10 years ago* test/automated/icalendar-tests.el (icalendar-tests--test-export)
Glenn Morris [Sat, 3 Aug 2013 16:44:18 +0000 (09:44 -0700)]
* test/automated/icalendar-tests.el (icalendar-tests--test-export)
(icalendar-tests--test-import): Add debug messages.

10 years agoetc/NEWS: Document new package frameset.el.
Juanma Barranquero [Sat, 3 Aug 2013 15:10:13 +0000 (17:10 +0200)]
etc/NEWS: Document new package frameset.el.

10 years agolisp/frameset.el (frameset-prop): Preserve `setf' semantics in setter.
Juanma Barranquero [Sat, 3 Aug 2013 13:33:22 +0000 (15:33 +0200)]
lisp/frameset.el (frameset-prop): Preserve `setf' semantics in setter.

10 years agolisp/frameset.el (frameset-prop): New function and setter.
Juanma Barranquero [Sat, 3 Aug 2013 09:57:07 +0000 (11:57 +0200)]
lisp/frameset.el (frameset-prop): New function and setter.
(frameset-save): Do not modify frame list passed by the caller.

10 years agoDrop FRAME_PTR typedef.
Dmitry Antipov [Sat, 3 Aug 2013 03:29:03 +0000 (07:29 +0400)]
Drop FRAME_PTR typedef.
* composite.c, font.c, font.h, fontset.c, fontset.h, frame.c, frame.h:
* ftfont.c, ftxfont.c, gtkutil.c, gtkutil.h, image.c, keyboard.c:
* menu.c, menu.h, msdos.c, nsfns.m, nsfont.m, nsmenu.m, nsterm.h:
* nsterm.m, scroll.c, term.c, w32fns.c, w32font.c, w32font.h:
* w32inevt.c, w32inevt.h, w32menu.c, w32notify.c, w32term.c, w32term.h:
* w32uniscribe.c, w32xfns.c, widget.c, window.c, xdisp.c, xfaces.c:
* xfns.c, xfont.c, xftfont.c, xmenu.c, xselect.c, xterm.c:
All related users changed.

10 years ago* etc/TODO: Adjust entry about bug reporting.
Xue Fuqiao [Sat, 3 Aug 2013 02:57:00 +0000 (10:57 +0800)]
* etc/TODO: Adjust entry about bug reporting.

10 years ago* lisp/emacs-lisp/package.el (package-desc-from-define): Ignore unknown keys.
Stefan Monnier [Sat, 3 Aug 2013 02:34:22 +0000 (22:34 -0400)]
* lisp/emacs-lisp/package.el (package-desc-from-define): Ignore unknown keys.

10 years agoFix previous core-elisp-tests.el fix
Glenn Morris [Sat, 3 Aug 2013 01:47:54 +0000 (18:47 -0700)]
Fix previous core-elisp-tests.el fix

10 years ago* test/automated/core-elisp-tests.el (core-elisp-tests): Fix defcustom.
Glenn Morris [Sat, 3 Aug 2013 01:43:30 +0000 (18:43 -0700)]
* test/automated/core-elisp-tests.el (core-elisp-tests): Fix defcustom.

10 years agoicalendar-tests.el tweaks related to timezone handling
Glenn Morris [Sat, 3 Aug 2013 01:02:51 +0000 (21:02 -0400)]
icalendar-tests.el tweaks related to timezone handling

* test/automated/icalendar-tests.el (icalendar-tests--test-export)
(icalendar-tests--test-import):
Use getenv/setenv rather than set-time-zone-rule.
(icalendar-tests--test-import): Reset zone even if error occurred.

10 years ago* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode)
Stefan Monnier [Fri, 2 Aug 2013 21:23:07 +0000 (17:23 -0400)]
* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode)
(easy-mmode-define-navigation): Avoid ((lambda (..) ..) ...).

10 years agoMake defvar affect the default binding outside of any let.
Stefan Monnier [Fri, 2 Aug 2013 21:16:33 +0000 (17:16 -0400)]
Make defvar affect the default binding outside of any let.
* src/eval.c (default_toplevel_binding): New function.
(Fdefvar): Use it.
(unbind_to, backtrace_eval_unrewind): Do a bit of CSE simplification.
(Fdefault_toplevel_value, Fset_default_toplevel_value): New subrs.
(syms_of_eval): Export them.
* src/data.c (Fdefault_value): Micro cleanup.
* src/term.c (init_tty): Use "false".
* lisp/custom.el (custom-initialize-default, custom-initialize-set)
(custom-initialize-reset, custom-initialize-changed): Affect the
toplevel-default-value (bug#6275, bug#14586).
* lisp/emacs-lisp/advice.el (ad-compile-function): Undo previous workaround
for bug#6275.
* test/automated/core-elisp-tests.el: New file.

10 years agolisp/emacs-lisp/lisp-mode.el: Support cl-def* expressions in imenu.
Juanma Barranquero [Fri, 2 Aug 2013 16:29:16 +0000 (18:29 +0200)]
lisp/emacs-lisp/lisp-mode.el: Support cl-def* expressions in imenu.

10 years agolisp/frameset.el (frameset-filter-params): Fix order of arguments.
Juanma Barranquero [Fri, 2 Aug 2013 16:03:13 +0000 (18:03 +0200)]
lisp/frameset.el (frameset-filter-params): Fix order of arguments.

10 years agoPS: I re-read the manual of bzr to make sure I don't break anything.
Bastien Guerry [Fri, 2 Aug 2013 14:26:22 +0000 (16:26 +0200)]
PS: I re-read the manual of bzr to make sure I don't break anything.

10 years agoAdd indexes for elisp manual.
Xue Fuqiao [Fri, 2 Aug 2013 14:06:27 +0000 (22:06 +0800)]
Add indexes for elisp manual.

* doc/lispref/display.texi (Face Functions): Add an index.

* doc/lispref/variables.texi (Variable Aliases): Add an index.

* doc/lispref/functions.texi (Defining Functions): Add an index.

* doc/lispref/nonascii.texi (Coding System Basics): Add an index.

10 years agoAdd indexes for elisp manual.
Xue Fuqiao [Fri, 2 Aug 2013 13:52:10 +0000 (21:52 +0800)]
Add indexes for elisp manual.

* doc/lispref/display.texi (Face Functions): Add an index.

* doc/lispref/variables.texi (Variable Aliases): Add an index.

* doc/lispref/functions.texi (Defining Functions): Add an index.

* doc/lispref/nonascii.texi (Coding System Basics): Add an index.

10 years agoMerge changes made in Gnus trunk
Lars Magne Ingebrigtsen [Fri, 2 Aug 2013 13:34:22 +0000 (13:34 +0000)]
Merge changes made in Gnus trunk

2013-08-02  Lars Magne Ingebrigtsen  <larsi@gnus.org>
* gnus-group.el (gnus-group-delete-articles): Allow deleting only "old"
  articles.
* gnus-delay.el (gnus-delay-article): Run `message-send-hook' so that
  we can get spell-checking etc.

10 years agoFix X GC leak in GTK and raw (no toolkit) X ports.
Dmitry Antipov [Fri, 2 Aug 2013 13:22:23 +0000 (17:22 +0400)]
Fix X GC leak in GTK and raw (no toolkit) X ports.
* xterm.c (x_free_frame_resources): If white and black relief
GCs are allocated, always free them here.
* xfns.c (x_make_gc): Omit redundant initialization.
* widget.c (create_frame_gcs): Remove the leftover.
(EmacsFrameDestroy): Do nothing because all GCs are now freed
in x_free_frame_resources.

10 years ago* tutorials/TUTORIAL.cn: Update; synchronize with TUTORIAL.
Xue Fuqiao [Fri, 2 Aug 2013 12:52:26 +0000 (20:52 +0800)]
* tutorials/TUTORIAL.cn: Update; synchronize with TUTORIAL.

10 years ago* nsterm.h (EmacsView): Add maximizing_resize, put it and old_title
Jan Djärv [Fri, 2 Aug 2013 09:42:23 +0000 (11:42 +0200)]
* nsterm.h (EmacsView): Add maximizing_resize, put it and old_title
inside NS_IMPL_COCOA.

* nsterm.m (windowWillResize:toSize:): Only change title if
! maximizing_resize && FULLSCREEN_NONE.  strdup title before
modifying it.
(viewDidEndLiveResize): New method.

Fixes: debbugs:15005

10 years agolisp/gnus/rfc2047.el (rfc2047-encode-message-header): Unify charsets into a single...
Katsumi Yamaoka [Fri, 2 Aug 2013 08:36:15 +0000 (08:36 +0000)]
lisp/gnus/rfc2047.el (rfc2047-encode-message-header): Unify charsets into a single one used for encoding the whole text in a header

10 years agoFix last change.
Dmitry Antipov [Fri, 2 Aug 2013 08:32:32 +0000 (12:32 +0400)]
Fix last change.

10 years ago* insdel.c (adjust_after_replace, replace_range, del_range_2):
Dmitry Antipov [Fri, 2 Aug 2013 07:07:08 +0000 (11:07 +0400)]
* insdel.c (adjust_after_replace, replace_range, del_range_2):
Do not check whether undo is enabled because record_insert and
record_delete does that themselves.

10 years ago* etc/tutorials/TUTORIAL.translators (Maintainer): Update the maintainer.
Xue Fuqiao [Fri, 2 Aug 2013 06:59:25 +0000 (14:59 +0800)]
* etc/tutorials/TUTORIAL.translators (Maintainer): Update the maintainer.

* lisp/mh-e/mh-e.el: Add a FIXME.

10 years agolisp/desktop.el: Move code related to saving frames to frameset.el.
Juanma Barranquero [Fri, 2 Aug 2013 04:33:58 +0000 (06:33 +0200)]
lisp/desktop.el: Move code related to saving frames to frameset.el.
Require frameset.
(desktop-restore-frames): Doc fix.
(desktop-restore-reuses-frames): Rename from
desktop-restoring-reuses-frames.
(desktop-saved-frameset): Rename from desktop-saved-frame-states.
(desktop-clear): Clear frames too.
(desktop-filter-parameters-alist): Set from frameset-filter-alist.
(desktop--filter-tty*, desktop-save, desktop-read):
Use frameset functions.
(desktop-before-saving-frames-functions, desktop--filter-*-color)
(desktop--filter-minibuffer, desktop--filter-restore-desktop-parm)
(desktop--filter-save-desktop-parm, desktop--filter-iconified-position)
(desktop-restore-in-original-display-p, desktop--filter-frame-parms)
(desktop--process-minibuffer-frames, desktop-save-frames)
(desktop--reuse-list, desktop--compute-pos, desktop--move-onscreen)
(desktop--find-frame, desktop--select-frame, desktop--make-frame)
(desktop--sort-states, desktop-restoring-frames-p)
(desktop-restore-frames): Remove.  Most code moved to frameset.el.
(desktop-restoring-frameset-p, desktop-restore-frameset)
(desktop--check-dont-save, desktop-save-frameset): New functions.
(desktop--app-id): New constant.
(desktop-first-buffer, desktop-buffer-ok-count)
(desktop-buffer-fail-count): Move before first use.
lisp/frameset.el: New file.

10 years ago* w32term.c (x_unfocus_frame): Remove unused dummy function.
Dmitry Antipov [Fri, 2 Aug 2013 04:21:51 +0000 (08:21 +0400)]
* w32term.c (x_unfocus_frame): Remove unused dummy function.

10 years ago* xterm.h (struct x_output) [HAVE_X_I18N]: Remove xic_base_fontname
Dmitry Antipov [Fri, 2 Aug 2013 03:55:24 +0000 (07:55 +0400)]
* xterm.h (struct x_output) [HAVE_X_I18N]: Remove xic_base_fontname
member which is not really used any more.
(FRAME_XIC_BASE_FONTNAME): Remove.
* xfns.c (xic_free_fontset): Adjust user.
* xmenu.c (mouse_position_for_popup, x_activate_menubar)
(update_frame_menubar, set_frame_menubar, free_frame_menubar)
(create_and_show_popup_menu, xmenu_show, create_and_show_dialog)
(xdialog_show): Use eassert for debugging check.

10 years agoetc/tutorials/TUTORIAL.es: Fix typos (bug#15000).
Juanma Barranquero [Fri, 2 Aug 2013 03:44:59 +0000 (05:44 +0200)]
etc/tutorials/TUTORIAL.es: Fix typos (bug#15000).

10 years ago* doc/lispintro/emacs-lisp-intro.texi (zap-to-char): Remove obsolete stuff.
Xue Fuqiao [Fri, 2 Aug 2013 02:33:12 +0000 (10:33 +0800)]
* doc/lispintro/emacs-lisp-intro.texi (zap-to-char): Remove obsolete stuff.

10 years agolisp/gnus/ChangeLog: Fix previous commit
Katsumi Yamaoka [Fri, 2 Aug 2013 00:50:14 +0000 (00:50 +0000)]
lisp/gnus/ChangeLog: Fix previous commit

10 years ago* lisp/files.el: Use lexical-binding.
Stefan Monnier [Thu, 1 Aug 2013 23:18:37 +0000 (19:18 -0400)]
* lisp/files.el: Use lexical-binding.
(dir-locals-read-from-file): Remove unused `err' variable.
(hack-dir-local-variables--warned-coding): New var.
(hack-dir-local-variables): Use it to avoid repeated warnings.
(make-backup-file-name--default-function): New function.
(make-backup-file-name-function): Use it as default.
(buffer-stale--default-function): New function.
(buffer-stale-function): Use it as default.
(revert-buffer-insert-file-contents--default-function): New function.
(revert-buffer-insert-file-contents-function): Use it as default.
(insert-directory): Avoid add-to-list.
* lisp/autorevert.el (auto-revert-handler): Simplify.
Use buffer-stale--default-function.

10 years ago* test/automated/file-notify-tests.el (file-notify--test-remote-enabled):
Glenn Morris [Thu, 1 Aug 2013 23:10:51 +0000 (19:10 -0400)]
* test/automated/file-notify-tests.el (file-notify--test-remote-enabled):
Try to check that the remote system has a notification program.

10 years agoMerge changes made in Gnus master
Gnus developers [Thu, 1 Aug 2013 22:58:40 +0000 (22:58 +0000)]
Merge changes made in Gnus master

2013-08-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
* gnus.texi (Basic Usage): Mention that warp means jump here.
  (The notmuch Engine): Mention notmuch.

2013-08-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
* message.el (message-ignored-news-headers): Delete X-Gnus-Delayed
  before sending.
* dgnushack.el (dgnushack-compile): Add a temporary check for
  gnus-icalendar.
* mm-decode.el (mm-command-output): New face.
  (mm-display-external): Use it.

2013-08-01 Kan-Ru Chen (陳侃如) <kanru@kanru.info> (tiny change)
* nnmbox.el (nnmbox-request-article): Don't change point.

2013-08-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-icalendar.el (gnus-icalendar-event:inline-reply-buttons):
  Include `handle' parameter.

2013-08-01 Jan Tatarik <jan.tatarik@gmail.com>
* gnus-icalendar.el: New file.

2013-08-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-int.el (gnus-warp-to-article): Mention that warp means jump.
* gnus-uu.el (gnus-uu-mark-thread, gnus-uu-unmark-thread): Work with
  dummy roots, too.

2013-08-01 David Edmondson <dme@dme.org>
* mml2015.el (mml2015-epg-key-image-to-string): Protect against bugging
  out on ttys.

2013-08-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-start.el (gnus-dribble-save): Only save the dribble file if it's
  not empty.

10 years agoFix typos in ChangeLogs.
Juanma Barranquero [Thu, 1 Aug 2013 22:53:03 +0000 (00:53 +0200)]
Fix typos in ChangeLogs.

10 years ago* fileio.c, fns.c (merge): Move extern decl from here ...
Paul Eggert [Thu, 1 Aug 2013 22:24:02 +0000 (23:24 +0100)]
* fileio.c, fns.c (merge): Move extern decl from here ...

* lisp.h (merge): ... to here.

10 years ago* speedbar.el (speedbar-query-confirmation-method): Doc fix.
Tassilo Horn [Thu, 1 Aug 2013 18:46:10 +0000 (20:46 +0200)]
* speedbar.el (speedbar-query-confirmation-method): Doc fix.

10 years agoFix last font-related change.
Dmitry Antipov [Thu, 1 Aug 2013 16:09:20 +0000 (20:09 +0400)]
Fix last font-related change.
* w32font.h (w32font_list_internal, w32font_match_internal):
Fix prototype.
* w32uniscribe.c (uniscribe_list, uniscribe_match):
(uniscribe_list_family): Adjust to match font API change.
MS-Windows breakage reported by Juanma Barranquero <lekktu@gmail.com>
at http://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00006.html.

10 years ago* frame.h (FRAME_MOUSE_UPDATE):
Dmitry Antipov [Thu, 1 Aug 2013 14:54:29 +0000 (18:54 +0400)]
* frame.h (FRAME_MOUSE_UPDATE):
* nsterm.m (ns_frame_up_to_date): Omit redundant check
whether hlinfo->mouse_face_mouse_frame is non-NULL.

10 years agoRefactor out setting `whitespace-indent-tabs-mode' and
Tassilo Horn [Thu, 1 Aug 2013 12:58:28 +0000 (14:58 +0200)]
Refactor out setting `whitespace-indent-tabs-mode' and
`whitespace-tab-width' buffer-locally to own function, so that
`whitespace-cleanup' and friends work appropriately without
needing to enable `whitespace-mode'.

* whitespace.el (whitespace-ensure-local-variables): New function.
(whitespace-cleanup-region): Call it.
(whitespace-turn-on): Call it.

10 years agolisp/gnus/nnrss.el (nnrss-discover-feed): Indent
Lars Magne Ingebrigtsen [Thu, 1 Aug 2013 11:23:38 +0000 (11:23 +0000)]
lisp/gnus/nnrss.el (nnrss-discover-feed): Indent

10 years agoComplete file name handlers.
Michael Albinus [Thu, 1 Aug 2013 11:10:31 +0000 (13:10 +0200)]
Complete file name handlers.

* net/tramp.el (tramp-handle-set-visited-file-modtime)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-rm-watch): New functions.
(tramp-call-process): Do not bind `default-directory'.

* net/tramp-adb.el (tramp-adb-file-name-handler-alist): Order
alphabetically.
[access-file, add-name-to-file, dired-call-process]:
[dired-compress-file, file-acl, file-notify-rm-watch]:
[file-ownership-preserved-p, file-selinux-context]:
[make-directory-internal, make-symbolic-link, set-file-acl]:
[set-file-selinux-context, set-visited-file-modtime]:
[verify-visited-file-modtime]: Add handler.
(tramp-adb-handle-write-region): Apply `set-visited-file-modtime'.

* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
[file-notify-add-watch, file-notify-rm-watch]:
[set-file-times, set-visited-file-modtime]:
[verify-visited-file-modtime]: Add handler.
(with-tramp-gvfs-error-message)
(tramp-gvfs-handle-set-visited-file-modtime)
(tramp-gvfs-fuse-file-name): Remove.
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-file-gvfs-monitor-file-process-filter): New defuns.
(tramp-gvfs-handle-write-region): Fix error in moving tmpfile.

* net/tramp-sh.el (tramp-sh-file-name-handler-alist): Order
alphabetically.
[file-notify-rm-watch ]: Use default Tramp handler.
[executable-find]: Remove private handler.
(tramp-do-copy-or-rename-file-out-of-band): Do not bind
`default-directory'.
(tramp-sh-handle-executable-find)
(tramp-sh-handle-file-notify-rm-watch): Remove functions.
(tramp-sh-file-gvfs-monitor-dir-process-filter)
(tramp-sh-file-inotifywait-process-filter, tramp-set-remote-path):
Do not use `format' in `tramp-message'.

* net/tramp-smb.el (tramp-smb-file-name-handler-alist)
[file-notify-rm-watch, set-visited-file-modtime]:
[verify-visited-file-modtime]: Add handler.
(tramp-smb-call-winexe): Do not bind `default-directory'.

10 years agoAvoid redundant Lisp_Object <-> struct frame conversions in font API.
Dmitry Antipov [Thu, 1 Aug 2013 10:33:25 +0000 (14:33 +0400)]
Avoid redundant Lisp_Object <-> struct frame conversions in font API.
* font.h (struct font_driver): Change list, match, and list_family
functions to accept struct frame * as first arg.
* font.c (font_score, font_compare, font_sort_entities): Remove
prototypes.
(font_sort_entities, font_list_entities, font_select_entity):
(font_find_for_lface, Flist_fonts, Ffont_family_list): Adjust to
match font API change.
* xfont.c (xfont_list, xfont_match, xfont_list_family):
* ftfont.c (ftfont_list, ftfont_match, ftfont_list_family):
* ftxfont.c (ftxfont_list, ftxfont_match):
* xftfont.c (xftfont_list, xftfont_match):
* nsfont.m (nsfont_list, nsfont_match, nsfont_list_family):
* w32font.c (w32font_list, w32font_match, w32font_list):
(w32font_list_internal, w32_font_match_internal): Likewise.
* xfaces.c (Fx_family_fonts): Adjust user.

10 years ago* xterm.c (any_help_event_p, x_draw_glyph_string_background):
Dmitry Antipov [Thu, 1 Aug 2013 07:33:58 +0000 (11:33 +0400)]
* xterm.c (any_help_event_p, x_draw_glyph_string_background):
(x_display_ok): Use bool for booleans.
(x_draw_glyph_string_background, cvt_string_to_pixel):
(cvt_pixel_dtor): Drop unnecessary prototypes.
* xterm.h (x_display_ok): Adjust prototype.

10 years agoDo not use pure Xism x_wm_set_icon_position in non-X ports.
Dmitry Antipov [Thu, 1 Aug 2013 06:38:49 +0000 (10:38 +0400)]
Do not use pure Xism x_wm_set_icon_position in non-X ports.
* frame.c (x_set_frame_parameters): Call to x_wm_set_icon_position
only if HAVE_X_WINDOWS is in use.
* frame.h (x_set_frame_parameters): Move under HAVE_X_WINDOWS.
* nsterm.m (x_wm_set_icon_position): Remove no-op.
* w32term.c (x_wm_set_icon_position): Likewise.
* w32fns.c (x_icon): Adjust user.

10 years ago* xterm.c (x_flush): Call XFlush once per each X display, not
Dmitry Antipov [Thu, 1 Aug 2013 05:56:20 +0000 (09:56 +0400)]
* xterm.c (x_flush): Call XFlush once per each X display, not
frame.  This is better because this code always unconditionally
skips non-X frames in Vframe_list and issues the only XFlush if
we have more than one X frame on the same X display.

10 years ago* xterm.c (last_mouse_press_frame): Remove the
Dmitry Antipov [Thu, 1 Aug 2013 05:28:24 +0000 (09:28 +0400)]
* xterm.c (last_mouse_press_frame): Remove the
leftover which is not really used any more.
(handle_one_xevent, syms_of_xterm): Adjust users.

10 years agognus-util.el (gnus-emacs-completing-read): Isolate XEmacs stuff
Katsumi Yamaoka [Thu, 1 Aug 2013 03:51:41 +0000 (03:51 +0000)]
gnus-util.el (gnus-emacs-completing-read): Isolate XEmacs stuff

10 years ago* lisp/vc/vc-hooks.el (vc-menu-map): Fix menu entry for vc-ignore.
Xue Fuqiao [Thu, 1 Aug 2013 00:19:11 +0000 (08:19 +0800)]
* lisp/vc/vc-hooks.el (vc-menu-map): Fix menu entry for vc-ignore.

10 years agoFix the Emacs manual broken by 2013-07-31T12:59:10Z!xfq.free@gmail.com.
Eli Zaretskii [Wed, 31 Jul 2013 16:20:13 +0000 (19:20 +0300)]
Fix the Emacs manual broken by 2013-07-31T12:59:10Z!xfq.free@gmail.com.

 doc/emacs/emacs.texi (Top): Remove menu item for the removed "Disabling
 Multibyte" node.

10 years ago* doc/emacs/rmail.texi (Rmail Coding): Move here from mule.texi.
Xue Fuqiao [Wed, 31 Jul 2013 13:11:47 +0000 (21:11 +0800)]
* doc/emacs/rmail.texi (Rmail Coding): Move here from mule.texi.

10 years agoDoc fix.
Xue Fuqiao [Wed, 31 Jul 2013 12:59:10 +0000 (20:59 +0800)]
Doc fix.

* doc/emacs/custom.texi (Specifying File Variables): Fix cross-references.

* doc/emacs/mule.texi (Unibyte Mode): Fix cross-references.

* doc/lispref/nonascii.texi (Non-ASCII Characters): Update menu.
(Disabling Multibyte): Move here from doc/emacs/mule.texi.  Fix cross-references.

* doc/lispref/elisp.texi (Top): Update menu.

10 years agoDrop unnecessary functions that deals with frame pixel size.
Dmitry Antipov [Wed, 31 Jul 2013 12:50:59 +0000 (16:50 +0400)]
Drop unnecessary functions that deals with frame pixel size.
* frame.h, msdos.h, w32term.h, xterm.h (x_pixel_width)
(x_pixel_height): Drop prototypes.
* msdos.c, nsfns.m, w32fns.c, xfns.c (x_pixel_width)
(x_pixel_height): Drop implementations.
* frame.c (Fframe_pixel_height): Use FRAME_PIXEL_HEIGHT
which should be always valid for window frame.
(Frame_pixel_width): Likewise with FRAME_PIXEL_WIDTH.
* w32menu.c (Fx_popup_dialog):
* xmenu.c (Fx_popup_dialog): Likewise for both.

10 years ago* lisp/vc/log-view.el (log-view-diff): Extract `log-view-diff-common',
Dmitry Gutov [Wed, 31 Jul 2013 12:22:10 +0000 (15:22 +0300)]
* lisp/vc/log-view.el (log-view-diff): Extract `log-view-diff-common',
use it.
(log-view-diff-changeset): Same.
(log-view-diff-common): Call backend command `previous-revision'
to find out the previous revision, in both cases.  Swap the
variables `to' and `fr', so that `fr' usually refers to the
earlier revision.

Fixes: debbugs:14989

10 years ago* frame.c (Fset_frame_height, Fset_frame_width): Mention nil frame in docstring.
Dmitry Antipov [Wed, 31 Jul 2013 12:09:16 +0000 (16:09 +0400)]
* frame.c (Fset_frame_height, Fset_frame_width): Mention nil frame in docstring.
(Fset_frame_size, Fset_frame_position): Use decode_live_frame and mention nil
frame in docstring.

10 years ago* doc/emacs/macos.texi (Mac / GNUstep Basics): Mention `ns-alternate-modifier'.
Xue Fuqiao [Wed, 31 Jul 2013 12:04:25 +0000 (20:04 +0800)]
* doc/emacs/macos.texi (Mac / GNUstep Basics): Mention `ns-alternate-modifier'.

10 years agoMove the documentation of Mayan calendar to cal-xtra.texi.
Xue Fuqiao [Wed, 31 Jul 2013 11:38:13 +0000 (19:38 +0800)]
Move the documentation of Mayan calendar to cal-xtra.texi.

* doc/emacs/cal-xtra.texi (Advanced Calendar/Diary Usage): Update menu.
(Mayan Calendar): Move here from calendar.texi.
* doc/emacs/emacs.texi (Top): Update menu.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 31 Jul 2013 10:19:06 +0000 (06:19 -0400)]
Auto-commit of loaddefs files.

10 years ago* frame.c (Fmake_terminal_frame): Use store_in_alist to setup
Dmitry Antipov [Wed, 31 Jul 2013 07:45:34 +0000 (11:45 +0400)]
* frame.c (Fmake_terminal_frame): Use store_in_alist to setup
frame parameters and call to Fmodify_frame_parameters just once.

10 years ago* ibuf-ext.el (ibuffer-filter-by-filename): Make it work with dired buffers too.
Kan-Ru Chen [Wed, 31 Jul 2013 07:32:58 +0000 (00:32 -0700)]
* ibuf-ext.el (ibuffer-filter-by-filename): Make it work with dired buffers too.
Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-07/msg00573.html

10 years ago* test/automated/undo-tests.el (undo-test2, undo-test5): Be quieter.
Glenn Morris [Wed, 31 Jul 2013 07:08:47 +0000 (00:08 -0700)]
* test/automated/undo-tests.el (undo-test2, undo-test5): Be quieter.