1. 08 Apr, 2017 1 commit
    • Glenn Morris's avatar
      Remove references to OS/2 in code, doc, and comments · bca1fde8
      Glenn Morris authored
      * lisp/gnus/nnheader.el (nnheader-read-timeout)
      (nnheader-file-name-translation-alist): Remove OS/2 case, and simplify.
      * lisp/emulation/viper-util.el (viper-color-defined-p):
      * lisp/net/pop3.el (pop3-read-timeout):
      * lisp/net/imap.el (imap-read-timeout):
      * lisp/url/url-privacy.el (url-setup-privacy-info): Remove OS/2 case.
      * lisp/emulation/viper-ex.el (viper-glob-function):
      * lisp/vc/ediff-util.el (ediff-submit-report): Doc fix.
      * lisp/cus-edit.el (custom-display): Remove "pm" (OS/2).
      * doc/emacs/msdos-xtra.texi (MS-DOS):
      * doc/misc/gnus.texi (Various Various):
      * doc/misc/viper.texi (Rudimentary Changes): Remove mentions of OS/2.
      ; * lisp/url/url.el, lisp/url/url-vars.el:
      ; * lisp/progmodes/cperl-mode.el: Remove old comments.
      bca1fde8
  2. 12 Feb, 2017 1 commit
    • Mark Oteiza's avatar
      Nix some useless uses of looking-at, looking-back · 91478f46
      Mark Oteiza authored
      * lisp/allout.el (allout-kill-topic):
      (allout-next-topic-pending-encryption):
      * lisp/bookmark.el (bookmark-kill-line):
      * lisp/cus-edit.el (custom-save-variables, custom-save-faces):
      * lisp/cus-theme.el (custom-theme-write-variables):
      (custom-theme-write-faces):
      * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads):
      * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-interactive-loop):
      (checkdoc-interactive-ispell-loop):
      (checkdoc-message-interactive-ispell-loop, checkdoc-this-string-valid):
      (checkdoc-this-string-valid-engine):
      * lisp/emacs-lisp/elint.el (elint-get-top-forms):
      * lisp/emulation/viper-cmd.el (viper-backward-indent):
      * lisp/image-dired.el (image-dired-delete-char):
      * lisp/simple.el (kill-visual-line): Replace instances of looking-at,
      looking-back with char comparisons using following-char, preceding-char.
      91478f46
  3. 01 Jan, 2017 1 commit
  4. 07 Dec, 2016 1 commit
  5. 08 Oct, 2016 1 commit
    • Eli Zaretskii's avatar
      Deprecate 'wp' group and introduce a new group 'text' · 67d14c82
      Eli Zaretskii authored
      * lisp/textmodes/tildify.el (tildify):
      * lisp/textmodes/text-mode.el (text-mode-hook):
      * lisp/textmodes/table.el (table):
      * lisp/textmodes/rst.el (rst):
      * lisp/textmodes/refer.el (refer):
      * lisp/textmodes/refbib.el (refbib):
      * lisp/textmodes/picture.el (picture):
      * lisp/textmodes/nroff-mode.el (nroff):
      * lisp/textmodes/enriched.el (enriched):
      * lisp/textmodes/bib-mode.el (bib):
      * lisp/progmodes/ebnf2ps.el (ebnf2ps):
      * lisp/nxml/rng-valid.el (relax-ng):
      * lisp/view.el (view):
      * lisp/ps-print.el (ps-print):
      * lisp/printing.el (printing):
      * lisp/outline.el (outlines):
      * lisp/lpr.el (lpr):
      * lisp/delim-col.el (columns): Use 'text' group instead of 'wp'.
      * lisp/cus-edit.el (wp): Remove the "text" tag.
      (text): New defgroup, inherits from the deprecated 'wp'.
      (outlines): Remove, in favor of the definition in outline.el.
      (tex): Inherit from 'text'.
      Suggested by Drew Adams <drew.adams@oracle.com>.  (Bug#24549)
      67d14c82
  6. 14 Aug, 2016 1 commit
    • Paul Eggert's avatar
      Minor text-quoting-style fixes · 66ae4cad
      Paul Eggert authored
      * lisp/cus-edit.el (custom-buffer-create-internal):
      * lisp/recentf.el (recentf-edit-list):
      Follow text-quoting-style preference when quoting in UI strings.
      * src/doc.c (Fsubstitute_command_keys): Don’t say that curved
      quotes are substituted for, as this is no longer true.
      66ae4cad
  7. 13 Jul, 2016 1 commit
  8. 25 Jun, 2016 1 commit
    • Noam Postavsky's avatar
      Update docs for `customize-mode' · f2536958
      Noam Postavsky authored
      * lisp/cus-edit.el (customize-mode): This function works with both major
      and minor modes, make docstring and prompt reflect that (Bug #23649).
      
      * doc/lispref/modes.texi (Derived Modes): Remove note about
      customize-mode being experimental; it has been around since Emacs
      22 (Bug #11299).
      Co-authored-by: default avatarDrew Adams <drew.adams@oracle.com>
      f2536958
  9. 01 May, 2016 1 commit
  10. 30 Apr, 2016 1 commit
  11. 28 Apr, 2016 2 commits
  12. 01 Jan, 2016 1 commit
  13. 14 Nov, 2015 1 commit
  14. 03 Sep, 2015 1 commit
    • Paul Eggert's avatar
      Fix some more docstring etc. quoting problems · 26bd978d
      Paul Eggert authored
      Mostly these fixes prevent the transliteration of apostrophes
      that should stay apostrophes.  Also, prefer curved quotes in
      Bahá’í proper names, as that’s the preferred Bahá’í style and
      these names are chock-full of non-ASCII characters anyway.
      * lisp/emacs-lisp/eieio-core.el (eieio-defclass-autoload)
      (eieio-defclass-internal):
      * lisp/emacs-lisp/eieio.el (defclass):
      * lisp/hi-lock.el (hi-lock-mode):
      Don’t transliterate Lisp apostrophes when generating a
      doc string or diagnostic.
      * lisp/international/mule-diag.el (list-coding-systems-1):
      * lisp/international/ogonek.el (ogonek-jak, ogonek-how):
      * lisp/mail/sendmail.el (sendmail-query-user-about-smtp):
      * lisp/vc/ediff-mult.el (ediff-redraw-registry-buffer):
      * lisp/vc/ediff-ptch.el (ediff-fixup-patch-map):
      Substitute quotes before putting them in the help buffer.
      26bd978d
  15. 02 Sep, 2015 1 commit
    • Paul Eggert's avatar
      Escape ` and ' in doc · 19532d14
      Paul Eggert authored
      Escape apostrophes and grave accents in docstrings if they are
      are supposed to stand for themselves and are not quotes.  Remove
      apostrophes from docstring examples like ‘'(calendar-nth-named-day
      -1 0 10 year)’ that confuse source code with data.  Do some other
      minor docstring fixups as well, e.g., insert a missing close
      quote.
      19532d14
  16. 26 Aug, 2015 2 commits
    • 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
    • Paul Eggert's avatar
      Fix customization of text-quoting-style · bcfe2e0e
      Paul Eggert authored
      * lisp/cus-edit.el (custom-guess-type, custom-variable-documentation):
      * lisp/wid-edit.el (widget-docstring):
      Get raw docstring here since it’s cooked later and should not be
      cooked twice.
      * lisp/cus-edit.el (custom-group-value-create):
      Cook the docstring before inserting it.
      * lisp/cus-start.el (text-quoting-style): Quote the customization
      docstrings according to the new rules.  Give curved examples.
      bcfe2e0e
  17. 02 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Substitute some customization etc. doc strings · bd3b426e
      Paul Eggert authored
      These changes apply substitute-command-keys to some
      doc strings that were going through untranslated
      when creating customization or other widgets.
      * lisp/cus-edit.el (custom-group-value-create):
      * lisp/wid-edit.el (widget-default-create):
      (widget-push-button-value-create):
      Treat the widget tag as a doc string.
      * lisp/emacs-lisp/cl-extra.el (cl--describe-class-slot):
      Treat the :documentation value as a doc string.
      * lisp/wid-edit.el (widget-choose):
      Treat the choice names as doc strings.
      (widget-default-create): Treat the :doc value as a doc string.
      (widget-toggle-value-create): Treat the :on and :off values
      as doc strings.
      (widget-documentation-string-value-create):
      Substitute the doc string.
      bd3b426e
  18. 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
  19. 21 May, 2015 1 commit
  20. 22 Apr, 2015 1 commit
  21. 21 Apr, 2015 1 commit
    • Stefan Monnier's avatar
      Fix byte-compiler warnings about looking-back. · c9a75a40
      Stefan Monnier authored
      * lisp/vc/log-view.el (log-view-end-of-defun-1):
      * lisp/textmodes/tex-mode.el (latex-forward-sexp-1):
      * lisp/textmodes/reftex-ref.el (reftex-goto-label):
      * lisp/textmodes/bibtex.el (bibtex-insert-kill):
      * lisp/progmodes/sh-script.el (sh--maybe-here-document):
      * lisp/progmodes/ruby-mode.el (ruby-end-of-defun):
      * lisp/progmodes/ada-mode.el (ada-in-numeric-literal-p):
      * lisp/org/org.el (org-insert-heading, org-sort-entries):
      * lisp/org/org-mouse.el (org-mouse-end-headline)
      (org-mouse-context-menu):
      * lisp/org/org-clock.el (org-clock-cancel):
      * lisp/man.el (Man-default-man-entry):
      * lisp/mail/rmail.el (rmail-get-new-mail, rmail-insert-inbox-text)
      (rmail-ensure-blank-line):
      * lisp/mail/footnote.el (Footnote-delete-footnote):
      * lisp/mail/emacsbug.el (report-emacs-bug):
      * lisp/info.el (Info-follow-reference, Info-fontify-node):
      * lisp/info-look.el (info-lookup-guess-custom-symbol):
      * lisp/help-fns.el (help-fns--key-bindings):
      * lisp/files.el (hack-local-variables):
      * lisp/emulation/viper-ex.el (viper-get-ex-token, ex-cmd-complete)
      (viper-get-ex-pat, ex-expand-filsyms, viper-get-ex-file)
      (viper-complete-filename-or-exit):
      * lisp/emulation/viper-cmd.el (viper-backward-indent):
      * lisp/emacs-lisp/lisp-mode.el (calculate-lisp-indent):
      * lisp/emacs-lisp/elint.el (elint-get-top-forms):
      * lisp/cus-edit.el (custom-face-edit-value-create):
      * lisp/calendar/todo-mode.el (todo-set-item-priority)
      (todo-filter-items-1, todo-convert-legacy-files)
      (todo-prefix-overlays): Add explicit second arg to looking-back.
      c9a75a40
  22. 12 Apr, 2015 1 commit
  23. 01 Jan, 2015 2 commits
  24. 14 Dec, 2014 1 commit
    • Cameron Desautels's avatar
      Provide custom-prompt-customize-unsaved-options. · 4c4f970c
      Cameron Desautels authored
      * doc/emacs/custom.texi (Saving Customizations): Mention
      `custom-prompt-customize-unsaved-options'.
      
      * etc/NEWS: Mention `custom-prompt-customize-unsaved-options'.
      
      * etc/TODO: Remove its entry.
      
      * lisp/cus-edit.el (custom-prompt-customize-unsaved-options): Add a
      mechanism for prompting user about unsaved customizations.
      (Bug#19328)
      4c4f970c
  25. 15 Oct, 2014 1 commit
  26. 29 Jun, 2014 1 commit
    • Glenn Morris's avatar
      Doc and comment fixes re "online" help · a27e8c78
      Glenn Morris authored
      * doc/emacs/help.texi (Misc Help):
      * doc/emacs/trouble.texi (Checklist):
      * doc/lispintro/emacs-lisp-intro.texi (Note for Novices, Finding More)
      (Conclusion):
      * doc/lispref/help.texi (Help Functions):
      * doc/misc/info.texi, doc/misc/mh-e.texi:
      * etc/refcards/calccard.tex (section{Getting Help}):
      * lisp/cus-edit.el (help):
      * lisp/finder.el (finder-known-keywords):
      * lisp/help.el (help-for-help-internal):
      * lisp/vc/ediff-mult.el (ediff-meta-buffer-verbose-message)
      (ediff-redraw-registry-buffer):
      * lisp/vc/ediff-ptch.el (ediff-patch-file-internal):
      Doc fixes re "online" help.
      
      Fixes: debbugs:17803
      a27e8c78
  27. 10 Feb, 2014 1 commit
  28. 09 Feb, 2014 3 commits
  29. 01 Jan, 2014 1 commit
  30. 18 Dec, 2013 1 commit
  31. 29 Aug, 2013 1 commit
    • Stefan Monnier's avatar
      Misc changes to reduce use of `(lambda...); and other cleanups. · 40f7e0e8
      Stefan Monnier authored
      * lisp/cus-edit.el: Use lexical-binding.
      (customize-push-and-save, customize-apropos)
      (custom-buffer-create-internal): Use closures.
      * lisp/progmodes/bat-mode.el (bat-mode-syntax-table): "..." are strings.
      * lisp/progmodes/ada-xref.el: Use setq.
      * lisp/net/tramp.el (with-tramp-progress-reporter): Avoid setq.
      * lisp/dframe.el: Use lexical-binding.
      (dframe-frame-mode): Fix calling convention for hooks.  Use a closure.
      * lisp/speedbar.el (speedbar-frame-mode): Adjust call accordingly.
      * lisp/descr-text.el: Use lexical-binding.
      (describe-text-widget, describe-text-sexp, describe-property-list):
      Use closures.
      * lisp/comint.el (comint-history-isearch-push-state): Use a closure.
      * lisp/calculator.el: Use lexical-binding.
      (calculator-number-to-string): Make it work with lexical-binding.
      (calculator-funcall): Same and use cl-letf.
      40f7e0e8
  32. 20 Jun, 2013 1 commit
    • Juanma Barranquero's avatar
      lisp/(cus-edit,custom).el: Fix typos; use setq-local, string-match-p, looking-at-p. · d5b27848
      Juanma Barranquero authored
      * lisp/cus-edit.el:
        (custom-commands): Fix typos.
        (custom-display): Fix tooltip text.
        (custom-magic-alist, custom-filter-face-spec, custom-group-members):
        Fix typos in docstrings.
        (custom--initialize-widget-variables, Custom-mode): Use `setq-local'.
        (custom-unlispify-menu-entry, custom-magic-value-create)
        (custom-add-see-also, custom-group-value-create): Use ?\s.
        (custom-guess-type, customize-apropos, editable-field)
        (custom-face-value-create): Use `string-match-p'.
        (custom-save-variables, custom-save-faces): Use `looking-at-p'.
      
      * lisp/custom.el (custom-load-symbol): Use `string-match-p'.
      d5b27848
  33. 08 May, 2013 1 commit
  34. 13 Apr, 2013 1 commit
  35. 12 Feb, 2013 1 commit
    • Glenn Morris's avatar
      Make S-SPC scroll in the opposite direction to SPC · 958614cf
      Glenn Morris authored
      * lisp/calc/calc-graph.el (calc-graph-show-dumb):
      * lisp/calendar/calendar.el (calendar-mode-map):
      * lisp/cus-edit.el (custom-mode-map):
      * lisp/ehelp.el (electric-help-map):
      * lisp/emulation/vip.el (vip-mode-map):
      * lisp/epa.el (epa-key-list-mode-map):
      * lisp/info.el (Info-mode-map):
      * lisp/mail/rmail.el (rmail-mode-map):
      * lisp/mail/rmailsum.el (rmail-summary-mode-map):
      * lisp/man.el (Man-mode-map):
      * lisp/net/newst-plainview.el (newsticker-mode-map):
      * lisp/progmodes/cpp.el (cpp-edit-mode-map):
      * lisp/progmodes/grep.el (grep-mode-map):
      * lisp/progmodes/idlw-help.el (idlwave-help-mode-map):
      * lisp/simple.el (special-mode-map):
      * lisp/startup.el (splash-screen-keymap):
      * lisp/view.el (view-mode-map):
      Make S-SPC scroll in the opposite sense to SPC.
      
      Fixes: debbugs:2145
      958614cf