1. 27 Dec, 2014 26 commits
    • Fabián Ezequiel Gallina's avatar
      python.el: Enhance shell user interaction and deprecate python-shell-get-or-create-process. · 7d1e62d5
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el
      (python-shell-get-process-or-error): New function.
      (python-shell-with-shell-buffer): Use it.
      (python-shell-send-string, python-shell-send-region)
      (python-shell-send-buffer, python-shell-send-defun)
      (python-shell-send-file, python-shell-switch-to-shell): Use it.
      Add argument MSG to display user-friendly message when no process
      is running.
      (python-shell-switch-to-shell): Call pop-to-buffer with NORECORD.
      (python-shell-make-comint): Rename argument SHOW from POP.  Use
      display-buffer instead of pop-to-buffer.
      (run-python): Doc fix.  Return process.
      (python-shell-get-or-create-process): Make obsolete.
      
      * test/automated/python-tests.el (python-shell-get-or-create-process-1)
      (python-shell-get-or-create-process-2)
      (python-shell-get-or-create-process-3): Remove tests.
      7d1e62d5
    • Fabián Ezequiel Gallina's avatar
      Merge from origin/emacs-24 · 996ad1b8
      Fabián Ezequiel Gallina authored
      433af0a0 * lisp/progmodes/python.el (python-shell-buffer-substring): Handle cornercase when region sent starts at point-min.
      996ad1b8
    • Fabián Ezequiel Gallina's avatar
      * lisp/progmodes/python.el (python-shell-buffer-substring): Handle · 433af0a0
      Fabián Ezequiel Gallina authored
      cornercase when region sent starts at point-min.
      433af0a0
    • Paul Eggert's avatar
      Fix parse_settings to match internal documentation · 3d1afd11
      Paul Eggert authored
      * xsettings.c (parse_settings): Return the number of settings seen.
      Count the settings changes accurately.
      (read_settings): Don't confuse number of settings changes with
      the return code from XGetWindowProperty.
      3d1afd11
    • Eli Zaretskii's avatar
      Fix compilation of lib-src executables on MS-Windows. · 0db7db30
      Eli Zaretskii authored
       lib-src/Makefile.in (etags_libs, ebrowse${EXEEXT}, profile${EXEEXT})
       (make-docfile${EXEEXT}, movemail${EXEEXT})
       (update-game-score${EXEEXT}): Put $(NTLIB) before $(LOADLIBES),
       since GCC sometimes calls stpcpy when it sees strcpy, under
       optimization switches.  Reported by Dani Moncayo <dmoncayo@gmail.com>.
      0db7db30
    • Fabián Ezequiel Gallina's avatar
    • Fabián Ezequiel Gallina's avatar
      Merge from origin/emacs-24 · 35e1f9d9
      Fabián Ezequiel Gallina authored
      a5f38fa1 Fix ChangeLog typo
      c6400e17 Fix composition of characters from Syriac and Arabis scripts.
      7e9dfded python.el: Fix message when sending region.
      800260c4 python.el: Cleanup temp files even with eval errors.
      ed65b915 Fix for previous commit
      2dd5163d python.el: Handle file encoding for shell.
      7aa506ee Spelling fixes
      4cd6d773 * automated/tramp-tests.el (tramp-test17-insert-directory): Do not expect a given order of "." and "..".
      a41d07b3 Fix rendering of composed caharacters on the mode line.  (Bug#19435)
      b70977ce Small doc markup fixes
      73c050cc * doc/lispref/modes.texi (Defining Minor Modes, SMIE Lexer): Markup fixes.
      1783e6cb ChangeLog fix
      c741b1b5 TUTORIAL.es: Improve style consistency
      f89efeab TUTORIAL.es: spelling fixes
      0d48826f Avoid compiler warning.
      
      Conflicts:
      	doc/lispref/ChangeLog
      	doc/lispref/control.texi
      	etc/ChangeLog
      	lisp/ChangeLog
      	src/ChangeLog
      	test/ChangeLog
      35e1f9d9
    • Fabián Ezequiel Gallina's avatar
      Merge from origin/emacs-24 · f315b699
      Fabián Ezequiel Gallina authored
      The following commit was skipped:
      
      5fc82109 Backport: Memory leak fix and 19133 fix.
      f315b699
    • Fabián Ezequiel Gallina's avatar
      Merge from origin/emacs-24 · 4b72b4f9
      Fabián Ezequiel Gallina authored
      bef46ba2 Fix bad bug number reference, shall be 19427.
      
      Conflicts:
      	src/ChangeLog
      4b72b4f9
    • Fabián Ezequiel Gallina's avatar
      Merge from origin/emacs-24 · 938d6513
      Fabián Ezequiel Gallina authored
      The following commit was skipped:
      
      2566f386 Backport: Don't cache images in nsimage.m (Bug#18918).
      938d6513
    • Fabián Ezequiel Gallina's avatar
      Merge from origin/emacs-24 · 411c1c65
      Fabián Ezequiel Gallina authored
      216c6aad * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Use `tramp-rsh-end-of-line', it ought to be more robust.
      20cfd248 Improve indexing on the chapter/section/subsection levels.
      14c37390 * lisp/progmodes/js.el (js-syntax-propertize): "return" can't be divided.
      ea78112b * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Use "\n" as end-of-line delimeter for passwords, when running on MS Windows.
      012479a7 * lisp/progmodes/sh-script.el: Don't set global indent-line-function
      75e114fa Fix line numbers on Python shell.
      d0fd23c5 doc/emacs/buffers.texi (Kill Buffer): Improve indexing.
      8e818d17 Keep maximized when going fullscreen.
      749813e9 python.el: Fix electric colon behavior
      936d5e5b Fix last patch.
      74d3b20c Fixes: debbugs:18623
      
      Conflicts:
      	doc/emacs/ChangeLog
      	doc/lispref/ChangeLog
      	doc/lispref/functions.texi
      	lisp/ChangeLog
      	src/ChangeLog
      	src/xterm.c
      	test/ChangeLog
      411c1c65
    • Fabián Ezequiel Gallina's avatar
      Merge from origin/emacs-24 · c3c51ec2
      Fabián Ezequiel Gallina authored
      The following commit was skipped:
      
      48a9d9fd Merge branch 'emacs-24' of git.sv.gnu.org:/srv/git/emacs into emacs-24
      c3c51ec2
    • Fabián Ezequiel Gallina's avatar
      Merge from origin/emacs-24 · 6e66744d
      Fabián Ezequiel Gallina authored
      230c0100 * net/tramp-sh.el (tramp-send-command-and-read): New optional arg MARKER. (tramp-get-remote-path): Use it.
      
      Conflicts:
      	lisp/ChangeLog
      6e66744d
    • Fabián Ezequiel Gallina's avatar
      Merge from origin/emacs-24 · cd1ed48d
      Fabián Ezequiel Gallina authored
      The following commit was skipped:
      
      09ab6fed Merge branch 'emacs-24' of git.sv.gnu.org:/srv/git/emacs into emacs-24
      cd1ed48d
    • Fabián Ezequiel Gallina's avatar
      Merge from origin/emacs-24 · 3a12f2ed
      Fabián Ezequiel Gallina authored
      2616307f * net/tramp-sh.el (tramp-send-command-and-read): New optional arg MARKER. (tramp-get-remote-path): Use it.
      c773edcf * net/tramp-gw.el (tramp-gw-open-connection): Suppress traces in wrong debug buffer. (tramp-gw-open-connection): Set process coding system 'binary. (tramp-gw-open-network-stream): Handle HTTP error 403.
      8032fc16 * .gitignore: Ignore /conftest*.
      fb420e77 * lisp/subr.el (sit-for): Tweak docstring.
      061db139 Fix vc-git-dir-status-files WRT up-to-date vs edited
      bb57c94d Consider electric-pair-mode in tex-mode.
      7b945728 * test/automated/flymake/warnpred/test.pl: Tweak earlier change.
      59c218fa ChangeLog fix
      db2a7681 * test/automated/flymake/warnpred/test.pl: Tweak format
      d9005dd5 src/gnutls.c (gnutls_init): Fix deprecation warning from GCC.
      
      Conflicts:
      	ChangeLog
      	lisp/ChangeLog
      	src/ChangeLog
      	test/ChangeLog
      3a12f2ed
    • Fabián Ezequiel Gallina's avatar
      Fix ChangeLog typo · a5f38fa1
      Fabián Ezequiel Gallina authored
      a5f38fa1
    • Dmitry Gutov's avatar
      elisp-xref-find: Don't create buffers eagerly · 6d14e0d3
      Dmitry Gutov authored
      * lisp/emacs-lisp/find-func.el (find-function-library): New function,
      extracted from `find-function-noselect'.
      
      * lisp/progmodes/elisp-mode.el (elisp--identifier-location): Fold back
      into `elisp--company-location'.
      (elisp--identifier-completion-table): Rename to
      `elisp--identifier-completion-table', and do not include just any
      symbols with a property list.
      (elisp-completion-at-point): Revert the 2014-12-25 change.
      (elisp--xref-identifier-file): New function.
      (elisp--xref-find-definitions): Use it.
      
      * lisp/progmodes/xref.el (xref-elisp-location): New class.
      (xref-make-elisp-location): New function.
      (xref-location-marker): New implementation.
      6d14e0d3
    • Eli Zaretskii's avatar
      Fix composition of characters from Syriac and Arabis scripts. · c6400e17
      Eli Zaretskii authored
       lisp/language/misc-lang.el (composition-function-table): Add Syriac
       characters and also ZWJ/ZWNJ.  See
       http://lists.gnu.org/archive/html/help-gnu-emacs/2014-12/msg00248.html
       for the details.
      c6400e17
    • Glenn Morris's avatar
      Auto-commit of loaddefs files. · 09d2e847
      Glenn Morris authored
      09d2e847
    • Fabián Ezequiel Gallina's avatar
      python.el: Fix message when sending region. · 7e9dfded
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el (python-shell-send-region): Rename argument
      send-name from nomain.  Fix message.
      (python-shell-send-buffer): Rename argument send-name from arg.
      7e9dfded
    • Fabián Ezequiel Gallina's avatar
      python.el: Cleanup temp files even with eval errors. · 800260c4
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el (python-shell-send-file): Make file-name
      mandatory.  Fix temp file removal in the majority of cases.
      800260c4
    • Fabián Ezequiel Gallina's avatar
      Fix for previous commit · ed65b915
      Fabián Ezequiel Gallina authored
      ed65b915
    • Fabián Ezequiel Gallina's avatar
      python.el: Handle file encoding for shell. · 2dd5163d
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el (python-rx-constituents): Add coding-cookie.
      (python-shell--save-temp-file): Write file with proper encoding.
      (python-shell-buffer-substring): Add coding cookie for detected
      encoding to generated content.  Fix blank lines when removing
      if-name-main block.
      (python-shell-send-file): Handle file encoding.
      (python-info-encoding-from-cookie)
      (python-info-encoding): New functions.
      
      * test/automated/python-tests.el (python-shell-buffer-substring-1)
      (python-shell-buffer-substring-2, python-shell-buffer-substring-3)
      (python-shell-buffer-substring-4, python-shell-buffer-substring-5)
      (python-shell-buffer-substring-6, python-shell-buffer-substring-7)
      (python-shell-buffer-substring-8)
      (python-info-encoding-from-cookie-1)
      (python-info-encoding-from-cookie-2)
      (python-info-encoding-from-cookie-3)
      (python-info-encoding-from-cookie-4)
      (python-info-encoding-from-cookie-5)
      (python-info-encoding-from-cookie-6)
      (python-info-encoding-from-cookie-7, python-info-encoding-1)
      (python-info-encoding-2): New tests.
      2dd5163d
    • Juri Linkov's avatar
      Avoid duplicate calls of window-height in with-displayed-buffer-window · 162660c3
      Juri Linkov authored
      * lisp/minibuffer.el (minibuffer-completion-help):
      Use shrink-window-if-larger-than-buffer in window-height
      when temp-buffer-resize-mode is nil.
      
      * lisp/window.el (with-displayed-buffer-window): Remove window-height
      from the action alist in the temp-buffer-window-show call
      when window-height is handled explicitly afterwards.
      
      Fixes: debbugs:19355
      162660c3
    • Juri Linkov's avatar
      Support subdirectories when saving places in dired. · d5145924
      Juri Linkov authored
      * lisp/saveplace.el (toggle-save-place, save-place-to-alist)
      (save-places-to-alist, save-place-dired-hook):
      Use dired-current-directory instead of dired-directory.
      (save-place-dired-hook): Add check for alist to make the new
      format future-proof to allow other possible formats.
      
      Fixes: debbugs:19436
      d5145924
    • Filipp Gunbin's avatar
      Fix ChangeLog · c5ac00f0
      Filipp Gunbin authored
      c5ac00f0
  2. 26 Dec, 2014 9 commits
    • Paul Eggert's avatar
      Use bool for boolean in xselect.c, xsettings.c · 7a305f8b
      Paul Eggert authored
      * xselect.c (x_get_local_selection, struct selection_data)
      (x_selection_request_lisp_error, struct prop_location)
      (x_handle_selection_request, x_convert_selection)
      (waiting_for_other_props_on_window, expect_property_change)
      (wait_for_property_change, x_handle_property_notify)
      (x_get_foreign_selection, x_get_window_property)
      (receive_incremental_selection)
      (x_get_window_property_as_lisp_data)
      (lisp_data_to_selection_data, Fx_get_selection_internal)
      (x_send_client_event):
      * xselect.c, xterm.h (x_handle_dnd_message):
      * xsettings.c (dpyinfo_valid, parse_settings, read_settings)
      (apply_xft_settings, read_and_apply_settings)
      (xft_settings_event, init_gsettings, init_xsettings)
      (syms_of_xsettings):
      Use bool for boolean.
      * xselect.c (x_get_window_property): Omit last arg, which was an
      unused boolean.
      * xsettings.c (apply_xft_settings): Remove 2nd arg, which was
      always true.  All callers changed.
      7a305f8b
    • Fabián Ezequiel Gallina's avatar
      python.el: Generate clearer shell buffer names. · 7284a174
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el (python-shell-get-process-name)
      (python-shell-internal-get-process-name): Use `buffer-name`.
      (python-shell-internal-get-or-create-process): Simplify.
      
      * test/automated/python-tests.el (python-shell-get-process-name-1)
      (python-shell-internal-get-process-name-1): Cleanup.
      (python-shell-get-process-name-2)
      (python-shell-internal-get-process-name-2): New tests.
      (python-shell-calculate-command-1)
      (python-shell-calculate-process-environment-3)
      (python-shell-calculate-exec-path-2, python-shell-make-comint-1)
      (python-shell-make-comint-2, python-shell-make-comint-4)
      (python-shell-get-process-1, python-util-clone-local-variables-1):
      Replace obsolete function and variable references with current.
      7284a174
    • Fabián Ezequiel Gallina's avatar
      8cf42182
    • Dmitry Gutov's avatar
      Add basic xref apropos implementation to elisp-mode · 807c3413
      Dmitry Gutov authored
      * lisp/progmodes/elisp-mode.el (elisp--xref-find-definitions):
      Filter out nil results.
      (elisp--xref-find-apropos): New function.
      (elisp-xref-find): Use it.
      
      * lisp/progmodes/xref.el (xref--show-xrefs): Use `user-error'.
      807c3413
    • Filipp Gunbin's avatar
      f4a63451
    • Eli Zaretskii's avatar
      MS-Windows followup to stpcpy changes. · d6552628
      Eli Zaretskii authored
       src/w32proc.c (sys_spawnve, get_lcid_callback): Use strcpy instead
       of strcat.
       src/w32menu.c (add_menu_item): Use stpcpy instead of strcat.
       src/w32.c (sys_readdir, stat_worker, symlink): Use strcpy instead of
       strcat.
      
       nt/gnulib.mk (stpcpy, string): Sync with the latest change in
       lib/gnulib.mk.
      d6552628
    • Paul Eggert's avatar
      Use bool for boolean in xsmfns.c · f7695664
      Paul Eggert authored
      * xsmfns.c, xterm.h (x_session_have_connection):
      * xsmfns.c (doing_interact, smc_interact_CB, Fhandle_save_session):
      Use bool for boolean.
      (x_session_initialize, Fhandle_save_session):
      Prefer NILP (x) to EQ (x, Qnil).
      f7695664
    • Paul Eggert's avatar
      Spelling fixes · b3946c9b
      Paul Eggert authored
      b3946c9b
    • Paul Eggert's avatar
      Spelling fixes · 7aa506ee
      Paul Eggert authored
      7aa506ee
  3. 25 Dec, 2014 5 commits
    • Paul Eggert's avatar
      Prefer stpcpy to strcat · 1e6879db
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add stpcpy.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/stpcpy.c, m4/stpcpy.m4: New files, from gnulib.
      * lib-src/ebrowse.c (sym_scope_1, operator_name, open_file):
      * lib-src/emacsclient.c (get_server_config, set_local_socket)
      (start_daemon_and_retry_set_socket):
      * lib-src/etags.c (main, C_entries, relative_filename):
      * lib-src/pop.c (sendline):
      * lib-src/update-game-score.c (main):
      * lwlib/xlwmenu.c (resource_widget_value):
      * src/callproc.c (child_setup):
      * src/dbusbind.c (xd_signature_cat):
      * src/doc.c (get_doc_string, Fsnarf_documentation):
      * src/editfns.c (Fuser_full_name):
      * src/frame.c (xrdb_get_resource):
      * src/gtkutil.c (xg_get_file_with_chooser):
      * src/tparam.c (tparam1):
      * src/xfns.c (xic_create_fontsetname):
      * src/xrdb.c (gethomedir, get_user_db, get_environ_db):
      * src/xsmfns.c (smc_save_yourself_CB):
      Rewrite to avoid the need for strcat, typically by using stpcpy
      and/or lispstpcpy.  strcat tends to be part of O(N**2) algorithms.
      * src/doc.c (sibling_etc):
      * src/xrdb.c (xdefaults):
      Now a top-level static constant.
      1e6879db
    • Michael Albinus's avatar
      * automated/tramp-tests.el (tramp-test17-insert-directory): Do not · 4cd6d773
      Michael Albinus authored
      expect a given order of "." and "..".
      4cd6d773
    • Dmitry Gutov's avatar
      Regenerate ldefs-boot.el · 8dba53d2
      Dmitry Gutov authored
      8dba53d2
    • Dmitry Gutov's avatar
      Consolidate cross-referencing commands · 394ce951
      Dmitry Gutov authored
      Move autoloaded bindings for `M-.', `M-,', `C-x 4 .' and
      `C-x 5 .' from etags.el to xref.el.
      
      * progmodes/xref.el: New file.
      
      * progmodes/elisp-mode.el (elisp--identifier-types): New variable.
      (elisp--identifier-location): New function, extracted from
      `elisp--company-location'.
      (elisp--company-location): Use it.
      (elisp--identifier-completion-table): New variable.
      (elisp-completion-at-point): Use it.
      (emacs-lisp-mode): Set the local values of `xref-find-function'
      and `xref-identifier-completion-table-function'.
      (elisp-xref-find, elisp--xref-find-definitions)
      (elisp--xref-identifier-completion-table): New functions.
      
      * progmodes/etags.el (find-tag-marker-ring): Mark obsolete in
      favor of `xref--marker-ring'.
      (tags-lazy-completion-table): Autoload.
      (tags-reset-tags-tables): Use `xref-clear-marker-stack'.
      (find-tag-noselect): Use `xref-push-marker-stack'.
      (pop-tag-mark): Make an alias for `xref-pop-marker-stack'.
      (etags--xref-limit): New constant.
      (etags-xref-find, etags--xref-find-definitions): New functions.
      394ce951
    • Karl Fogel's avatar
      * etc/NEWS: Mention new buffer display behavior for `shell'. · ac549019
      Karl Fogel authored
      This follows up to Sam Steingold's change of 2014-12-23
      in ../lisp/shell.el, in git commit e55a467e.
      ac549019