all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior
@ 2013-09-17  8:25 Constantine Vetoshev
  2013-09-17 18:04 ` Jan Djärv
  2013-09-18 17:24 ` Stefan Monnier
  0 siblings, 2 replies; 13+ messages in thread
From: Constantine Vetoshev @ 2013-09-17  8:25 UTC (permalink / raw)
  To: 15402

[-- Attachment #1: Type: text/plain, Size: 1135 bytes --]

When Emacs is launched from its icon in the Mac OS Dock, all modes
derived from term (such as M-x ansi-term) exhibit strange behavior:
printing a long line which contains a Unicode character causes line
truncation and generally puts the terminal in a bad state. Resetting the
terminal fixes the problem.

The problem does NOT occur when Emacs is launched from the command
line, i.e., the terminal modes all work correctly if Emacs is invoked by
running the following at a (non-Emacs) shell:
"/Applications/Emacs.app/Contents/MacOS/Emacs"

The problem does not seem to be related to any Emacs initialization code
in .emacs or init.el. It occurs consistently when all initialization
code is commented out.

Attached is a sample file which causes the problem; just save it, launch a
shell in ansi-term, and cat the file.

In addition, when launched from the Dock, ansi-term requires something
like the following to display Unicode characters correctly:

(defadvice ansi-term (after advice-ansi-term activate)
  (set-buffer-process-coding-system 'utf-8-unix 'utf-8-unix))

This is NOT required when launching Emacs from the command line!


[-- Attachment #2: test.txt --]
[-- Type: text/plain, Size: 1530 bytes --]

Started PUT "/projects/1" for 127.0.0.1 at 2013-09-15 14:35:50 -0700
Processing by ProjectsController#update as JS
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"w016h+NdEQac52o0w1o5pq+dQbQkbCh7XtW3SriENXc=", "project"=>{"name"=>"Wilson lighting upgrade and solar install", "categories_attributes"=>{"0"=>{"id"=>"275"}, "1"=>{"id"=>"276"}, "2"=>{"name"=>"", "sub_type"=>""}}, "status"=>"Completed", "leader_id"=>"90", "proposed_cost"=>"155500", "construction_year"=>"1988", "approved"=>"November 10, 2010", "start_date"=>"November 29, 2010", "complete_date"=>"March  1, 2011", "lifespan"=>"10", "resources_attributes"=>{"1"=>{"name"=>"", "units"=>"", "cost_per_unit"=>"", "annual_savings"=>""}}, "description"=>"We plan on making this green, believe it!", "methodology"=>"Estimated", "methodology_description"=>"Here are some details, does this work for you guys?", "transactions_attributes"=>{"101"=>{"id"=>"101", "date"=>"November 19, 2010", "transaction_type"=>"Project Expenditure", "description"=>"", "amount"=>"-80000"}, "102"=>{"id"=>"102", "date"=>"March 01, 2011", "transaction_type"=>"Project Rebate", "description"=>"", "amount"=>"5000"}, "365"=>{"id"=>"365", "date"=>"December 30, 2011", "transaction_type"=>"Project Loan Repayment", "description"=>"", "amount"=>"17548"}, "366"=>{"id"=>"366", "date"=>"December 31, 2012", "transaction_type"=>"Project Loan Repayment", "description"=>"", "amount"=>"21000"}, "new"=>{"id"=>"", "date"=>"", "transaction_type"=>"", "description"=>"", "amount"=>""}}}, "id"=>"1"}

[-- Attachment #3: Type: text/plain, Size: 393 bytes --]



In GNU Emacs 24.3.1 (x86_64-apple-darwin12.2.0, NS apple-appkit-1187.34)
 of 2013-03-10 on athena.local
Windowing system distributor `Apple', version 10.3.1187
Configured using:
 `configure '--with-ns''

Important settings:
  value of $LC_COLLATE: C
  value of $LC_CTYPE: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-09-30 15:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-17  8:25 bug#15402: 24.3; Emacs and Mac OS Dock bad launch behavior Constantine Vetoshev
2013-09-17 18:04 ` Jan Djärv
2013-09-17 18:48   ` Constantine Vetoshev
2013-09-18 17:24 ` Stefan Monnier
2013-09-19 15:54   ` Jan Djärv
2013-09-19 19:25     ` Constantine Vetoshev
2013-09-20  7:05       ` Jan Djärv
2013-09-20  7:57         ` Constantine Vetoshev
2013-09-20  9:21           ` Jan Djärv
2013-09-20 11:25             ` Constantine Vetoshev
2013-09-19 21:30     ` Stefan Monnier
2013-09-29 17:11       ` Jan Djärv
2013-09-30 15:14         ` Constantine Vetoshev

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.