1. 26 Jun, 2016 1 commit
    • Eli Zaretskii's avatar
      Fix slow redisplay in term-mode · 7f83e7e5
      Eli Zaretskii authored
      * lisp/term.el (term-mode): Move the setting of
      bidi-paragraph-direction from 'ansi-term' to here, since term-mode
      is also affected.  Do not merge to master, since there the problem
      is solved in bidi.c by changing the regexps that delimit a
      paragraph.  (Bug#23801)
  2. 27 Apr, 2016 1 commit
    • Anders Lindgren's avatar
      Fix bug#22891: wrong terminal width when a fringe width is zero. · ff7e201e
      Anders Lindgren authored
      When either fringe width is zero, Emacs reserved one column for a
      continuation glyph. Terminal windows does not take this into
      account when the frame is resized.
      * lisp/window.el (window-adjust-process-window-size): Use
      `window-max-chars-per-line' instead of `window-body-width'.
      * lisp/term.el (term-window-width): Remove function. (It does the
      same as `window-max-chars-per-line' but without recent bug fixes.)
      (term-mode): Use `window-max-chars-per-line' instead of
      (cherry picked from commit 5b540328)
  3. 16 Apr, 2016 1 commit
  4. 23 Mar, 2016 1 commit
    • Paul Eggert's avatar
      Comint, term, and compile now set EMACS · 73d213f2
      Paul Eggert authored
      This fixes directory tracking in ansi-term, at the expense of
      breaking some usages of 'configure'.  Setting EMACS is meant to be
      a somewhat temporary measure, until Bash 4.4 comes out and is
      common.  (Bug#20484).
      * etc/NEWS: Document this.
      * lisp/comint.el (comint-exec-1):
      * lisp/net/tramp-sh.el (tramp-remote-process-environment):
      * lisp/progmodes/compile.el (compilation-start):
      * lisp/term.el (term-exec-1):
      Go back to setting the EMACS environment variable, for backward
      compatibility to Bash 4.3 and earlier.
  5. 01 Jan, 2016 1 commit
  6. 19 Dec, 2015 1 commit
  7. 26 Nov, 2015 1 commit
  8. 17 Nov, 2015 1 commit
    • Paul Eggert's avatar
      Fix docstring quoting problems with ‘ '’ · ac16149b
      Paul Eggert authored
      Problem reported by Artur Malabarba in:
      Most of these fixes are to documentation; many involve fixing
      longstanding quoting glitches that are independent of the
      recent substitute-command-keys changes.  The changes to code are:
      * lisp/cedet/mode-local.el (mode-local-augment-function-help)
      Substitute docstrings before displaying them.
      * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda):
      Quote the generated docstring for later substitution.
  9. 11 Oct, 2015 1 commit
    • Paul Eggert's avatar
      Use ‘echo’ safely with ‘\’ or leading ‘-’ · 29dfca23
      Paul Eggert authored
      POSIX says that ‘echo FOO’ produces implementation-defined output
      if FOO contains leading ‘-’, or ‘\’ anywhere, so don’t assume GNU
      behavior in that case.
      * Makefile.in (removenullpaths): Remove.
      (epaths-force): Rewrite to avoid the need for ‘echo’.
      (install-etc): Be clearer about escaping the shell metacharacters
      ‘\’ and ‘$’.
      * Makefile.in (install-arch-indep, install-etcdoc):
      * admin/charsets/mapconv, admin/merge-gnulib, admin/merge-pkg-config:
      * admin/quick-install-emacs, build-aux/gitlog-to-emacslog:
      * configure.ac, lib-src/rcs2log, make-dist:
      * src/Makefile.in (lisp.mk):
      Don’t assume ‘echo’ outputs ‘\’ and leading ‘-’ unscathed.
      For example, use ‘printf '%s\n' "$foo"’ rather than ‘echo "$foo"’
      if $foo can contain arbitrary characters.
      * lisp/Makefile.in (TAGS): Use ‘ls’, not ‘echo’, to avoid ‘\’ issues.
      * doc/lispref/two-volume.make (vol1.pdf):
      * test/etags/make-src/Makefile (web ftp publish):
      Use ‘printf’ rather than ‘echo -e’.
  10. 17 Sep, 2015 1 commit
    • Paul Eggert's avatar
      Backslash cleanup in Elisp source files · 284c470e
      Paul Eggert authored
      This patch should not change behavior.  It typically omits backslashes
      where they are redundant (e.g., in the string literal "^\$").
      In a few places, insert backslashes where they make regular
      expressions clearer: e.g., replace "^\*" (equivalent to "^*") with
      "^\\*", which has the same effect as a regular expression.
      Also, use ‘\ %’ instead of ‘\%’ when avoiding confusion with SCCS IDs,
      and similarly use ‘\ $’ instead of ‘\$’ when avoiding confusion with
      RCS IDs, as that makes it clearer that the backslash is intended.
  11. 04 Aug, 2015 1 commit
  12. 09 Apr, 2015 1 commit
    • Stefan Monnier's avatar
      Stop messing with the EMACS env var · beaab898
      Stefan Monnier authored
      Fixes: debbugs:20202
      * lisp/net/tramp-sh.el (tramp-remote-process-environment):
      * lisp/comint.el (comint-exec-1):
      * lisp/term.el (term-exec-1): Don't set EMACS envvar.
      * lisp/progmodes/compile.el (compilation-start): Same and bring
      INSIDE_EMACS's format in line with other users.
  13. 23 Mar, 2015 1 commit
    • Daniel Colascione's avatar
      Automatically adjust process window sizes · 165bea78
      Daniel Colascione authored
      * lisp/window.el (window-adjust-process-window-size-function): New
      customizable variable.
      (window--process-window-list, window--adjust-process-windows):
      New functions.
      (window-configuration-change-hook): Add
      * lisp/term.el (term-mode): Observe result of
      (term-check-size): Delete.
  14. 01 Jan, 2015 2 commits
  15. 06 Oct, 2014 1 commit
  16. 02 Oct, 2014 1 commit
    • Stefan Monnier's avatar
      Consolidate management/ownership of selections. · 31300bee
      Stefan Monnier authored
      * lisp/select.el (gui-get-selection-alist): New method.
      (gui-get-selection): Use it.  Rename from x-get-selection.
      (x-get-selection): Define as obsolete alias.
      (x-get-clipboard): Mark obsolete.
      (gui-get-primary-selection): New function.
      (x-get-selection-value): Mark obsolete.
      (gui-own-selection-alist, gui-disown-selection-alist)
      (gui-selection-owner-p-alist): New methods.
      (gui-set-selection): Use them.  Rename from x-set-selection.
      (x-set-selection): Define as obsolete alias.
      (gui--valid-simple-selection-p): Rename from
      * lisp/w32-common-fns.el (gui-own-selection, gui-disown-selection)
      (gui-selection-owner-p, gui-get-selection): Define for w32.
      (w32-get-selection-value): Rename from x-get-selection-value.
      Use the new gui-last-selected-text.
      * lisp/term/x-win.el (x-get-selection-value): Remove.
      (x-clipboard-yank): Declare obsolete.
      (gui-own-selection, gui-disown-selection, gui-get-selection)
      (gui-selection-owner-p): Define for x.
      * lisp/term/w32-win.el (w32-win-suspend-error): Rename from
      * lisp/term/pc-win.el (w16-get-selection-value): Rename from
      (w16-selection-owner-p): Rename from x-selection-owner-p.
      (gui-own-selection, gui-disown-selection, gui-get-selection)
      (gui-selection-owner-p): Define for pc.
      (w16--select-text): New function.
      * lisp/term/ns-win.el (gui-own-selection, gui-disown-selection)
      (gui-get-selection, gui-selection-owner-p): Define for ns.
      * lisp/term.el (term-mouse-paste):
      * lisp/mouse.el (mouse-yank-primary): Use gui-get-primary-selection.
      * src/nsselect.m (ns-own-selection-internal, ns-disown-selection-internal):
      Rename from the "x-" prefix.
  17. 08 Jul, 2014 1 commit
  18. 22 Jun, 2014 1 commit
    • Dmitry Antipov's avatar
      * lisp/electric.el (electric-layout-post-self-insert-function): · 9c3883b4
      Dmitry Antipov authored
      * lisp/emacs-lisp/ert.el (ert--insert-infos):
      * lisp/obsolete/vi.el (vi-set-mark):
      * lisp/term.el (term-handle-scroll):
      * lisp/textmodes/bibtex.el (bibtex-fill-field, bibtex-fill-entry):
      * lisp/gnus/gnus-sum.el (gnus-summary-edit-article-done):
      * lisp/org/org-mouse.el (org-mouse-do-remotely):
      * lisp/wid-edit.el (widget-editable-list-value-create): Prefer
      point-marker to copy-marker of point.
      * lisp/ob-core.el (org-babel-insert-result): Prefer point-min-marker
      and point-max-marker.
  19. 23 Apr, 2014 1 commit
    • Stefan Monnier's avatar
      * lisp/simple.el (completion-list-mode-map): Use choose-completion for the · 0e8a9331
      Stefan Monnier authored
      mouse binding as well.
      (completion-list-mode, completion-setup-function): Adjust docstring and
      echo area message accordingly.
      * lisp/progmodes/idlwave.el (idlwave-choose-completion): Adjust to new
      calling convention of choose-completion.
      * lisp/comint.el (comint-dynamic-list-completions):
      * lisp/term.el (term-dynamic-list-completions): Accept choose-completion.
      Fixes: debbugs:17302
  20. 22 Jan, 2014 1 commit
    • Martin Rudalics's avatar
      Fixes in window size functions around Bug#16430 and Bug#16470. · 6cb4da45
      Martin Rudalics authored
      * window.c (Fwindow_pixel_width, Fwindow_pixel_height)
      (Fwindow_mode_line_height, Fwindow_header_line_height)
      (Fwindow_right_divider_width, Fwindow_bottom_divider_width):
      Minor doc-string adjustments.
      (Fwindow_total_height, Fwindow_total_width): New argument ROUND.
      Rewrite doc-strings.
      (window_body_height, window_body_width): Do not count partially
      visible lines/columns when PIXELWISE is nil (Bug#16470).
      (Qfloor, Qceiling): New symbols.
      * window.el (window-total-size, window-size): New argument
      (window--min-delta-1, window-min-delta, window--max-delta-1): Be
      more conservative when calculating the numbers of lines or
      columns a window can shrink (Bug#16430).
      (fit-window-to-buffer): Simplify code.
      * term.el (term-window-width): Call window-body-width again.
  21. 19 Jan, 2014 2 commits
  22. 01 Jan, 2014 1 commit
  23. 18 Sep, 2013 1 commit
  24. 13 Sep, 2013 1 commit
  25. 13 Jun, 2013 1 commit
  26. 11 May, 2013 1 commit
  27. 03 Jan, 2013 2 commits
  28. 01 Jan, 2013 1 commit
  29. 17 Nov, 2012 1 commit
    • Juanma Barranquero's avatar
      lisp/*.el: Add missing declarations. · d7fe6352
      Juanma Barranquero authored
      * descr-text.el (quail-find-key):
      * dired.el (desktop-file-name):
      * dirtrack.el (shell-prefixed-directory-name, shell-process-cd):
      * generic-x.el (comint-mode, comint-exec):
      * image-dired.el (widget-forward):
      * info.el (speedbar-add-expansion-list, speedbar-center-buffer-smartly)
      (speedbar-change-initial-expansion-list, speedbar-delete-subblock)
      (speedbar-make-specialized-keymap, speedbar-make-tag-line):
      * printing.el (easy-menu-add-item, easy-menu-remove-item)
      (widget-field-action, widget-value-set):
      * speedbar.el (imenu--make-index-alist):
      * term.el (ring-empty-p, ring-ref, ring-insert-at-beginning)
      (ring-length, ring-insert):
      * vcursor.el (compare-windows-skip-whitespace):
      * woman.el (dired-get-filename):
      Declare functions.
      * term/w32-win.el (cygwin-convert-path-from-windows): Fix declaration.
  30. 15 Nov, 2012 1 commit
    • Glenn Morris's avatar
      ansi-term escape-char fix · e2e13f18
      Glenn Morris authored
      * lisp/term.el (ansi-term): Don't let C-x escape-char binding
      clobber the more standard C-c binding.
      Fixes: debbugs:12842
  31. 10 Nov, 2012 2 commits
  32. 27 Sep, 2012 1 commit
  33. 25 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Use declare forms, where possible, to mark obsolete functions. · 59f7af81
      Chong Yidong authored
      * lisp/allout.el (allout-passphrase-hint-string): Likewise.
      (allout-init): Use a declare form to mark obsolete.
      * lisp/calendar/calendar.el (calendar-version):
      * lisp/calendar/icalendar.el (icalendar-extract-ical-from-buffer)
      * lisp/cus-edit.el (custom-mode):
      * lisp/ansi-color.el (ansi-color-unfontify-region):
      * lisp/international/latin1-disp.el (latin1-char-displayable-p):
      * lisp/progmodes/cwarn.el (turn-on-cwarn-mode):
      * lisp/progmodes/which-func.el (which-func-update-1): Use
      * lisp/bookmark.el (bookmark-jump-noselect): Use a declare form to mark
      this function obsolete.
      * lisp/calendar/cal-x.el (calendar-two-frame-setup)
      (calendar-only-one-frame-setup, calendar-one-frame-setup):
      * lisp/calendar/calendar.el (american-calendar, european-calendar)
      * lisp/comint.el (comint-dynamic-simple-complete)
      (comint-dynamic-complete-as-filename, comint-unquote-filename):
      * lisp/desktop.el (desktop-load-default):
      * lisp/dired-x.el (dired-omit-here-always)
      (dired-hack-local-variables, dired-default-directory):
      * lisp/emacs-lisp/derived.el (derived-mode-class):
      * lisp/emacs-lisp/timer.el (timer-set-time-with-usecs):
      * lisp/emacs-lock.el (toggle-emacs-lock):
      * lisp/epa.el (epa-display-verify-result):
      * lisp/epg.el (epg-sign-keys, epg-start-sign-keys)
      * lisp/eshell/esh-util.el (eshell-for):
      * lisp/eshell/eshell.el (eshell-remove-from-window-buffer-names)
      * lisp/files.el (locate-file-completion):
      * lisp/imenu.el (imenu-example--create-c-index)
      * lisp/international/mule-cmds.el (princ-list):
      * lisp/international/mule-diag.el (decode-codepage-char):
      * lisp/international/mule-util.el (detect-coding-with-priority):
      * lisp/iswitchb.el (iswitchb-read-buffer):
      * lisp/mail/mailalias.el (mail-complete):
      * lisp/mail/sendmail.el (mail-sent-via):
      * lisp/mouse.el (mouse-popup-menubar-stuff, mouse-popup-menubar)
      * lisp/password-cache.el (password-read-and-add):
      * lisp/pcomplete.el (pcomplete-parse-comint-arguments):
      * lisp/progmodes/sh-script.el (sh-maybe-here-document):
      * lisp/replace.el (query-replace-regexp-eval):
      * lisp/savehist.el (savehist-load):
      * lisp/simple.el (choose-completion-delete-max-match):
      * lisp/term.el (term-dynamic-simple-complete):
      * lisp/vc/ediff-init.el (ediff-check-version):
      * lisp/vc/ediff-wind.el (ediff-choose-window-setup-function-automatically):
      * lisp/vc/vc.el (vc-diff-switches-list):
      * lisp/view.el (view-return-to-alist-update): Likewise.
      * lisp/iswitchb.el (iswitchb-read-buffer): Move code of
      iswitchb-define-mode-map here, and delete that obsolete function.
      * lisp/subr.el (eval-next-after-load, makehash, insert-string)
      (assoc-ignore-representation, assoc-ignore-case): Use declare to
      mark obsolete.
      (mode-line-inverse-video): Variable deleted.
      * lisp/emacs-lisp/byte-run.el (make-obsolete): Doc fix; emphasize that
      this applies to functions.
      * lisp/erc/erc.el (erc-send-command): Use define-obsolete-function-alias.
      * lisp/international/mule-util.el (string-to-sequence): Remove.
      * lisp/net/newst-backend.el (newsticker-cache-filename):
      * lisp/net/newst-treeview.el (newsticker-groups-filename): Fix
      incorrect obsolescence declaration.
      * lisp/net/snmp-mode.el (snmp-font-lock-keywords-3): Don't use obsolete
      * lisp/url/url-parse.el (url-recreate-url-attributes):
      * lisp/url/url-util.el (url-generate-unique-filename): Use declare to mark
      * src/xdisp.c (mode_line_inverse_video): Delete obsolete variable.
  34. 01 Sep, 2012 1 commit
    • Glenn Morris's avatar
      Tidy up term.el menu handling · 69678719
      Glenn Morris authored
      * lisp/term.el: (term-mode-map): Use easymenu for In/Out, Complete menus.
      (term-pager-break-map): Initialize in the defvar.
      (term-terminal-menu, term-signals-menu): Define with easymenu.
      (term-terminal-menu): Also show it in line-mode. 
      (term-pager-menu): New, extracted from term-process-pager.
      (term-mode, term-char-mode, term-process-pager): Use easymenu-add.
      (term-update-mode-line): Propertize line/char and page items.
      (term-process-pager): Move keymap initialization elsewhere.
      Fixes: debbugs:11957
  35. 11 Jul, 2012 1 commit
    • Stefan Monnier's avatar
      More CL cleanups and reduction of use of cl.el. · a464a6c7
      Stefan Monnier authored
      * woman.el, winner.el, vc/vc-rcs.el, vc/vc-hooks.el, vc/vc-hg.el:
      * vc/vc-git.el, vc/vc-dir.el, vc/vc-bzr.el, vc/vc-annotate.el:
      * textmodes/tex-mode.el, textmodes/sgml-mode.el, tar-mode.el:
      * strokes.el, ses.el, server.el, progmodes/js.el, progmodes/gdb-mi.el:
      * progmodes/flymake.el, progmodes/ebrowse.el, progmodes/compile.el:
      * play/tetris.el, play/snake.el, play/pong.el, play/landmark.el:
      * play/hanoi.el, play/decipher.el, play/5x5.el, nxml/nxml-mode.el:
      * net/secrets.el, net/quickurl.el, midnight.el, mail/footnote.el:
      * image-dired.el, ibuffer.el, ibuf-macs.el, ibuf-ext.el, hexl.el:
      * eshell/eshell.el, eshell/esh-io.el, eshell/esh-ext.el:
      * eshell/esh-cmd.el, eshell/em-ls.el, eshell/em-hist.el:
      * eshell/em-cmpl.el, eshell/em-banner.el:
      * url/url.el, url/url-queue.el, url/url-parse.el, url/url-http.el:
      * url/url-future.el, url/url-dav.el, url/url-cookie.el:
      * calendar/parse-time.el, test/eshell.el: Use cl-lib.
      * wid-browse.el, wdired.el, vc/vc.el, vc/vc-mt...
  36. 28 Jun, 2012 1 commit
    • Julien Danjou's avatar
      term: rework color cutomizing · ae4969c2
      Julien Danjou authored
      * term.el (term-handle-colors-array): Use a set of new faces to
      color the terminal.  Also uses :inverse-video property.
      (term-default-fg-color): Set to nil by default, deprecate in favor
      of `term-face'.
      (term-default-bg-color): Set to nil by default, deprecate in favor
      of `term-face'.
      (term-current-face): Use `term-face' by default.
      (term-bold-attribute): Variable deleted.