1. 28 Oct, 2015 1 commit
    • Juanma Barranquero's avatar
      Fix bug#21766 and add test · 1f02cbea
      Juanma Barranquero authored
      * lisp/simple.el (delete-trailing-whitespace): Save match data when
      calling `skip-syntax-backward'.
      * test/automated/simple-test.el (simple-delete-trailing-whitespace):
      New test.
      1f02cbea
  2. 26 Oct, 2015 2 commits
  3. 26 Sep, 2015 1 commit
  4. 07 Sep, 2015 1 commit
    • Paul Eggert's avatar
      Go back to grave quoting in source-code docstrings etc. · 6afef3f6
      Paul Eggert authored
      This reverts almost all my recent changes to use curved quotes
      in docstrings and/or strings used for error diagnostics.
      There are a few exceptions, e.g., Bahá’í proper names.
      * admin/unidata/unidata-gen.el (unidata-gen-table):
      * lisp/abbrev.el (expand-region-abbrevs):
      * lisp/align.el (align-region):
      * lisp/allout.el (allout-mode, allout-solicit-alternate-bullet)
      (outlineify-sticky):
      * lisp/apropos.el (apropos-library):
      * lisp/bookmark.el (bookmark-default-annotation-text):
      * lisp/button.el (button-category-symbol, button-put)
      (make-text-button):
      * lisp/calc/calc-aent.el (math-read-if, math-read-factor):
      * lisp/calc/calc-embed.el (calc-do-embedded):
      * lisp/calc/calc-ext.el (calc-user-function-list):
      * lisp/calc/calc-graph.el (calc-graph-show-dumb):
      * lisp/calc/calc-help.el (calc-describe-key)
      (calc-describe-thing, calc-full-help):
      * lisp/calc/calc-lang.el (calc-c-language)
      (math-parse-fortran-vector-end, math-parse-tex-sum)
      (math-parse-eqn-matrix, math-parse-eqn-prime)
      (calc-yacas-language, calc-maxima-language, calc-giac-language)
      (math-read-giac-subscr, math-read-math-subscr)
      (math-read-big-rec, math-read-big-balance):
      * lisp/calc/calc-misc.el (calc-help, report-calc-bug):
      * lisp/calc/calc-mode.el (calc-auto-why, calc-save-modes)
      (calc-auto-recompute):
      * lisp/calc/calc-prog.el (calc-fix-token-name)
      (calc-read-parse-table-part, calc-user-define-invocation)
      (math-do-arg-check):
      * lisp/calc/calc-store.el (calc-edit-variable):
      * lisp/calc/calc-units.el (math-build-units-table-buffer):
      * lisp/calc/calc-vec.el (math-read-brackets):
      * lisp/calc/calc-yank.el (calc-edit-mode):
      * lisp/calc/calc.el (calc, calc-do, calc-user-invocation):
      * lisp/calendar/appt.el (appt-display-message):
      * lisp/calendar/diary-lib.el (diary-check-diary-file)
      (diary-mail-entries, diary-from-outlook):
      * lisp/calendar/icalendar.el (icalendar-export-region)
      (icalendar--convert-float-to-ical)
      (icalendar--convert-date-to-ical)
      (icalendar--convert-ical-to-diary)
      (icalendar--convert-recurring-to-diary)
      (icalendar--add-diary-entry):
      * lisp/calendar/time-date.el (format-seconds):
      * lisp/calendar/timeclock.el (timeclock-mode-line-display)
      (timeclock-make-hours-explicit, timeclock-log-data):
      * lisp/calendar/todo-mode.el (todo-prefix, todo-delete-category)
      (todo-item-mark, todo-check-format)
      (todo-insert-item--next-param, todo-edit-item--next-key)
      (todo-mode):
      * lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules):
      * lisp/cedet/mode-local.el (describe-mode-local-overload)
      (mode-local-print-binding, mode-local-describe-bindings-2):
      * lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
      * lisp/cedet/srecode/srt-mode.el (srecode-macro-help):
      * lisp/cus-start.el (standard):
      * lisp/cus-theme.el (describe-theme-1):
      * lisp/custom.el (custom-add-dependencies, custom-check-theme)
      (custom--sort-vars-1, load-theme):
      * lisp/descr-text.el (describe-text-properties-1, describe-char):
      * lisp/dired-x.el (dired-do-run-mail):
      * lisp/dired.el (dired-log):
      * lisp/emacs-lisp/advice.el (ad-read-advised-function)
      (ad-read-advice-class, ad-read-advice-name, ad-enable-advice)
      (ad-disable-advice, ad-remove-advice, ad-set-argument)
      (ad-set-arguments, ad--defalias-fset, ad-activate)
      (ad-deactivate):
      * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand)
      (byte-compile-unfold-lambda, byte-optimize-form-code-walker)
      (byte-optimize-while, byte-optimize-apply):
      * lisp/emacs-lisp/byte-run.el (defun, defsubst):
      * lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode)
      (byte-compile-log-file, byte-compile-format-warn)
      (byte-compile-nogroup-warn, byte-compile-arglist-warn)
      (byte-compile-cl-warn)
      (byte-compile-warn-about-unresolved-functions)
      (byte-compile-file, byte-compile--declare-var)
      (byte-compile-file-form-defmumble, byte-compile-form)
      (byte-compile-normal-call, byte-compile-check-variable)
      (byte-compile-variable-ref, byte-compile-variable-set)
      (byte-compile-subr-wrong-args, byte-compile-setq-default)
      (byte-compile-negation-optimizer)
      (byte-compile-condition-case--old)
      (byte-compile-condition-case--new, byte-compile-save-excursion)
      (byte-compile-defvar, byte-compile-autoload)
      (byte-compile-lambda-form)
      (byte-compile-make-variable-buffer-local, display-call-tree)
      (batch-byte-compile):
      * lisp/emacs-lisp/cconv.el (cconv-convert, cconv--analyze-use):
      * lisp/emacs-lisp/chart.el (chart-space-usage):
      * lisp/emacs-lisp/check-declare.el (check-declare-scan)
      (check-declare-warn, check-declare-file)
      (check-declare-directory):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine)
      (checkdoc-message-text-engine):
      * lisp/emacs-lisp/cl-extra.el (cl-parse-integer)
      (cl--describe-class):
      * lisp/emacs-lisp/cl-generic.el (cl-defgeneric)
      (cl--generic-describe, cl-generic-generalizers):
      * lisp/emacs-lisp/cl-macs.el (cl--parse-loop-clause, cl-tagbody)
      (cl-symbol-macrolet):
      * lisp/emacs-lisp/cl.el (cl-unload-function, flet):
      * lisp/emacs-lisp/copyright.el (copyright)
      (copyright-update-directory):
      * lisp/emacs-lisp/edebug.el (edebug-read-list):
      * lisp/emacs-lisp/eieio-base.el (eieio-persistent-read):
      * lisp/emacs-lisp/eieio-core.el (eieio--slot-override)
      (eieio-oref):
      * lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor):
      * lisp/emacs-lisp/eieio-speedbar.el:
      (eieio-speedbar-child-make-tag-lines)
      (eieio-speedbar-child-description):
      * lisp/emacs-lisp/eieio.el (defclass, change-class):
      * lisp/emacs-lisp/elint.el (elint-file, elint-get-top-forms)
      (elint-init-form, elint-check-defalias-form)
      (elint-check-let-form):
      * lisp/emacs-lisp/ert.el (ert-get-test, ert-results-mode-menu)
      (ert-results-pop-to-backtrace-for-test-at-point)
      (ert-results-pop-to-messages-for-test-at-point)
      (ert-results-pop-to-should-forms-for-test-at-point)
      (ert-describe-test):
      * lisp/emacs-lisp/find-func.el (find-function-search-for-symbol)
      (find-function-library):
      * lisp/emacs-lisp/generator.el (iter-yield):
      * lisp/emacs-lisp/gv.el (gv-define-simple-setter):
      * lisp/emacs-lisp/lisp-mnt.el (lm-verify):
      * lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning):
      * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p):
      * lisp/emacs-lisp/nadvice.el (advice--make-docstring)
      (advice--make, define-advice):
      * lisp/emacs-lisp/package-x.el (package-upload-file):
      * lisp/emacs-lisp/package.el (package-version-join)
      (package-disabled-p, package-activate-1, package-activate)
      (package--download-one-archive)
      (package--download-and-read-archives)
      (package-compute-transaction, package-install-from-archive)
      (package-install, package-install-selected-packages)
      (package-delete, package-autoremove, describe-package-1)
      (package-install-button-action, package-delete-button-action)
      (package-menu-hide-package, package-menu--list-to-prompt)
      (package-menu--perform-transaction)
      (package-menu--find-and-notify-upgrades):
      * lisp/emacs-lisp/pcase.el (pcase-exhaustive, pcase--u1):
      * lisp/emacs-lisp/re-builder.el (reb-enter-subexp-mode):
      * lisp/emacs-lisp/ring.el (ring-previous, ring-next):
      * lisp/emacs-lisp/rx.el (rx-check, rx-anything)
      (rx-check-any-string, rx-check-any, rx-check-not, rx-=)
      (rx-repeat, rx-check-backref, rx-syntax, rx-check-category)
      (rx-form):
      * lisp/emacs-lisp/smie.el (smie-config-save):
      * lisp/emacs-lisp/subr-x.el (internal--check-binding):
      * lisp/emacs-lisp/tabulated-list.el (tabulated-list-put-tag):
      * lisp/emacs-lisp/testcover.el (testcover-1value):
      * lisp/emacs-lisp/timer.el (timer-event-handler):
      * lisp/emulation/viper-cmd.el (viper-toggle-parse-sexp-ignore-comments)
      (viper-toggle-search-style, viper-kill-buffer)
      (viper-brac-function):
      * lisp/emulation/viper-macs.el (viper-record-kbd-macro):
      * lisp/env.el (setenv):
      * lisp/erc/erc-button.el (erc-nick-popup):
      * lisp/erc/erc.el (erc-cmd-LOAD, erc-handle-login, english):
      * lisp/eshell/em-dirs.el (eshell/cd):
      * lisp/eshell/em-glob.el (eshell-glob-regexp)
      (eshell-glob-entries):
      * lisp/eshell/em-pred.el (eshell-parse-modifiers):
      * lisp/eshell/esh-opt.el (eshell-show-usage):
      * lisp/facemenu.el (facemenu-add-new-face)
      (facemenu-add-new-color):
      * lisp/faces.el (read-face-name, read-face-font, describe-face)
      (x-resolve-font-name):
      * lisp/files-x.el (modify-file-local-variable):
      * lisp/files.el (locate-user-emacs-file, find-alternate-file)
      (set-auto-mode, hack-one-local-variable--obsolete)
      (dir-locals-set-directory-class, write-file, basic-save-buffer)
      (delete-directory, copy-directory, recover-session)
      (recover-session-finish, insert-directory)
      (file-modes-char-to-who, file-modes-symbolic-to-number)
      (move-file-to-trash):
      * lisp/filesets.el (filesets-add-buffer, filesets-remove-buffer):
      * lisp/find-cmd.el (find-generic, find-to-string):
      * lisp/finder.el (finder-commentary):
      * lisp/font-lock.el (font-lock-fontify-buffer):
      * lisp/format.el (format-write-file, format-find-file)
      (format-insert-file):
      * lisp/frame.el (get-device-terminal, select-frame-by-name):
      * lisp/fringe.el (fringe--check-style):
      * lisp/gnus/nnmairix.el (nnmairix-widget-create-query):
      * lisp/help-fns.el (help-fns--key-bindings)
      (help-fns--compiler-macro, help-fns--parent-mode)
      (help-fns--obsolete, help-fns--interactive-only)
      (describe-function-1, describe-variable):
      * lisp/help.el (describe-mode)
      (describe-minor-mode-from-indicator):
      * lisp/image.el (image-type):
      * lisp/international/ccl.el (ccl-dump):
      * lisp/international/fontset.el (x-must-resolve-font-name):
      * lisp/international/mule-cmds.el (prefer-coding-system)
      (select-safe-coding-system-interactively)
      (select-safe-coding-system, activate-input-method)
      (toggle-input-method, describe-current-input-method)
      (describe-language-environment):
      * lisp/international/mule-conf.el (code-offset):
      * lisp/international/mule-diag.el (describe-character-set)
      (list-input-methods-1):
      * lisp/mail/feedmail.el (feedmail-run-the-queue):
      * lisp/mouse.el (minor-mode-menu-from-indicator):
      * lisp/mpc.el (mpc-playlist-rename):
      * lisp/msb.el (msb--choose-menu):
      * lisp/net/ange-ftp.el (ange-ftp-shell-command):
      * lisp/net/imap.el (imap-interactive-login):
      * lisp/net/mairix.el (mairix-widget-create-query):
      * lisp/net/newst-backend.el (newsticker--sentinel-work):
      * lisp/net/newst-treeview.el (newsticker--treeview-load):
      * lisp/net/rlogin.el (rlogin):
      * lisp/obsolete/iswitchb.el (iswitchb-possible-new-buffer):
      * lisp/obsolete/otodo-mode.el (todo-more-important-p):
      * lisp/obsolete/pgg-gpg.el (pgg-gpg-process-region):
      * lisp/obsolete/pgg-pgp.el (pgg-pgp-process-region):
      * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-process-region):
      * lisp/org/ob-core.el (org-babel-goto-named-src-block)
      (org-babel-goto-named-result):
      * lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap):
      * lisp/org/ob-ref.el (org-babel-ref-resolve):
      * lisp/org/org-agenda.el (org-agenda-prepare):
      * lisp/org/org-clock.el (org-clock-notify-once-if-expired)
      (org-clock-resolve):
      * lisp/org/org-ctags.el (org-ctags-ask-rebuild-tags-file-then-find-tag):
      * lisp/org/org-feed.el (org-feed-parse-atom-entry):
      * lisp/org/org-habit.el (org-habit-parse-todo):
      * lisp/org/org-mouse.el (org-mouse-popup-global-menu)
      (org-mouse-context-menu):
      * lisp/org/org-table.el (org-table-edit-formulas):
      * lisp/org/ox.el (org-export-async-start):
      * lisp/proced.el (proced-log):
      * lisp/progmodes/ada-mode.el (ada-get-indent-case)
      (ada-check-matching-start, ada-goto-matching-start):
      * lisp/progmodes/ada-prj.el (ada-prj-display-page):
      * lisp/progmodes/ada-xref.el (ada-find-executable):
      * lisp/progmodes/ebrowse.el (ebrowse-tags-apropos):
      * lisp/progmodes/etags.el (etags-tags-apropos-additional):
      * lisp/progmodes/flymake.el (flymake-parse-err-lines)
      (flymake-start-syntax-check-process):
      * lisp/progmodes/python.el (python-shell-get-process-or-error)
      (python-define-auxiliary-skeleton):
      * lisp/progmodes/sql.el (sql-comint):
      * lisp/progmodes/verilog-mode.el (verilog-load-file-at-point):
      * lisp/progmodes/vhdl-mode.el (vhdl-widget-directory-validate):
      * lisp/recentf.el (recentf-open-files):
      * lisp/replace.el (query-replace-read-from)
      (occur-after-change-function, occur-1):
      * lisp/scroll-bar.el (scroll-bar-columns):
      * lisp/server.el (server-get-auth-key):
      * lisp/simple.el (execute-extended-command)
      (undo-outer-limit-truncate, list-processes--refresh)
      (compose-mail, set-variable, choose-completion-string)
      (define-alternatives):
      * lisp/startup.el (site-run-file, tty-handle-args, command-line)
      (command-line-1):
      * lisp/subr.el (noreturn, define-error, add-to-list)
      (read-char-choice, version-to-list):
      * lisp/term/common-win.el (x-handle-xrm-switch)
      (x-handle-name-switch, x-handle-args):
      * lisp/term/x-win.el (x-handle-parent-id, x-handle-smid):
      * lisp/textmodes/reftex-ref.el (reftex-label):
      * lisp/textmodes/reftex-toc.el (reftex-toc-rename-label):
      * lisp/textmodes/two-column.el (2C-split):
      * lisp/tutorial.el (tutorial--describe-nonstandard-key)
      (tutorial--find-changed-keys):
      * lisp/type-break.el (type-break-noninteractive-query):
      * lisp/wdired.el (wdired-do-renames, wdired-do-symlink-changes)
      (wdired-do-perm-changes):
      * lisp/whitespace.el (whitespace-report-region):
      Prefer grave quoting in source-code strings used to generate help
      and diagnostics.
      * lisp/faces.el (face-documentation):
      No need to convert quotes, since the result is a docstring.
      * lisp/info.el (Info-virtual-index-find-node)
      (Info-virtual-index, info-apropos):
      Simplify by generating only curved quotes, since info files are
      typically that ways nowadays anyway.
      * lisp/international/mule-diag.el (list-input-methods):
      Don’t assume text quoting style is curved.
      * lisp/org/org-bibtex.el (org-bibtex-fields):
      Revert my recent changes, going back to the old quoting style.
      6afef3f6
  5. 02 Sep, 2015 1 commit
    • Stefan Monnier's avatar
      Generalize the prefix-command machinery of C-u · 5dc644a6
      Stefan Monnier authored
      * lisp/simple.el (prefix-command-echo-keystrokes-functions)
      (prefix-command-preserve-state-hook): New hooks.
      (internal-echo-keystrokes-prefix): New function.
      (prefix-command--needs-update, prefix-command--last-echo): New vars.
      (prefix-command-update, prefix-command-preserve): New functions.
      (reset-this-command-lengths): New compatibility definition.
      (universal-argument--mode): Call prefix-command-update.
      (universal-argument, universal-argument-more, negative-argument)
      (digit-argument): Call prefix-command-preserve-state.
      
      * src/keyboard.c: Call internal-echo-keystrokes-prefix to build
      the "prefix argument" to echo.
      (this_command_key_count_reset, before_command_key_count)
      (before_command_echo_length): Delete variables.
      (echo_add_key): Always add a space.
      (echo_char): Remove.
      (echo_dash): Don't give up when this_command_key_count is 0, since that
      is now the case after a prefix command.
      (echo_update): New function, extracted from echo_now.
      (echo_now): Use it.
      (add_command_key, read_char, record_menu_key): Remove old disabled code.
      (command_loop_1): Don't refrain from pushing an undo boundary when
      prefix-arg is set.  Remove other prefix-arg special case, now handled
      directly in the prefix commands instead.  But call echo_now if there's
      a prefix state to echo.
      (read_char, record_menu_key): Use echo_update instead of echo_char.
      (read_key_sequence): Use echo_now rather than echo_dash/echo_char.
      (Freset_this_command_lengths): Delete function.
      (syms_of_keyboard): Define Qinternal_echo_keystrokes_prefix.
      (syms_of_keyboard): Don't defsubr Sreset_this_command_lengths.
      
      * lisp/simple.el: Use those new hooks for C-u.
      (universal-argument--description): New function.
      (prefix-command-echo-keystrokes-functions): Use it.
      (universal-argument--preserve): New function.
      (prefix-command-preserve-state-hook): Use it.
      (command-execute): Call prefix-command-update if needed.
      
      * lisp/kmacro.el (kmacro-step-edit-prefix-commands)
      (kmacro-step-edit-prefix-index): Delete variables.
      (kmacro-step-edit-query, kmacro-step-edit-insert): Remove ad-hoc
      support for prefix arg commands.
      (kmacro-step-edit-macro): Don't bind kmacro-step-edit-prefix-index.
      
      * lisp/emulation/cua-base.el (cua--prefix-override-replay)
      (cua--shift-control-prefix): Use prefix-command-preserve-state.
      Remove now unused arg `arg'.
      (cua--prefix-override-handler, cua--prefix-repeat-handler)
      (cua--shift-control-c-prefix, cua--shift-control-x-prefix):
      Update accordingly.
      (cua--prefix-override-timeout): Don't call reset-this-command-lengths
      any more.
      (cua--keep-active, cua-exchange-point-and-mark): Don't set mark-active
      if the mark is not set.
      5dc644a6
  6. 26 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Top-level elisp files respect ‘text-quoting-style’ · 4786618f
      Paul Eggert authored
      In top-level elisp files, use format-message in diagnostic formats,
      so that they follow user preference as per ‘text-quoting-style’
      rather than being hard-coded to quote `like this'.
      * lisp/allout.el (allout-get-configvar-values):
      * lisp/apropos.el (apropos-symbols-internal):
      * lisp/dired-aux.el (dired-do-shell-command, dired-create-files)
      (dired-do-create-files-regexp, dired-create-files-non-directory):
      * lisp/dired-x.el (dired-do-run-mail):
      * lisp/dired.el (dired-log, dired-dnd-handle-local-file):
      * lisp/disp-table.el (standard-display-european):
      * lisp/find-dired.el (find-dired):
      * lisp/forms.el (forms-mode):
      * lisp/ido.el (ido-buffer-internal):
      * lisp/info.el (Info-index-next):
      * lisp/outline.el (outline-invent-heading):
      * lisp/printing.el (pr-ps-outfile-preprint, pr-i-ps-send):
      * lisp/proced.el (proced-log):
      * lisp/ps-print.el (ps-print-preprint, ps-get-size):
      * lisp/recentf.el (recentf-open-files, recentf-save-list):
      * lisp/savehist.el (savehist-save):
      * lisp/server.el (server-ensure-safe-dir):
      * lisp/ses.el (ses-rename-cell):
      * lisp/simple.el (list-processes--refresh):
      * lisp/startup.el (command-line):
      * lisp/strokes.el (strokes-unset-last-stroke)
      (strokes-execute-stroke):
      Use format-message so that quotes are restyled.
      * lisp/cus-edit.el (custom-raised-buttons, customize-browse):
      Don’t quote ‘raised’.
      * lisp/descr-text.el (describe-char):
      * lisp/dirtrack.el (dirtrack-debug-message):
      * lisp/hexl.el (hexl-insert-multibyte-char):
      Apply substitute-command-keys to help string.
      * lisp/wdired.el (wdired-do-renames, wdired-do-symlink-changes)
      (wdired-do-perm-changes):
      Let dired-log do the formatting.
      4786618f
  7. 24 Aug, 2015 1 commit
    • Paul Eggert's avatar
      More-conservative ‘format’ quote restyling · fbb5531f
      Paul Eggert authored
      Instead of restyling curved quotes for every call to ‘format’,
      create a new function ‘format-message’ that does the restyling,
      and using the new function instead of ‘format’ only in contexts
      where this seems appropriate.
      Problem reported by Dmitry Gutov and Andreas Schwab in:
      http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00826.html
      http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00827.html
      * doc/lispref/commands.texi (Using Interactive):
      * doc/lispref/control.texi (Signaling Errors, Signaling Errors):
      * doc/lispref/display.texi (Displaying Messages, Progress):
      * doc/lispref/elisp.texi:
      * doc/lispref/help.texi (Keys in Documentation):
      * doc/lispref/minibuf.texi (Minibuffer Misc):
      * doc/lispref/strings.texi (Formatting Strings):
      * etc/NEWS:
      Document the changes.
      * lisp/abbrev.el (expand-region-abbrevs):
      * lisp/apropos.el (apropos-library):
      * lisp/calc/calc-ext.el (calc-record-message)
      (calc-user-function-list):
      * lisp/calc/calc-help.el (calc-describe-key, calc-full-help):
      * lisp/calc/calc-lang.el (math-read-big-balance):
      * lisp/calc/calc-store.el (calc-edit-variable):
      * lisp/calc/calc-units.el (math-build-units-table-buffer):
      * lisp/calc/calc-yank.el (calc-edit-mode):
      * lisp/calendar/icalendar.el (icalendar-export-region)
      (icalendar--add-diary-entry):
      * lisp/cedet/mode-local.el (mode-local-print-binding)
      (mode-local-describe-bindings-2):
      * lisp/cedet/semantic/complete.el (semantic-completion-message):
      * lisp/cedet/semantic/edit.el (semantic-parse-changes-failed):
      * lisp/cedet/semantic/wisent/comp.el (wisent-log):
      * lisp/cedet/srecode/insert.el (srecode-insert-show-error-report):
      * lisp/descr-text.el (describe-text-properties-1, describe-char):
      * lisp/dframe.el (dframe-message):
      * lisp/dired-aux.el (dired-query):
      * lisp/emacs-lisp/byte-opt.el (byte-compile-log-lap-1):
      * lisp/emacs-lisp/bytecomp.el (byte-compile-log)
      (byte-compile-log-file, byte-compile-warn, byte-compile-form):
      * lisp/emacs-lisp/cconv.el (cconv-convert, cconv--analyze-use)
      (cconv-analyze-form):
      * lisp/emacs-lisp/check-declare.el (check-declare-warn):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
      * lisp/emacs-lisp/cl-macs.el (cl-symbol-macrolet):
      * lisp/emacs-lisp/edebug.el (edebug-format):
      * lisp/emacs-lisp/eieio-core.el (eieio-oref):
      * lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message)
      (eldoc-message):
      * lisp/emacs-lisp/elint.el (elint-file, elint-log):
      * lisp/emacs-lisp/find-func.el (find-function-library):
      * lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning):
      * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p):
      * lisp/emacs-lisp/nadvice.el (advice--make-docstring):
      * lisp/emacs-lisp/package.el (package-compute-transaction)
      (package-install-button-action, package-delete-button-action)
      (package-menu--list-to-prompt):
      * lisp/emacs-lisp/timer.el (timer-event-handler):
      * lisp/emacs-lisp/warnings.el (lwarn, warn):
      * lisp/emulation/viper-cmd.el:
      (viper-toggle-parse-sexp-ignore-comments)
      (viper-kill-buffer, viper-brac-function):
      * lisp/emulation/viper-macs.el (viper-record-kbd-macro):
      * lisp/facemenu.el (facemenu-add-new-face):
      * lisp/faces.el (face-documentation, read-face-name)
      (face-read-string, read-face-font, describe-face):
      * lisp/files.el (find-alternate-file, hack-local-variables)
      (hack-one-local-variable--obsolete, write-file)
      (basic-save-buffer, delete-directory):
      * lisp/format.el (format-write-file, format-find-file)
      (format-insert-file):
      * lisp/help-fns.el (help-fns--key-bindings)
      (help-fns--compiler-macro, help-fns--obsolete)
      (help-fns--interactive-only, describe-function-1)
      (describe-variable):
      * lisp/help.el (describe-mode):
      * lisp/info-xref.el (info-xref-output):
      * lisp/info.el (Info-virtual-index-find-node)
      (Info-virtual-index, info-apropos):
      * lisp/international/kkc.el (kkc-error):
      * lisp/international/mule-cmds.el:
      (select-safe-coding-system-interactively)
      (select-safe-coding-system, describe-input-method):
      * lisp/international/mule-conf.el (code-offset):
      * lisp/international/mule-diag.el (describe-character-set)
      (list-input-methods-1):
      * lisp/international/quail.el (quail-error):
      * lisp/minibuffer.el (minibuffer-message):
      * lisp/mpc.el (mpc--debug):
      * lisp/msb.el (msb--choose-menu):
      * lisp/net/ange-ftp.el (ange-ftp-message):
      * lisp/net/gnutls.el (gnutls-message-maybe):
      * lisp/net/newst-backend.el (newsticker--sentinel-work):
      * lisp/net/newst-treeview.el (newsticker--treeview-load):
      * lisp/net/nsm.el (nsm-query-user):
      * lisp/net/rlogin.el (rlogin):
      * lisp/net/soap-client.el (soap-warning):
      * lisp/net/tramp.el (tramp-debug-message):
      * lisp/nxml/nxml-outln.el (nxml-report-outline-error):
      * lisp/nxml/nxml-parse.el (nxml-parse-error):
      * lisp/nxml/rng-cmpct.el (rng-c-error):
      * lisp/nxml/rng-match.el (rng-compile-error):
      * lisp/nxml/rng-uri.el (rng-uri-error):
      * lisp/obsolete/iswitchb.el (iswitchb-possible-new-buffer):
      * lisp/org/org-ctags.el:
      (org-ctags-ask-rebuild-tags-file-then-find-tag):
      * lisp/proced.el (proced-log):
      * lisp/progmodes/ebnf2ps.el (ebnf-log):
      * lisp/progmodes/flymake.el (flymake-log):
      * lisp/progmodes/vhdl-mode.el (vhdl-warning-when-idle):
      * lisp/replace.el (occur-1):
      * lisp/simple.el (execute-extended-command)
      (undo-outer-limit-truncate, define-alternatives):
      * lisp/startup.el (command-line):
      * lisp/subr.el (error, user-error, add-to-list):
      * lisp/tutorial.el (tutorial--describe-nonstandard-key)
      (tutorial--find-changed-keys):
      * src/callint.c (Fcall_interactively):
      * src/editfns.c (Fmessage, Fmessage_box):
      Restyle the quotes of format strings intended for use as a
      diagnostic, when restyling seems appropriate.
      * lisp/subr.el (format-message): New function.
      * src/doc.c (Finternal__text_restyle): New function.
      (syms_of_doc): Define it.
      fbb5531f
  8. 18 Aug, 2015 2 commits
    • Dmitry Gutov's avatar
      Allow blink-matching-paren to jump off screen · 345284f5
      Dmitry Gutov authored
      * doc/emacs/programs.texi (Matching): Mention the
      `blink-matching-paren' value `jump-offscreen'.
      
      * lisp/simple.el (blink-matching-paren): New possible value.
      (blink-matching-paren-on-screen): Clarify the docstring.
      (blink-matching-open): Handle `jump-offscreen' (bug#21286).
      345284f5
    • Dmitry Gutov's avatar
      Refine the previous change · 9c1e7d5a
      Dmitry Gutov authored
      * lisp/simple.el (blink-matching-open): Use minibuffer-message
      outside of save-excursion (bug#21286).
      9c1e7d5a
  9. 17 Aug, 2015 1 commit
  10. 16 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Use curved quotes in core elisp diagnostics · 9ce1d388
      Paul Eggert authored
      In the core elisp files, use curved quotes in diagnostic formats,
      so that they follow user preference as per ‘text-quoting-style’
      rather than being hard-coded to quote `like this'.
      * lisp/abbrev.el (expand-region-abbrevs):
      * lisp/button.el (button-category-symbol, button-put)
      (make-text-button):
      * lisp/cus-start.el:
      * lisp/custom.el (custom-add-dependencies, custom-check-theme)
      (custom--sort-vars-1, load-theme):
      * lisp/emacs-lisp/byte-run.el (defun, defsubst):
      * lisp/emacs-lisp/cl-generic.el (cl-defgeneric)
      (cl-generic-generalizers):
      * lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning):
      * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p):
      * lisp/emacs-lisp/nadvice.el (advice--make-docstring)
      (advice--make, define-advice):
      * lisp/emacs-lisp/tabulated-list.el (tabulated-list-put-tag):
      * lisp/emacs-lisp/timer.el (timer-event-handler):
      * lisp/env.el (setenv):
      * lisp/facemenu.el (facemenu-add-new-face)
      (facemenu-add-new-color):
      * lisp/faces.el (face-documentation, read-face-name)
      (face-read-string, read-face-font, face-spec-set-match-display)
      (read-color, x-resolve-font-name):
      * lisp/files.el (locate-user-emacs-file, find-alternate-file)
      (set-auto-mode, hack-local-variables)
      (hack-one-local-variable--obsolete)
      (dir-locals-set-directory-class, write-file)
      (basic-save-buffer, delete-directory, copy-directory)
      (recover-session, recover-session-finish, insert-directory)
      (file-modes-char-to-who, file-modes-symbolic-to-number)
      (move-file-to-trash):
      * lisp/font-lock.el (font-lock-fontify-buffer):
      * lisp/format.el (format-write-file, format-find-file)
      (format-insert-file):
      * lisp/frame.el (get-device-terminal, select-frame-by-name):
      * lisp/fringe.el (fringe--check-style):
      * lisp/help.el (describe-minor-mode-from-indicator):
      * lisp/image.el (image-type):
      * lisp/international/fontset.el (x-must-resolve-font-name):
      * lisp/international/mule-cmds.el (prefer-coding-system)
      (select-safe-coding-system-interactively)
      (select-safe-coding-system, activate-input-method)
      (toggle-input-method, describe-current-input-method):
      * lisp/international/mule-conf.el (code-offset):
      * lisp/mouse.el (minor-mode-menu-from-indicator):
      * lisp/replace.el (query-replace-read-from)
      (occur-after-change-function, occur-1):
      * lisp/scroll-bar.el (scroll-bar-columns):
      * lisp/simple.el (execute-extended-command)
      (undo-outer-limit-truncate, compose-mail, set-variable)
      (choose-completion-string, define-alternatives):
      * lisp/startup.el (site-run-file, tty-handle-args, )
      (command-line, command-line-1):
      * lisp/subr.el (noreturn, define-error, add-to-list)
      (read-char-choice):
      * lisp/term/common-win.el (x-handle-xrm-switch)
      (x-handle-name-switch, x-handle-args):
      * lisp/term/x-win.el (x-handle-parent-id, x-handle-smid):
      Use curved quotes in diagnostics.
      * lisp/international/mule.el (find-auto-coding):
      Use " to quote in a diagnostic, to be consistent with the rest of
      this file.
      9ce1d388
  11. 09 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Remove no-op calls to substitute-command-keys · 5091586f
      Paul Eggert authored
      * lisp/org/org-src.el (org-edit-src-code)
      (org-edit-fixed-width-region):
      * lisp/simple.el (completion-setup-function):
      Remove calls to substitute-command-keys that always just return
      their argument.
      5091586f
  12. 04 Aug, 2015 1 commit
  13. 31 Jul, 2015 1 commit
    • Paul Eggert's avatar
      Don't overflow if computing approximate percentage · eb0f65b4
      Paul Eggert authored
      * lisp/align.el (align-region):
      * lisp/cedet/semantic.el (semantic-repeat-parse-whole-stream):
      * lisp/cedet/semantic/wisent.el (wisent-parse-region):
      * lisp/cus-edit.el (custom-buffer-create-internal):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-interactive-ispell-loop)
      (checkdoc-message-interactive-ispell-loop, checkdoc-next-error)
      (checkdoc-next-message-error):
      * lisp/emacs-lisp/eieio-opt.el (eieio-display-method-list):
      * lisp/epa.el (epa-progress-callback-function):
      * lisp/erc/erc-dcc.el (erc-dcc-do-LIST-command):
      * lisp/ffap.el (ffap-menu-rescan):
      * lisp/gnus/nnbabyl.el (nnbabyl-retrieve-headers):
      * lisp/gnus/nndiary.el (nndiary-retrieve-headers):
      * lisp/gnus/nneething.el (nneething-retrieve-headers):
      * lisp/gnus/nnmbox.el (nnmbox-retrieve-headers):
      * lisp/gnus/nnmh.el (nnmh-retrieve-headers):
      * lisp/gnus/nnml.el (nnml-retrieve-headers):
      * lisp/gnus/nnspool.el (nnspool-retrieve-headers):
      * lisp/gnus/nntp.el (nntp-retrieve-headers)
      (nntp-retrieve-articles):
      * lisp/imenu.el (imenu--relative-position):
      * lisp/international/ja-dic-cnv.el (skkdic-collect-okuri-nasi)
      (skkdic-convert-okuri-nasi):
      * lisp/net/ange-ftp.el (ange-ftp-process-handle-hash):
      * lisp/nxml/rng-valid.el (rng-compute-mode-line-string):
      * lisp/org/org-list.el (org-update-checkbox-count):
      * lisp/org/org.el (org-table-map-tables)
      (org-update-parent-todo-statistics):
      * lisp/play/decipher.el (decipher-insert-frequency-counts)
      (decipher-analyze-buffer):
      * lisp/profiler.el (profiler-format-percent):
      * lisp/progmodes/cc-cmds.el (c-progress-update):
      * lisp/progmodes/cpp.el (cpp-highlight-buffer):
      * lisp/progmodes/idlwave.el (idlwave-convert-xml-system-routine-info)
      (idlwave-list-load-path-shadows):
      * lisp/progmodes/opascal.el (opascal-step-progress):
      * lisp/progmodes/vhdl-mode.el (vhdl-update-progress-info)
      (vhdl-scan-directory-contents):
      * lisp/textmodes/bibtex.el (bibtex-progress-message):
      * lisp/textmodes/flyspell.el (flyspell-small-region)
      (flyspell-external-point-words):
      * lisp/textmodes/table.el (table-recognize):
      Prefer (floor (* 100.0 NUMERATOR) DENOMINATOR) when calculating
      progress-report percentages and the like.  This avoids problems
      if (* 100 NUMERATOR) would overflow.
      * lisp/gnus/gnus-registry.el (gnus-registry-import-eld):
      * lisp/gnus/registry.el (registry-reindex):
      Use (* 100.0 ...) rather than (* 100 ...) to avoid int overflow issues.
      * lisp/descr-text.el (describe-char):
      * lisp/org/org-colview.el (org-nofm-to-completion):
      * lisp/ps-print.el (ps-plot):
      * lisp/simple.el (what-cursor-position):
      Prefer (round (* 100.0 NUMERATOR) DENOMINATOR) to a
      more-complicated and less-accurate approximation.
      eb0f65b4
  14. 06 Jul, 2015 3 commits
  15. 22 Jun, 2015 1 commit
  16. 17 Jun, 2015 1 commit
    • Glenn Morris's avatar
      Address some check-declare warnings. · fb77502f
      Glenn Morris authored
      * lisp/simple.el (tabulated-list-print):
      * lisp/progmodes/elisp-mode.el (xref-collect-matches):
      * lisp/term/ns-win.el (ns-selection-owner-p, ns-selection-exists-p)
      (ns-get-selection): Update declarations.
      fb77502f
  17. 11 Jun, 2015 1 commit
  18. 10 Jun, 2015 2 commits
  19. 23 May, 2015 1 commit
    • Stefan Monnier's avatar
      Replace gui-method macros with cl-generic with &context · 919281dd
      Stefan Monnier authored
      * lisp/frame.el (gui-method--name, gui-method, gui-method-define)
      (gui-method-declare, gui-call): Remove.
      (frame-creation-function): Use cl-defgeneric.
      (make-frame): Adjust callers.
      
      * lisp/menu-bar.el (menu-bar-edit-menu):
      Use gui-backend-selection-exists-p.
      
      * lisp/select.el (x-get-clipboard): Use gui-backend-get-selection.
      (gui-backend-get-selection): New cl-generic to replace
      gui-get-selection method.
      (gui-backend-set-selection): New cl-generic to replace
      gui-set-selection method.
      (gui-selection-owner-p): New cl-generic to replace
      gui-selection-owner-p method.
      (gui-backend-selection-exists-p): New cl-generic to replace
      gui-selection-exists-p method.  Adjust all callers.
      
      * lisp/server.el (server-create-window-system-frame): Don't ignore
      window-system spec even when unsupported.
      
      * lisp/simple.el (deactivate-mark): Use new gui-backend-* functions.
      
      * lisp/startup.el (handle-args-function, window-system-initialization):
      Use cl-defgeneric.
      (command-line): Adjust calls accordingly.
      
      * lisp/term/ns-win.el (ns-window-system-initialization): Turn into
      a window-system-initialization method.
      (handle-args-function, frame-creation-function): Use cl-defmethod.
      (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
      (gui-get-selection): Use cl-defmethod on the new functions instead.
      
      * lisp/term/pc-win.el (w16-get-selection-value): Turn into
      a gui-backend-get-selection method.
      (gui-selection-exists-p, gui-selection-owner-p, gui-set-selection):
      Use cl-defmethod on the new functions instead.
      (msdos-window-system-initialization): Turn into
      a window-system-initialization method.
      (frame-creation-function, handle-args-function): Use cl-defmethod.
      
      * lisp/term/w32-win.el (w32-window-system-initialization): Turn into
      a window-system-initialization method.
      (handle-args-function, frame-creation-function): Use cl-defmethod.
      (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
      (gui-get-selection): Use cl-defmethod on the new functions instead.
      
      * lisp/term/x-win.el (x-window-system-initialization): Turn into
      a window-system-initialization method.
      (handle-args-function, frame-creation-function): Use cl-defmethod.
      (gui-set-selection, gui-selection-owner-p, gui-selection-exists-p)
      (gui-get-selection): Use cl-defmethod on the new functions instead.
      
      * lisp/term/xterm.el (xterm--set-selection): Turn into
      a gui-backend-set-selection method.
      
      * src/nsselect.m (Fns_selection_exists_p): Remove unused arg `terminal'.
      (Fns_selection_owner_p): Remove unused arg `terminal'.
      (Fns_get_selection): Remove unused args `time_stamp' and `terminal'.
      919281dd
  20. 21 May, 2015 1 commit
  21. 09 May, 2015 1 commit
    • Eli Zaretskii's avatar
      Avoid infloop in ERC · d2c7e14a
      Eli Zaretskii authored
      * lisp/simple.el (line-move-to-column): Ignore field boundaries
      while computing line beginning position.  (Bug#20498)
      d2c7e14a
  22. 04 May, 2015 2 commits
    • Daniel Colascione's avatar
      Fix previous commit · 1ddb81a6
      Daniel Colascione authored
      1ddb81a6
    • Daniel Colascione's avatar
      Add `save-mark-and-excursion', which has the old `save-excursion' behavior · 255a011f
      Daniel Colascione authored
      * doc/lispref/positions.texi (Excursions): Document
      `save-mark-and-excursion'.
      
      * lisp/font-lock.el (font-lock-fontify-block): Use
      `save-mark-and-excursion' instead of `save-excursion', restoring
      Emacs 24 behavior.
      
      * lisp/simple.el (save-mark-and-excursion--save)
      (save-mark-and-excursion--restore): New functions.
      (save-mark-and-excursion): New user macro.
      
      * src/editfns.c (Fsave_excursion): Mention
      `save-mark-and-excursion' in `save-excursion' documentation.
      255a011f
  23. 01 May, 2015 1 commit
  24. 13 Apr, 2015 1 commit
    • Stefan Monnier's avatar
      Deprecate `intangible' and `point-entered' properties · 84e0b7da
      Stefan Monnier authored
      * lisp/emacs-lisp/cursor-sensor.el: New file.
      
      * lisp/simple.el (pre-redisplay-functions): New hook.
      (redisplay--pre-redisplay-functions): New function.
      (pre-redisplay-function): Use it.
      (minibuffer-avoid-prompt): Mark obsolete.
      (redisplay--update-region-highlight): Adapt it to work as a function on
      pre-redisplay-functions.
      
      * lisp/cus-start.el (minibuffer-prompt-properties--setter): New fun.
      (minibuffer-prompt-properties): Use it.  Use cursor-intangible rather
      than point-entered to make the prompt intangible.
      
      * lisp/forms.el: Move `provide' calls to the end.
      (forms-mode): Don't use `run-hooks' on a local var.
      (forms--make-format, forms--make-format-elt-using-text-properties):
      Use cursor-intangible rather than `intangible'.
      (forms-mode): Enable cursor-intangible-mode.
      
      * lisp/isearch.el (isearch-mode): Use defvar-local.
      (cursor-sensor-inhibit): Declare.
      (isearch-mode): Set cursor-sensor-inhibit.
      (isearch-done): Set it back.
      (isearch-open-overlay-temporary, isearch-open-necessary-overlays)
      (isearch-close-unnecessary-overlays): Don't bother with `intangible'
      any more.
      
      * lisp/ses.el (ses-localvars): Remove `mode-line-process'.
      (ses-sym-rowcol, ses-cell-value, ses-col-width, ses-col-printer):
      Add Edebug spec.
      (ses-goto-print, ses-print-cell, ses-adjust-print-width)
      (ses-goto-data, ses-setup, ses-copy-region): Don't let-bind
      inhibit-point-motion-hooks any more.
      (ses--cell-at-pos, ses--curcell): New functions, extracted from
      ses-set-curcell.
      (ses-set-curcell): Use them.
      (ses-print-cell, ses-setup): Use cursor-intangible instead of
      `intangible'.  Make sure cursor-intangible isn't sticky at BOB.
      (ses-print-cell-new-width, ses-reprint-all, ses-recalculate-all):
      Use ses--cell-at-pos.
      (ses--mode-line-process, ses--cursor-sensor-highlight): New functions,
      extracted from ses-command-hook.  Make them work with multiple windows
      displaying the same buffer.
      (ses-mode): Use them via mode-line-process and pre-redisplay-functions.
      Enable cursor-intangible-mode.
      (ses-command-hook): Remove cell highlight and mode-line update code.
      (ses-forward-or-insert, ses-copy-region-helper, ses-sort-column):
      Update for new name of text-property holding the cell name.
      (ses-rename-cell): Don't mess with mode-line-process.
      
      * lisp/erc/erc-stamp.el (erc-add-timestamp): Use the new
      cursor-sensor-functions property instead of point-entered.
      (erc-insert-timestamp-right, erc-format-timestamp):
      Use cursor-intangible rather than `intangible'.
      (erc-munge-invisibility-spec): Use add-to-invisibility-spec and
      remove-from-invisibility-spec.  Enable cursor-intangible-mode and
      cursor-sensor-mode if needed.
      (erc-echo-timestamp): Adapt to calling convention of
      cursor-sensor-functions.
      (erc-insert-timestamp-right): Remove unused vars `current-window' and
      `indent'.
      
      * lisp/gnus/gnus-group.el (gnus-tmp-*): Declare.
      (gnus-update-group-mark-positions): Remove unused `topic' var.
      (gnus-group-insert-group-line): Remove unused var `header'.
      (gnus-group--setup-tool-bar-update): New function.
      (gnus-group-insert-group-line): Use it.
      (gnus-group-update-eval-form): Declare local
      dynamically-bound variables.
      (gnus-group-unsubscribe-group): Use \` and \' to match string bounds.
      
      * lisp/gnus/gnus-topic.el (gnus-topic-jump-to-topic)
      (gnus-group-prepare-topics, gnus-topic-update-topic)
      (gnus-topic-change-level, gnus-topic-catchup-articles)
      (gnus-topic-remove-group, gnus-topic-delete, gnus-topic-indent):
      Use inhibit-read-only.
      (gnus-topic-prepare-topic): Use gnus-group--setup-tool-bar-update.
      (gnus-topic-mode): Use define-minor-mode and derived-mode-p.
      
      * lisp/textmodes/reftex-index.el (reftex-display-index):
      Use cursor-intangible-mode if available.
      (reftex-index-post-command-hook): Check cursor-intangible.
      
      * lisp/textmodes/reftex-toc.el (reftex-toc):
      Use cursor-intangible-mode if available.
      (reftex-toc-recenter, reftex-toc-post-command-hook):
      Check cursor-intangible.
      
      * lisp/textmodes/sgml-mode.el: Use lexical-binding.
      (sgml-tag): Use cursor-sensor-functions instead of point-entered.
      (sgml-tags-invisible): Use with-silent-modifications and
      inhibit-read-only.  Enable cursor-sensor-mode.
      (sgml-cursor-sensor): Rename from sgml-point-entered and adjust to
      calling convention of cursor-sensor-functions.
      
      * lisp/textmodes/table.el (table-cell-map-hook, table-load-hook)
      (table-point-entered-cell-hook, table-point-left-cell-hook):
      Don't autoload.
      (table-cell-entered-state): Remove var.
      (table--put-cell-point-entered/left-property)
      (table--remove-cell-properties):
      Use cursor-sensor-functions rather than point-entered/left.
      (table--point-entered/left-cell-function): Merge
      table--point-entered-cell-function and table--point-left-cell-function
      and adjust to calling convention of cursor-sensor-functions.
      84e0b7da
  25. 22 Mar, 2015 1 commit
    • Jan D's avatar
      Fixes: debbugs:18939 · c3c4b758
      Jan D authored
      * simple.el (deactivate-mark): Only modify PRIMARY if we own PRIMARY.
      c3c4b758
  26. 21 Mar, 2015 1 commit
    • Titus von der Malsburg's avatar
      Add new functions for computing default font dimensions · 4a50af93
      Titus von der Malsburg authored
       lisp/window.el (window-font-width, window-font-height)
       (window-max-chars-per-line): New functions.
       lisp/simple.el (default-font-height): Doc fix.
       (default-font-width): New function.
      
       etc/NEWS: Mention `default-font-width', `window-font-height',
       `window-font-width', and `window-max-chars-per-line'.
      4a50af93
  27. 12 Mar, 2015 1 commit
    • Juri Linkov's avatar
      Support goal column in multi-line minibuffer · b91eafe3
      Juri Linkov authored
      * lisp/simple.el (next-line-or-history-element)
      (previous-line-or-history-element): Remember the goal column of
      possibly multi-line input, and restore it afterwards.
      
      Fixes: debbugs:19824
      b91eafe3
  28. 11 Mar, 2015 1 commit
  29. 25 Feb, 2015 1 commit
  30. 18 Feb, 2015 1 commit
    • Kelly Dean's avatar
      Use user-error where error is inappropriate · 72f7eded
      Kelly Dean authored
      * help-mode.el (help-go-back, help-go-forward, help-follow):
      * simple.el (yank-pop, pop-to-mark-command, exchange-point-and-mark):
      * winner.el (winner-redo):
      * windmove.el (windmove-do-window-select):
      * register.el (jump-to-register, increment-register, insert-register)
      (append-to-register, prepend-to-register):
      * files.el (find-alternate-file, abort-if-file-too-large, write-file)
      (set-visited-file-name):
      * emacs-lisp/lisp.el (kill-backward-up-list):
      Use user-error instead of error. (Bug#14480)
      72f7eded
  31. 13 Feb, 2015 1 commit
  32. 20 Jan, 2015 1 commit
    • Michal Nazarewicz's avatar
      eldoc: modify `eldoc-documentation-function' using `add-function' · fd020a29
      Michal Nazarewicz authored
      * lisp/emacs-lisp/eldoc.el (eldoc-documentation-function): Describe how
      major modes should use `add-function' to alter value of the variable.
      
      * lisp/hexl.el (hexl-mode): Set `eldoc-documentation-function' using
      `add-function' so the default value is always used.
      * lisp/ielm.el (inferior-emacs-lisp-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/progmodes/cfengine.el (cfengine3-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/progmodes/elisp-mode (emacs-lisp-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/progmodes/octave.el (octave-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/progmodes/python.el (python-mode): Set
      `eldoc-documentation-function' using `add-function' so the default
      value is always used.
      * lisp/simple.el (read--expression): Set `eldoc-documentation-function'
      using `add-function' so the default value is always used.
      fd020a29
  33. 09 Jan, 2015 1 commit
    • Eli Zaretskii's avatar
      Fix line-move-visual's following of column in R2L lines (backport from trunk). · 7c0bfa1d
      Eli Zaretskii authored
       src/simple.el (line-move-visual): When converting X pixel coordinate
       to temporary-goal-column, adjust the value for right-to-left
       screen lines.  This fixes vertical-motion, next/prev-line, etc.
      
       src/dispnew.c (buffer_posn_from_coords): Fix the value of the column
       returned for right-to-left screen lines.  (Before the change on
       2014-12-30, the incorrectly-computed X pixel coordinate concealed
       this bug.)
      
      (cherry picked from commit 5fbd17e3)
      
      Conflicts:
      	lisp/simple.el
      7c0bfa1d
  34. 08 Jan, 2015 1 commit
    • Eli Zaretskii's avatar
      Fix line-move-visual's following of column in R2L lines. · 5fbd17e3
      Eli Zaretskii authored
       src/simple.el (line-move-visual): When converting X pixel coordinate
       to temporary-goal-column, adjust the value for right-to-left
       screen lines.  This fixes vertical-motion, next/prev-line, etc.
      
       src/dispnew.c (buffer_posn_from_coords): Fix the value of the column
       returned for right-to-left screen lines.  (Before the change on
       2014-12-30, the incorrectly-computed X pixel coordinate concealed
       this bug.)
      5fbd17e3